azure-native.sql.ManagedServerDnsAlias

Explore with Pulumi AI

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

Example Usage

Create managed server DNS alias

using System.Collections.Generic;
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/go/azure/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

new ManagedServerDnsAlias(name: string, args: ManagedServerDnsAliasArgs, opts?: CustomResourceOptions);
@overload
def ManagedServerDnsAlias(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          create_dns_record: Optional[bool] = None,
                          dns_alias_name: Optional[str] = None,
                          managed_instance_name: Optional[str] = None,
                          resource_group_name: Optional[str] = None)
@overload
def ManagedServerDnsAlias(resource_name: str,
                          args: ManagedServerDnsAliasArgs,
                          opts: Optional[ResourceOptions] = 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.

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.

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

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 

Package Details

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