1. Packages
  2. Azure Native
  3. API Docs
  4. sql
  5. getManagedServerDnsAlias
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.0.1 published on Monday, Apr 7, 2025 by Pulumi

azure-native.sql.getManagedServerDnsAlias

Explore with Pulumi AI

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.0.1 published on Monday, Apr 7, 2025 by Pulumi

Gets a server DNS alias.

Uses Azure REST API version 2023-08-01.

Other available API versions: 2021-11-01, 2021-11-01-preview, 2022-02-01-preview, 2022-05-01-preview, 2022-08-01-preview, 2022-11-01-preview, 2023-02-01-preview, 2023-05-01-preview, 2023-08-01-preview, 2024-05-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native sql [ApiVersion]. See the version guide for details.

Using getManagedServerDnsAlias

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getManagedServerDnsAlias(args: GetManagedServerDnsAliasArgs, opts?: InvokeOptions): Promise<GetManagedServerDnsAliasResult>
function getManagedServerDnsAliasOutput(args: GetManagedServerDnsAliasOutputArgs, opts?: InvokeOptions): Output<GetManagedServerDnsAliasResult>
Copy
def get_managed_server_dns_alias(dns_alias_name: Optional[str] = None,
                                 managed_instance_name: Optional[str] = None,
                                 resource_group_name: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetManagedServerDnsAliasResult
def get_managed_server_dns_alias_output(dns_alias_name: Optional[pulumi.Input[str]] = None,
                                 managed_instance_name: Optional[pulumi.Input[str]] = None,
                                 resource_group_name: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetManagedServerDnsAliasResult]
Copy
func LookupManagedServerDnsAlias(ctx *Context, args *LookupManagedServerDnsAliasArgs, opts ...InvokeOption) (*LookupManagedServerDnsAliasResult, error)
func LookupManagedServerDnsAliasOutput(ctx *Context, args *LookupManagedServerDnsAliasOutputArgs, opts ...InvokeOption) LookupManagedServerDnsAliasResultOutput
Copy

> Note: This function is named LookupManagedServerDnsAlias in the Go SDK.

public static class GetManagedServerDnsAlias 
{
    public static Task<GetManagedServerDnsAliasResult> InvokeAsync(GetManagedServerDnsAliasArgs args, InvokeOptions? opts = null)
    public static Output<GetManagedServerDnsAliasResult> Invoke(GetManagedServerDnsAliasInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetManagedServerDnsAliasResult> getManagedServerDnsAlias(GetManagedServerDnsAliasArgs args, InvokeOptions options)
public static Output<GetManagedServerDnsAliasResult> getManagedServerDnsAlias(GetManagedServerDnsAliasArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:sql:getManagedServerDnsAlias
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

DnsAliasName
This property is required.
Changes to this property will trigger replacement.
string
ManagedInstanceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the managed instance.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
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.
DnsAliasName
This property is required.
Changes to this property will trigger replacement.
string
ManagedInstanceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the managed instance.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
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.
dnsAliasName
This property is required.
Changes to this property will trigger replacement.
String
managedInstanceName
This property is required.
Changes to this property will trigger replacement.
String
The name of the managed instance.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
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.
dnsAliasName
This property is required.
Changes to this property will trigger replacement.
string
managedInstanceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the managed instance.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
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.
dns_alias_name
This property is required.
Changes to this property will trigger replacement.
str
managed_instance_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the managed instance.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
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.
dnsAliasName
This property is required.
Changes to this property will trigger replacement.
String
managedInstanceName
This property is required.
Changes to this property will trigger replacement.
String
The name of the managed instance.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
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.

getManagedServerDnsAlias Result

The following output properties are available:

AzureApiVersion string
The Azure API version of the resource.
AzureDnsRecord string
The fully qualified DNS record for managed server alias
Id string
Resource ID.
Name string
Resource name.
PublicAzureDnsRecord string
The fully qualified public DNS record for managed server alias
Type string
Resource type.
AzureApiVersion string
The Azure API version of the resource.
AzureDnsRecord string
The fully qualified DNS record for managed server alias
Id string
Resource ID.
Name string
Resource name.
PublicAzureDnsRecord string
The fully qualified public DNS record for managed server alias
Type string
Resource type.
azureApiVersion String
The Azure API version of the resource.
azureDnsRecord String
The fully qualified DNS record for managed server alias
id String
Resource ID.
name String
Resource name.
publicAzureDnsRecord String
The fully qualified public DNS record for managed server alias
type String
Resource type.
azureApiVersion string
The Azure API version of the resource.
azureDnsRecord string
The fully qualified DNS record for managed server alias
id string
Resource ID.
name string
Resource name.
publicAzureDnsRecord string
The fully qualified public DNS record for managed server alias
type string
Resource type.
azure_api_version str
The Azure API version of the resource.
azure_dns_record str
The fully qualified DNS record for managed server alias
id str
Resource ID.
name str
Resource name.
public_azure_dns_record str
The fully qualified public DNS record for managed server alias
type str
Resource type.
azureApiVersion String
The Azure API version of the resource.
azureDnsRecord String
The fully qualified DNS record for managed server alias
id String
Resource ID.
name String
Resource name.
publicAzureDnsRecord String
The fully qualified public DNS record for managed server alias
type String
Resource type.

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0
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.0.1 published on Monday, Apr 7, 2025 by Pulumi