1. Packages
  2. Azure Native
  3. API Docs
  4. azuredata
  5. SqlServerRegistration
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi

azure-native.azuredata.SqlServerRegistration

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi

    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 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",
        })
    
    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",
        },
    });
    
    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

    The SqlServerRegistration resource accepts the following input properties:

    ResourceGroupName 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 string
    The geo-location where the resource lives
    PropertyBag string
    Optional Properties as JSON string
    ResourceGroup string
    Resource Group Name
    SqlServerRegistrationName string
    Name of the SQL Server registration.
    SubscriptionId string
    Subscription Id
    Tags Dictionary<string, string>
    Resource tags.
    ResourceGroupName 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 string
    The geo-location where the resource lives
    PropertyBag string
    Optional Properties as JSON string
    ResourceGroup string
    Resource Group Name
    SqlServerRegistrationName string
    Name of the SQL Server registration.
    SubscriptionId string
    Subscription Id
    Tags map[string]string
    Resource tags.
    resourceGroupName 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 String
    The geo-location where the resource lives
    propertyBag String
    Optional Properties as JSON string
    resourceGroup String
    Resource Group Name
    sqlServerRegistrationName String
    Name of the SQL Server registration.
    subscriptionId String
    Subscription Id
    tags Map<String,String>
    Resource tags.
    resourceGroupName 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 string
    The geo-location where the resource lives
    propertyBag string
    Optional Properties as JSON string
    resourceGroup string
    Resource Group Name
    sqlServerRegistrationName string
    Name of the SQL Server registration.
    subscriptionId string
    Subscription Id
    tags {[key: string]: string}
    Resource tags.
    resource_group_name 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 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 str
    Name of the SQL Server registration.
    subscription_id str
    Subscription Id
    tags Mapping[str, str]
    Resource tags.
    resourceGroupName 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 String
    The geo-location where the resource lives
    propertyBag String
    Optional Properties as JSON string
    resourceGroup String
    Resource Group Name
    sqlServerRegistrationName 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:

    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.
    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.
    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.
    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.
    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.
    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} 
    

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

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi