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). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--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]
                             [--query-examples]
                             [--resource-group]
                             [--server]
                             [--subscription]

Optional Parameters

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--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). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--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]
                             [--query-examples]
                             [--resource-group]
                             [--server]
                             [--subscription]

Required Parameters

--name -n

Name of the DNS alias.

Optional Parameters

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--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.