Demo - Run a Web App from a ZIP package
1. Demo - Run a Web App from a ZIP package
In this video, we're going to configure an Azure Web App to run its content directly from a deployment package stored in Blob Storage. We already have a Web App and a Storage Account created. Let's start by getting the package URL from Blob Storage. We open the Storage Account, go to Containers, open the target container and select the ZIP file that contains the application code. We choose Generate SAS. The Web App only needs Read permissions. After choosing an expiration time, we generate the SAS token and copy the full SAS URL. This is what the Web App will use to load the package. Back in the Web App, under Configuration, we add a new application setting called WEBSITE_RUN_FROM_PACKAGE, and paste the SAS URL as the value. Next, we go to General settings, where we can configure a startup command. This lets us run a custom script or boot command when the Web App starts and it is especially useful for Linux based applications. We save the changes and, after restarting the Web App, it will begin running directly from the ZIP package on Blob Storage. We can open the Web App and verify that it loads successfully using the package from Blob Storage and starts with the custom command. And that's how you set up a Web App to run from a package, configure a startup command, and manage environment settings in Azure App Service.2. Let's practice!
Create Your Free Account
or
By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.