Create Azure web app with Azure Cli

I am using Azure cloud shell to create a web app. I am opening and click on the cloud shell button to open cloud shell window inside web browser. I am using bash and Azure Cli.

Create a new resource group.

az group create --name webapprg-1602 --location northeurope

Create a new app service plan.

az appservice plan create --name appserviceplan-1602 \
    --resource-group webapprg-1602

Create a new web app.

az webapp create --name webapp-1602 --resource-group webapprg-1602 \
    --plan appserviceplan-1602

Clean up

az group delete --name webapprg-1602

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s