Azure Tips and Tricks Part 134 - Use Run-From-Zip to deploy a site to Azure Web Apps or Functions
Most folks aren’t aware of how powerful the Azure platform really is. As I’ve been presenting topics on Azure, I’ve had many people say, “How did you do that?” So I’ll be documenting my tips and tricks for Azure in these posts.
The Complete List of Azure Tips and Tricks
Use Run-From-Zip to deploy a site to Azure Web Apps or Functions
Here is a neat feature that I just discovered dispite it being added about 6 months or so ago. It is the ability to deploy a site to Azure Web Apps or Azure Functions from a zip file.
With Run-From-Zip there is no longer a deployment step which copies the files to wwwroot such as git, ftp, etc. Instead, the zip file that you point to in your App Settings gets mounted on wwwroot as read-only.
To get started:
Using Azure Storage Explorer, create a storage blob container and upload your zip file and select Generate SAS Signature as shown below:
Hit Create and then Copy
Now head back over to the Azure Portal and add an Azure App Setting called
WEBSITE_RUN_FROM_ZIP, and point it to your zip file.
Mine looks like :
Now gives your site a couple of seconds and you should see your site that was deployed via a zip file.
That is it!
Want more Azure Tips and Tricks?
If you’d like to learn more Azure Tips and Tricks, then follow me on twitter or stay tuned to this blog! I’d also love to hear your tips and tricks for working in Azure, just leave a comment below.
Leave a Comment