From the course: Microsoft Azure Administrator Associate (AZ-104) Cert Prep by Microsoft Press

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Creating an app service plan with the Azure CLI

Creating an app service plan with the Azure CLI

- [Brett] In this lecture, we're going to create an Azure web app and an app service plan, but we're going to do it all using the Azure CLI. Now, to keep things easier, I'm using the CLI through the Azure Cloud Shell, and the first thing I'm going to do is create a new resource group to contain our resources, and I will call this rg-cliwebapp, and I'm going to set the location to the UK South. Once that's created, the first step we need to do is create the actual app service plan that will hold the web app, because you can't have a web app without a reference to an app service plan, so let's go ahead and create that first, and we do that by using AZ appservice plan create. We need to give it a name. I'm going to call this a free app service plan, just because I'm going to use the free SKU. We tell it what resource group it's going to be created in. And then, as I say, we need to give it an SKU. So we can get the list of SKUs from the portal, as we saw in an earlier lecture, but in…

Contents