az sql server dns-alias

Manage a server's DNS aliases.

Commands

az sql server dns-alias create Creates a server dns alias.
az sql server dns-alias delete Deletes the server DNS alias with the given name.
az sql server dns-alias list Gets a list of server DNS aliases for a server.
az sql server dns-alias set Sets a server to which DNS alias should point.
az sql server dns-alias show Gets a server DNS alias.

az sql server dns-alias create

Creates a server dns alias.

az sql server dns-alias create --name
--resource-group
--server
[--subscription]

Required Parameters

--name -n

Name of the DNS alias.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--server -s

Name of the Azure SQL server. You can configure the default using az configure --defaults sql-server=<name>.

Optional Parameters

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az sql server dns-alias delete

Deletes the server DNS alias with the given name.

az sql server dns-alias delete --name
[--ids]
[--resource-group]
[--server]
[--subscription]

Required Parameters

--name -n

Name of the DNS alias.

Optional Parameters

--ids

One or more resource IDs (space-delimited). If provided, no other 'Resource Id' arguments should be specified.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--server -s

Name of the Azure SQL server. You can configure the default using az configure --defaults sql-server=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az sql server dns-alias list

Gets a list of server DNS aliases for a server.

az sql server dns-alias list [--ids]
[--resource-group]
[--server]
[--subscription]

Optional Parameters

--ids

One or more resource IDs (space-delimited). If provided, no other 'Resource Id' arguments should be specified.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--server -s

Name of the Azure SQL server. You can configure the default using az configure --defaults sql-server=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az sql server dns-alias set

Sets a server to which DNS alias should point.

az sql server dns-alias set --name
--original-server
[--ids]
[--original-resource-group]
[--original-subscription-id]
[--resource-group]
[--server]
[--subscription]

Required Parameters

--name -n

Name of the DNS alias.

--original-server

The name of the server to which alias is currently pointing.

Optional Parameters

--ids

One or more resource IDs (space-delimited). If provided, no other 'Resource Id' arguments should be specified.

--original-resource-group

Name of the original resource group.

--original-subscription-id

ID of the original subscription.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--server -s

Name of the Azure SQL server. You can configure the default using az configure --defaults sql-server=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az sql server dns-alias show

Gets a server DNS alias.

az sql server dns-alias show --name
[--ids]
[--resource-group]
[--server]
[--subscription]

Required Parameters

--name -n

Name of the DNS alias.

Optional Parameters

--ids

One or more resource IDs (space-delimited). If provided, no other 'Resource Id' arguments should be specified.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--server -s

Name of the Azure SQL server. You can configure the default using az configure --defaults sql-server=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.