CmdID / az / az webapp / az webapp config
az webapp config hostname
Configure hostnames for a web app. Azure CLI reference
4 commands 2 options Its page in the Azure CLI reference
Commands
Options
--hostnamehostname assigned to the site, such as custom domains--webapp-namewebapp name.