Create a static HTML WebApp. Static HTML code is copied from a GitHub repo. Deployment is done by running a two parameter az command:
az webapp run --name <name> --location <location>
Microsoft docs: Create a static HTML web app in Azure.
az account list -o table
Location="westeurope"
App_Name="viking"
Syntax: Add an extension
az extension list-available -o table
az extension add --name webapp
az extension list -o table
az extension show --name webapp
mkdir ~/git
cd ~/git
git clone https://github.com/Azure-Samples/html-docs-hello-world.git
ls -l
Syntax: Create and deploy existing local code to the WebApp
cd html-docs-hello-world
az webapp up --location $Location --name $App_Name
az webapp list -o table
az webapp list -o json --query '[0].resourceGroup'
RGroup=$(az webapp list -o json --query '[0].resourceGroup' | tr -d '"')
az webapp show --name $App_Name --resource-group $RGroup
vi index.html
az webapp up --location $Location --name $App_Name
Syntax: Delete a resource group
az group delete --name $RGroup --yes --no-wait
az group list -o table