1. Packages
  2. Azure Native
  3. API Docs
  4. azuredata
  5. SqlServerRegistration
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi

azure-native.azuredata.SqlServerRegistration

Explore with Pulumi AI

A SQL server registration.

Uses Azure REST API version 2019-07-24-preview. In version 2.x of the Azure Native provider, it used API version 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" },
        },
    });

});
Copy
package main

import (
	azuredata "github.com/pulumi/pulumi-azure-native-sdk/azuredata/v3"
	"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
	})
}
Copy
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());

    }
}
Copy
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",
    },
});
Copy
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",
    })
Copy
resources:
  sqlServerRegistration:
    type: azure-native:azuredata:SqlServerRegistration
    properties:
      location: northeurope
      resourceGroupName: testrg
      sqlServerRegistrationName: testsqlregistration
      tags:
        mytag: myval
Copy

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 This property is required. string
The unique name of the resource.
args This property is required. SqlServerRegistrationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. SqlServerRegistrationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. SqlServerRegistrationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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" },
    },
});
Copy
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"),
	},
})
Copy
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());
Copy
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",
    })
Copy
const sqlServerRegistrationResource = new azure_native.azuredata.SqlServerRegistration("sqlServerRegistrationResource", {
    resourceGroupName: "string",
    location: "string",
    propertyBag: "string",
    resourceGroup: "string",
    sqlServerRegistrationName: "string",
    subscriptionId: "string",
    tags: {
        string: "string",
    },
});
Copy
type: azure-native:azuredata:SqlServerRegistration
properties:
    location: string
    propertyBag: string
    resourceGroup: string
    resourceGroupName: string
    sqlServerRegistrationName: string
    subscriptionId: string
    tags:
        string: string
Copy

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:

ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
Location Changes to this property will trigger replacement. string
The geo-location where the resource lives
PropertyBag string
Optional Properties as JSON string
ResourceGroup string
Resource Group Name
SqlServerRegistrationName Changes to this property will trigger replacement. string
Name of the SQL Server registration.
SubscriptionId string
Subscription Id
Tags Dictionary<string, string>
Resource tags.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
Location Changes to this property will trigger replacement. string
The geo-location where the resource lives
PropertyBag string
Optional Properties as JSON string
ResourceGroup string
Resource Group Name
SqlServerRegistrationName Changes to this property will trigger replacement. string
Name of the SQL Server registration.
SubscriptionId string
Subscription Id
Tags map[string]string
Resource tags.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
location Changes to this property will trigger replacement. String
The geo-location where the resource lives
propertyBag String
Optional Properties as JSON string
resourceGroup String
Resource Group Name
sqlServerRegistrationName Changes to this property will trigger replacement. String
Name of the SQL Server registration.
subscriptionId String
Subscription Id
tags Map<String,String>
Resource tags.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
location Changes to this property will trigger replacement. string
The geo-location where the resource lives
propertyBag string
Optional Properties as JSON string
resourceGroup string
Resource Group Name
sqlServerRegistrationName Changes to this property will trigger replacement. string
Name of the SQL Server registration.
subscriptionId string
Subscription Id
tags {[key: string]: string}
Resource tags.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
location Changes to this property will trigger replacement. str
The geo-location where the resource lives
property_bag str
Optional Properties as JSON string
resource_group str
Resource Group Name
sql_server_registration_name Changes to this property will trigger replacement. str
Name of the SQL Server registration.
subscription_id str
Subscription Id
tags Mapping[str, str]
Resource tags.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
location Changes to this property will trigger replacement. String
The geo-location where the resource lives
propertyBag String
Optional Properties as JSON string
resourceGroup String
Resource Group Name
sqlServerRegistrationName Changes to this property will trigger replacement. String
Name of the SQL Server registration.
subscriptionId String
Subscription Id
tags Map<String>
Resource tags.

Outputs

All input properties are implicitly available as output properties. Additionally, the SqlServerRegistration resource produces the following output properties:

AzureApiVersion string
The Azure API version of the resource.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource
SystemData Pulumi.AzureNative.AzureData.Outputs.SystemDataResponse
Read only system data
Type string
The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
AzureApiVersion string
The Azure API version of the resource.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource
SystemData SystemDataResponse
Read only system data
Type string
The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
azureApiVersion String
The Azure API version of the resource.
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the resource
systemData SystemDataResponse
Read only system data
type String
The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
azureApiVersion string
The Azure API version of the resource.
id string
The provider-assigned unique ID for this managed resource.
name string
The name of the resource
systemData SystemDataResponse
Read only system data
type string
The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
azure_api_version str
The Azure API version of the resource.
id str
The provider-assigned unique ID for this managed resource.
name str
The name of the resource
system_data SystemDataResponse
Read only system data
type str
The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
azureApiVersion String
The Azure API version of the resource.
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
CreatedByType string
The type of identity that created the resource
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
An identifier for the identity that last modified the resource
LastModifiedByType string
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
CreatedByType string
The type of identity that created the resource
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
An identifier for the identity that last modified the resource
LastModifiedByType string
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
createdByType String
The type of identity that created the resource
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
An identifier for the identity that last modified the resource
lastModifiedByType String
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
createdByType string
The type of identity that created the resource
lastModifiedAt string
The timestamp of resource last modification (UTC)
lastModifiedBy string
An identifier for the identity that last modified the resource
lastModifiedByType string
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_type str
The type of identity that created the resource
last_modified_at str
The timestamp of resource last modification (UTC)
last_modified_by str
An identifier for the identity that last modified the resource
last_modified_by_type str
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
createdByType String
The type of identity that created the resource
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
An identifier for the identity that last modified the resource
lastModifiedByType String
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} 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0