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 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:
- Managed
Instance stringName - The name of the managed instance.
- Resource
Group stringName - 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 boolRecord - Whether or not DNS record should be created for this alias.
- Dns
Alias stringName
- Managed
Instance stringName - The name of the managed instance.
- Resource
Group stringName - 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 boolRecord - Whether or not DNS record should be created for this alias.
- Dns
Alias stringName
- managed
Instance StringName - The name of the managed instance.
- resource
Group StringName - 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 BooleanRecord - Whether or not DNS record should be created for this alias.
- dns
Alias StringName
- managed
Instance stringName - The name of the managed instance.
- resource
Group stringName - 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 booleanRecord - Whether or not DNS record should be created for this alias.
- dns
Alias stringName
- managed_
instance_ strname - The name of the managed instance.
- resource_
group_ strname - 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_ boolrecord - Whether or not DNS record should be created for this alias.
- dns_
alias_ strname
- managed
Instance StringName - The name of the managed instance.
- resource
Group StringName - 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 BooleanRecord - Whether or not DNS record should be created for this alias.
- dns
Alias StringName
Outputs
All input properties are implicitly available as output properties. Additionally, the ManagedServerDnsAlias resource produces the following output properties:
- Azure
Dns stringRecord - The fully qualified DNS record for managed server alias
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name.
- Public
Azure stringDns Record - The fully qualified public DNS record for managed server alias
- Type string
- Resource type.
- Azure
Dns stringRecord - The fully qualified DNS record for managed server alias
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name.
- Public
Azure stringDns Record - The fully qualified public DNS record for managed server alias
- Type string
- Resource type.
- azure
Dns StringRecord - The fully qualified DNS record for managed server alias
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name.
- public
Azure StringDns Record - The fully qualified public DNS record for managed server alias
- type String
- Resource type.
- azure
Dns stringRecord - The fully qualified DNS record for managed server alias
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Resource name.
- public
Azure stringDns Record - The fully qualified public DNS record for managed server alias
- type string
- Resource type.
- azure_
dns_ strrecord - 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_ strdns_ record - The fully qualified public DNS record for managed server alias
- type str
- Resource type.
- azure
Dns StringRecord - The fully qualified DNS record for managed server alias
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name.
- public
Azure StringDns Record - 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