1. Packages
  2. Azure Native v1
  3. API Docs
  4. sql
  5. ManagedServerDnsAlias
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.sql.ManagedServerDnsAlias

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    A managed server DNS alias. API Version: 2021-11-01-preview.

    Example Usage

    Create managed server DNS alias

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var managedServerDnsAlias = new AzureNative.Sql.ManagedServerDnsAlias("managedServerDnsAlias", new()
        {
            DnsAliasName = "dns-alias-mi",
            ManagedInstanceName = "dns-mi",
            ResourceGroupName = "Default",
        });
    
    });
    
    package main
    
    import (
    	sql "github.com/pulumi/pulumi-azure-native-sdk/sql"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := sql.NewManagedServerDnsAlias(ctx, "managedServerDnsAlias", &sql.ManagedServerDnsAliasArgs{
    			DnsAliasName:        pulumi.String("dns-alias-mi"),
    			ManagedInstanceName: pulumi.String("dns-mi"),
    			ResourceGroupName:   pulumi.String("Default"),
    		})
    		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.sql.ManagedServerDnsAlias;
    import com.pulumi.azurenative.sql.ManagedServerDnsAliasArgs;
    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 managedServerDnsAlias = new ManagedServerDnsAlias("managedServerDnsAlias", ManagedServerDnsAliasArgs.builder()        
                .dnsAliasName("dns-alias-mi")
                .managedInstanceName("dns-mi")
                .resourceGroupName("Default")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    managed_server_dns_alias = azure_native.sql.ManagedServerDnsAlias("managedServerDnsAlias",
        dns_alias_name="dns-alias-mi",
        managed_instance_name="dns-mi",
        resource_group_name="Default")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const managedServerDnsAlias = new azure_native.sql.ManagedServerDnsAlias("managedServerDnsAlias", {
        dnsAliasName: "dns-alias-mi",
        managedInstanceName: "dns-mi",
        resourceGroupName: "Default",
    });
    
    resources:
      managedServerDnsAlias:
        type: azure-native:sql:ManagedServerDnsAlias
        properties:
          dnsAliasName: dns-alias-mi
          managedInstanceName: dns-mi
          resourceGroupName: Default
    

    Create ManagedServerDnsAlias Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ManagedServerDnsAlias(name: string, args: ManagedServerDnsAliasArgs, opts?: CustomResourceOptions);
    @overload
    def ManagedServerDnsAlias(resource_name: str,
                              args: ManagedServerDnsAliasArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def ManagedServerDnsAlias(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              managed_instance_name: Optional[str] = None,
                              resource_group_name: Optional[str] = None,
                              create_dns_record: Optional[bool] = None,
                              dns_alias_name: Optional[str] = None)
    func NewManagedServerDnsAlias(ctx *Context, name string, args ManagedServerDnsAliasArgs, opts ...ResourceOption) (*ManagedServerDnsAlias, error)
    public ManagedServerDnsAlias(string name, ManagedServerDnsAliasArgs args, CustomResourceOptions? opts = null)
    public ManagedServerDnsAlias(String name, ManagedServerDnsAliasArgs args)
    public ManagedServerDnsAlias(String name, ManagedServerDnsAliasArgs args, CustomResourceOptions options)
    
    type: azure-native:sql:ManagedServerDnsAlias
    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 ManagedServerDnsAliasArgs
    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 ManagedServerDnsAliasArgs
    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 ManagedServerDnsAliasArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ManagedServerDnsAliasArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ManagedServerDnsAliasArgs
    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 managedServerDnsAliasResource = new AzureNative.Sql.ManagedServerDnsAlias("managedServerDnsAliasResource", new()
    {
        ManagedInstanceName = "string",
        ResourceGroupName = "string",
        CreateDnsRecord = false,
        DnsAliasName = "string",
    });
    
    example, err := sql.NewManagedServerDnsAlias(ctx, "managedServerDnsAliasResource", &sql.ManagedServerDnsAliasArgs{
    	ManagedInstanceName: "string",
    	ResourceGroupName:   "string",
    	CreateDnsRecord:     false,
    	DnsAliasName:        "string",
    })
    
    var managedServerDnsAliasResource = new ManagedServerDnsAlias("managedServerDnsAliasResource", ManagedServerDnsAliasArgs.builder()
        .managedInstanceName("string")
        .resourceGroupName("string")
        .createDnsRecord(false)
        .dnsAliasName("string")
        .build());
    
    managed_server_dns_alias_resource = azure_native.sql.ManagedServerDnsAlias("managedServerDnsAliasResource",
        managed_instance_name=string,
        resource_group_name=string,
        create_dns_record=False,
        dns_alias_name=string)
    
    const managedServerDnsAliasResource = new azure_native.sql.ManagedServerDnsAlias("managedServerDnsAliasResource", {
        managedInstanceName: "string",
        resourceGroupName: "string",
        createDnsRecord: false,
        dnsAliasName: "string",
    });
    
    type: azure-native:sql:ManagedServerDnsAlias
    properties:
        createDnsRecord: false
        dnsAliasName: string
        managedInstanceName: string
        resourceGroupName: string
    

    ManagedServerDnsAlias 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 ManagedServerDnsAlias resource accepts the following input properties:

    ManagedInstanceName string
    The name of the managed instance.
    ResourceGroupName string
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    CreateDnsRecord bool
    Whether or not DNS record should be created for this alias.
    DnsAliasName string
    ManagedInstanceName string
    The name of the managed instance.
    ResourceGroupName string
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    CreateDnsRecord bool
    Whether or not DNS record should be created for this alias.
    DnsAliasName string
    managedInstanceName String
    The name of the managed instance.
    resourceGroupName String
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    createDnsRecord Boolean
    Whether or not DNS record should be created for this alias.
    dnsAliasName String
    managedInstanceName string
    The name of the managed instance.
    resourceGroupName string
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    createDnsRecord boolean
    Whether or not DNS record should be created for this alias.
    dnsAliasName string
    managed_instance_name str
    The name of the managed instance.
    resource_group_name str
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    create_dns_record bool
    Whether or not DNS record should be created for this alias.
    dns_alias_name str
    managedInstanceName String
    The name of the managed instance.
    resourceGroupName String
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    createDnsRecord Boolean
    Whether or not DNS record should be created for this alias.
    dnsAliasName String

    Outputs

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

    AzureDnsRecord string
    The fully qualified DNS record for managed server alias
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource name.
    PublicAzureDnsRecord string
    The fully qualified public DNS record for managed server alias
    Type string
    Resource type.
    AzureDnsRecord string
    The fully qualified DNS record for managed server alias
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource name.
    PublicAzureDnsRecord string
    The fully qualified public DNS record for managed server alias
    Type string
    Resource type.
    azureDnsRecord String
    The fully qualified DNS record for managed server alias
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource name.
    publicAzureDnsRecord String
    The fully qualified public DNS record for managed server alias
    type String
    Resource type.
    azureDnsRecord string
    The fully qualified DNS record for managed server alias
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Resource name.
    publicAzureDnsRecord string
    The fully qualified public DNS record for managed server alias
    type string
    Resource type.
    azure_dns_record str
    The fully qualified DNS record for managed server alias
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Resource name.
    public_azure_dns_record str
    The fully qualified public DNS record for managed server alias
    type str
    Resource type.
    azureDnsRecord String
    The fully qualified DNS record for managed server alias
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource name.
    publicAzureDnsRecord String
    The fully qualified public DNS record for managed server alias
    type String
    Resource type.

    Import

    An existing resource can be imported using its type token, name, and identifier, e.g.

    $ pulumi import azure-native:sql:ManagedServerDnsAlias dns-alias-mi /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.Sql/managedInstances/dns-mi/dnsAliases/dns-alias-mi 
    

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

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi