az staticwebapp hostname

Manage custom hostnames of Functions of the static app.

Commands

az staticwebapp hostname delete

Delete given hostname of the static app.

az staticwebapp hostname list

List custom hostnames of the static app.

az staticwebapp hostname set

Set given sub-domain hostname to the static app. Please configure a CNAME record with your DNS provider.

az staticwebapp hostname delete

Delete given hostname of the static app.

az staticwebapp hostname delete --hostname
                                --name
                                [--no-wait]
                                [--resource-group]
                                [--subscription]
                                [--yes]

Examples

Delete given hostname of the static app.

az staticwebapp hostname delete -n MyStaticAppName --hostname HostnameToDelete

Required Parameters

--hostname

Custom hostname such as www.example.com. Only support sub domain in preview.

--name -n

Name of the static site.

Optional Parameters

--no-wait

Do not wait for the long-running operation to finish.

--resource-group -g

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

--subscription

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

--yes -y

Do not prompt for confirmation.

az staticwebapp hostname list

List custom hostnames of the static app.

az staticwebapp hostname list --name
                              [--query-examples]
                              [--resource-group]
                              [--subscription]

Examples

List custom hostnames of the static app.

az staticwebapp hostname list -n MyStaticAppName

Required Parameters

--name -n

Name of the static site.

Optional Parameters

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

--subscription

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

az staticwebapp hostname set

Set given sub-domain hostname to the static app. Please configure a CNAME record with your DNS provider.

az staticwebapp hostname set --hostname
                             --name
                             [--no-wait]
                             [--resource-group]
                             [--subscription]

Examples

Set hostname to the static app.

az staticwebapp hostname set -n MyStaticAppName --hostname www.example.com

Required Parameters

--hostname

Custom hostname such as www.example.com. Only support sub domain in preview.

--name -n

Name of the static site.

Optional Parameters

--no-wait

Do not wait for the long-running operation to finish.

--resource-group -g

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

--subscription

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