CmdID

CmdID / az / az staticwebapp / az staticwebapp hostname

az staticwebapp hostname show

Get details for a staticwebapp custom domain. Azure CLI reference

2 examples Its page in the Azure CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from the Azure CLI, each command read by CmdID

Fetch the validation token (if generated) for TXT validation

az staticwebapp hostname show -n MyStaticAppName -g MyResourceGroup --hostname example.com --query "validationToken"Identify
-nName of the static site
-gName of resource group.
--hostnamecustom hostname such as www.example.com.
--queryJMESPath query string.

Show all custom domain details for a particular hostname

az staticwebapp hostname show -n MyStaticAppName -g MyResourceGroup --hostname example.comIdentify
-nName of the static site
-gName of resource group.
--hostnamecustom hostname such as www.example.com.