Exercise: Create a static HTML web app by using Azure Cloud Shell

发布时间 2023-10-26 16:35:37作者: ChuckLu

https://learn.microsoft.com/en-us/training/modules/introduction-to-azure-app-service/7-create-html-web-app

resourceGroup=$(az group list --query "[].{id:name}" -o tsv)
appName=az204app$RANDOM

echo "Resource group ID: $resourceGroup"
echo "Application name: $appName"

第一个命令提取resource group的名字,第二个命令生成app name

 

 

The command az webapp up -g $resourceGroup -n $appName --html will deploy a static HTML website to Azure App Service. It will create a new web app in the specified resource group, and then deploy the HTML files to the web app.

Azure App Service - Sample Static HTML Site (az204app21191.azurewebsites.net)