Open tsubakimoto opened 6 months ago
APP_NAME_PREFIX=
APP_NAME_SUFFIX=.azurewebsites.net
GROUP_NAME=
HOST_NAME_PREFIX=gha-
HOST_NAME_SUFFIX=
THUMBPRINT=
LANGS=("cakephp" "django" "dotnet6" "dotnet7" "dotnet8" "express" "fastapi" "laravel" "nuxtjs" "php")
for lang in ${LANGS[@]}; do
az webapp config hostname add \
--webapp-name $APP_NAME_PREFIX$lang \
--resource-group $GROUP_NAME \
--hostname $HOST_NAME_PREFIX$lang$HOST_NAME_SUFFIX
az webapp config ssl bind \
--certificate-thumbprint $THUMBPRINT \
--name $APP_NAME_PREFIX$lang \
--resource-group $GROUP_NAME \
--ssl-type SNI
az webapp config set \
--name $APP_NAME_PREFIX$lang \
--resource-group $GROUP_NAME \
--always-on true
done
TODO
Apps
References
az webapp config hostname add --webapp-name <app-name> --resource-group <resource_group_name> --hostname <fully_qualified_domain_name>