Azure App Service plans are flexible. Learn to create a Web App using Azure portal within existing App Service and new App Service plans.
- [Instructor] Now that we have an app service plan created, we can add an app into the app service plan. As you can see, I'm already in the resource group, DeployWebApps, and we can see our Production app service plan. Next, I'm going to go ahead and click Add. I'm going to search on app, even though I'm going to add in the web app, because I would like to show you the other options that we have available to us.
Don't just think as just web apps. We have API apps, we have mobile apps, and Logic apps, as well as an web app with SQL, and then web app including MySQL. We're going to take a very simple web app. The associated blade provides a little bit of information about our web app. I'm going to select Create. The first thing you need to do is provide a name for this app. One thing to keep in mind, this name will need to be unique because it'll be part of azurewebsites.net, at least until you add in your own custom domain name.
I'm going to name this Prodwebapp. That name seems to be fine. My subscription is already selected as a pay-as-you-go subscription. As always, I can create a new resource group on the fly or use an existing one. And under App Service plan in Location, we can use the existing app service plan that we've already created or we could go ahead and create a new one. I'm going to use the existing one.
And, finally, we could turn on Application Insights, which allows us to easily monitor our app. I'm going to go ahead and click Create. And this'll take a few moments to deploy. As you can see, our deployment has succeeded. I'm going to close the web app blade. And next I'm going to close the everything blade and refresh our resource group. We can see that we have our web app as well as the Application Insights associated with that web app.
I'm going to go ahead an open up the web app. In the overview blade for our web app, we can see the URL, we can see the App Service Plan that it is associated with. And here we can go ahead and stop and restart the web app as required. I'm going to select the URL. And this'll help verify that our web app is up and running. And there we are. As we can see, our web app is up and ready to be configured. Next, I'm going to go ahead and create another app service plan that way I can show you how we can move our app services between our app service plans.
To do so, I'm going to go ahead and click Add. I'm going to search for Service Plan. I'm going to select the app service plan. And create it. In this case, I'm going to call our app service plan dev, and I'm going to leave the rest of our options the same, and click Create.
This'll take a moment to create. Our deployment has now succeeded. I'm going to close the App Service Plan blade and the Everything blade, refresh our resource group. And now you'll notice that we have two app service plans. Remember, we create dour ProdWebApp within the production service plan, but if we wanted to change that? I'm going to go ahead and click on our app.
And I'm going to scroll down to App Service Plan. And then next, I'm going to click on Change App Service Plan. The app service plans that we can move that app to will be presented to us in this example. This was the Dev App Service Plan that we just created. I'm going to select it. And as you can see, we've successfully updated that app service plan.
I'm going to go ahead and close this blade. If we go back to the overview of our ProdWebApp, we will now notice that our app service plan is now the Dev service plan. As you can see, creating apps within your app service plans is very easy, as well as moving those apps between those service plans.
- Deploying Web Apps
- Creating App Service plans
- Deploying and moving apps
- Configuring app settings
- Managing Web Apps using PowerShell and CLI
- Configuring alerts
- Enabling diagnostic logs
- Retrieving and streaming logs
- Configuring Web Apps for scale and resilience