azure-native.azuredata.SqlServerRegistration
Explore with Pulumi AI
A SQL server registration. Azure REST API version: 2019-07-24-preview. Prior API version in Azure Native 1.x: 2019-07-24-preview.
Example Usage
Creates or updates a SQL Server registration.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var sqlServerRegistration = new AzureNative.AzureData.SqlServerRegistration("sqlServerRegistration", new()
    {
        Location = "northeurope",
        ResourceGroupName = "testrg",
        SqlServerRegistrationName = "testsqlregistration",
        Tags = 
        {
            { "mytag", "myval" },
        },
    });
});
package main
import (
	azuredata "github.com/pulumi/pulumi-azure-native-sdk/azuredata/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := azuredata.NewSqlServerRegistration(ctx, "sqlServerRegistration", &azuredata.SqlServerRegistrationArgs{
			Location:                  pulumi.String("northeurope"),
			ResourceGroupName:         pulumi.String("testrg"),
			SqlServerRegistrationName: pulumi.String("testsqlregistration"),
			Tags: pulumi.StringMap{
				"mytag": pulumi.String("myval"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.azuredata.SqlServerRegistration;
import com.pulumi.azurenative.azuredata.SqlServerRegistrationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var sqlServerRegistration = new SqlServerRegistration("sqlServerRegistration", SqlServerRegistrationArgs.builder()
            .location("northeurope")
            .resourceGroupName("testrg")
            .sqlServerRegistrationName("testsqlregistration")
            .tags(Map.of("mytag", "myval"))
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const sqlServerRegistration = new azure_native.azuredata.SqlServerRegistration("sqlServerRegistration", {
    location: "northeurope",
    resourceGroupName: "testrg",
    sqlServerRegistrationName: "testsqlregistration",
    tags: {
        mytag: "myval",
    },
});
import pulumi
import pulumi_azure_native as azure_native
sql_server_registration = azure_native.azuredata.SqlServerRegistration("sqlServerRegistration",
    location="northeurope",
    resource_group_name="testrg",
    sql_server_registration_name="testsqlregistration",
    tags={
        "mytag": "myval",
    })
resources:
  sqlServerRegistration:
    type: azure-native:azuredata:SqlServerRegistration
    properties:
      location: northeurope
      resourceGroupName: testrg
      sqlServerRegistrationName: testsqlregistration
      tags:
        mytag: myval
Create SqlServerRegistration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SqlServerRegistration(name: string, args: SqlServerRegistrationArgs, opts?: CustomResourceOptions);@overload
def SqlServerRegistration(resource_name: str,
                          args: SqlServerRegistrationArgs,
                          opts: Optional[ResourceOptions] = None)
@overload
def SqlServerRegistration(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          resource_group_name: Optional[str] = None,
                          location: Optional[str] = None,
                          property_bag: Optional[str] = None,
                          resource_group: Optional[str] = None,
                          sql_server_registration_name: Optional[str] = None,
                          subscription_id: Optional[str] = None,
                          tags: Optional[Mapping[str, str]] = None)func NewSqlServerRegistration(ctx *Context, name string, args SqlServerRegistrationArgs, opts ...ResourceOption) (*SqlServerRegistration, error)public SqlServerRegistration(string name, SqlServerRegistrationArgs args, CustomResourceOptions? opts = null)
public SqlServerRegistration(String name, SqlServerRegistrationArgs args)
public SqlServerRegistration(String name, SqlServerRegistrationArgs args, CustomResourceOptions options)
type: azure-native:azuredata:SqlServerRegistration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SqlServerRegistrationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SqlServerRegistrationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SqlServerRegistrationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SqlServerRegistrationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SqlServerRegistrationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var sqlServerRegistrationResource = new AzureNative.AzureData.SqlServerRegistration("sqlServerRegistrationResource", new()
{
    ResourceGroupName = "string",
    Location = "string",
    PropertyBag = "string",
    ResourceGroup = "string",
    SqlServerRegistrationName = "string",
    SubscriptionId = "string",
    Tags = 
    {
        { "string", "string" },
    },
});
example, err := azuredata.NewSqlServerRegistration(ctx, "sqlServerRegistrationResource", &azuredata.SqlServerRegistrationArgs{
	ResourceGroupName:         pulumi.String("string"),
	Location:                  pulumi.String("string"),
	PropertyBag:               pulumi.String("string"),
	ResourceGroup:             pulumi.String("string"),
	SqlServerRegistrationName: pulumi.String("string"),
	SubscriptionId:            pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
var sqlServerRegistrationResource = new SqlServerRegistration("sqlServerRegistrationResource", SqlServerRegistrationArgs.builder()
    .resourceGroupName("string")
    .location("string")
    .propertyBag("string")
    .resourceGroup("string")
    .sqlServerRegistrationName("string")
    .subscriptionId("string")
    .tags(Map.of("string", "string"))
    .build());
sql_server_registration_resource = azure_native.azuredata.SqlServerRegistration("sqlServerRegistrationResource",
    resource_group_name="string",
    location="string",
    property_bag="string",
    resource_group="string",
    sql_server_registration_name="string",
    subscription_id="string",
    tags={
        "string": "string",
    })
const sqlServerRegistrationResource = new azure_native.azuredata.SqlServerRegistration("sqlServerRegistrationResource", {
    resourceGroupName: "string",
    location: "string",
    propertyBag: "string",
    resourceGroup: "string",
    sqlServerRegistrationName: "string",
    subscriptionId: "string",
    tags: {
        string: "string",
    },
});
type: azure-native:azuredata:SqlServerRegistration
properties:
    location: string
    propertyBag: string
    resourceGroup: string
    resourceGroupName: string
    sqlServerRegistrationName: string
    subscriptionId: string
    tags:
        string: string
SqlServerRegistration Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SqlServerRegistration resource accepts the following input properties:
- ResourceGroup stringName 
- Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- Location string
- The geo-location where the resource lives
- PropertyBag string
- Optional Properties as JSON string
- ResourceGroup string
- Resource Group Name
- SqlServer stringRegistration Name 
- Name of the SQL Server registration.
- SubscriptionId string
- Subscription Id
- Dictionary<string, string>
- Resource tags.
- ResourceGroup stringName 
- Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- Location string
- The geo-location where the resource lives
- PropertyBag string
- Optional Properties as JSON string
- ResourceGroup string
- Resource Group Name
- SqlServer stringRegistration Name 
- Name of the SQL Server registration.
- SubscriptionId string
- Subscription Id
- map[string]string
- Resource tags.
- resourceGroup StringName 
- Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- location String
- The geo-location where the resource lives
- propertyBag String
- Optional Properties as JSON string
- resourceGroup String
- Resource Group Name
- sqlServer StringRegistration Name 
- Name of the SQL Server registration.
- subscriptionId String
- Subscription Id
- Map<String,String>
- Resource tags.
- resourceGroup stringName 
- Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- location string
- The geo-location where the resource lives
- propertyBag string
- Optional Properties as JSON string
- resourceGroup string
- Resource Group Name
- sqlServer stringRegistration Name 
- Name of the SQL Server registration.
- subscriptionId string
- Subscription Id
- {[key: string]: string}
- Resource tags.
- resource_group_ strname 
- Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- location str
- The geo-location where the resource lives
- property_bag str
- Optional Properties as JSON string
- resource_group str
- Resource Group Name
- sql_server_ strregistration_ name 
- Name of the SQL Server registration.
- subscription_id str
- Subscription Id
- Mapping[str, str]
- Resource tags.
- resourceGroup StringName 
- Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- location String
- The geo-location where the resource lives
- propertyBag String
- Optional Properties as JSON string
- resourceGroup String
- Resource Group Name
- sqlServer StringRegistration Name 
- Name of the SQL Server registration.
- subscriptionId String
- Subscription Id
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the SqlServerRegistration resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- SystemData Pulumi.Azure Native. Azure Data. Outputs. System Data Response 
- Read only system data
- Type string
- The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- SystemData SystemData Response 
- Read only system data
- Type string
- The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- systemData SystemData Response 
- Read only system data
- type String
- The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- systemData SystemData Response 
- Read only system data
- type string
- The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- system_data SystemData Response 
- Read only system data
- type str
- The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- systemData Property Map
- Read only system data
- type String
- The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
Supporting Types
SystemDataResponse, SystemDataResponseArgs      
- CreatedAt string
- The timestamp of resource creation (UTC)
- CreatedBy string
- An identifier for the identity that created the resource
- CreatedBy stringType 
- The type of identity that created the resource
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- An identifier for the identity that last modified the resource
- LastModified stringBy Type 
- The type of identity that last modified the resource
- CreatedAt string
- The timestamp of resource creation (UTC)
- CreatedBy string
- An identifier for the identity that created the resource
- CreatedBy stringType 
- The type of identity that created the resource
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- An identifier for the identity that last modified the resource
- LastModified stringBy Type 
- The type of identity that last modified the resource
- createdAt String
- The timestamp of resource creation (UTC)
- createdBy String
- An identifier for the identity that created the resource
- createdBy StringType 
- The type of identity that created the resource
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- An identifier for the identity that last modified the resource
- lastModified StringBy Type 
- The type of identity that last modified the resource
- createdAt string
- The timestamp of resource creation (UTC)
- createdBy string
- An identifier for the identity that created the resource
- createdBy stringType 
- The type of identity that created the resource
- lastModified stringAt 
- The timestamp of resource last modification (UTC)
- lastModified stringBy 
- An identifier for the identity that last modified the resource
- lastModified stringBy Type 
- The type of identity that last modified the resource
- created_at str
- The timestamp of resource creation (UTC)
- created_by str
- An identifier for the identity that created the resource
- created_by_ strtype 
- The type of identity that created the resource
- last_modified_ strat 
- The timestamp of resource last modification (UTC)
- last_modified_ strby 
- An identifier for the identity that last modified the resource
- last_modified_ strby_ type 
- The type of identity that last modified the resource
- createdAt String
- The timestamp of resource creation (UTC)
- createdBy String
- An identifier for the identity that created the resource
- createdBy StringType 
- The type of identity that created the resource
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- An identifier for the identity that last modified the resource
- lastModified StringBy Type 
- The type of identity that last modified the resource
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:azuredata:SqlServerRegistration testsqlregistration /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureData/sqlServerRegistrations/{sqlServerRegistrationName} 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0