This blog post has been updated from its original version in order to use the correct names of the PowerShell cmdlets. This blog post explains how to perform common management tasks for Azure Web App deployment slots by using Powershell cmdlets. To learn more about deployment slots refer to the Azure documentation and my previous Continue reading 'Using Powershell to manage Azure Web.
With this years Azure Advent Calendar I made some site improvements and also upgraded the site from .Net 2.2 to 3.0, the code built and ran locally just fine, I push it to production and boom! – sites down, not good for a number of reasons.
The take away from this is I knew better, I tried to push some changes which in hindsight could easy have broken the site and by running it locally I thought its all good, the site has no tests as its content only. Blackjack promotions head office.
By upgrading the site and attempting to add in Azure Application configuration I ran into some nuget package issues which I though I had resolved.
Ameristar Casino Hotel Kansas City. 3200 North Ameristar Drive. Kansas City, MO 64161. 816-414-7000 Gambling Problem? Call 1-888-BETS-OFF (238-7633) or Visit 888betsoff.com. View Ameristar Casino's upcoming event schedule and profile - Kansas City, MO. A list of the entertainers who have appeared on stage at our Star P.
- The Web App deployment slots are a great feature, really useful however, they don't really work elegantly when the site is protected by an application gateway. The current behaviour means that the app gateway needs to be “aware” of the active deployment slot, this really isn't something that it should be aware of.
- In the Azure Portal, in the Azure App Service resource blade for your Web App, you can add a deployment slot by navigating to “Deployment slots,” adding a slot, and giving the slot a name. The deployment slot has its own hostname and is a live app.
- Azure Functions deployment slots allow your function app to run different instances called 'slots'. Slots are different environments exposed via a publicly available endpoint. One app instance is always mapped to the production slot, and you can swap instances assigned to a slot on demand.
Get to the point of the blog post already Gregor!
Azure has a thing called Azure Deployment Slots for Web apps and with this feature we can have the following: –
- Have 2 copies of the site running at the same time (one prod, one staging)
- Deploy new features to Staging ad then test (however you test)
- If all is good you switch slots so that the new version is now the prod version and the old prod version is switched into the staging version – if anything is borked then switch back and your back to good.
That’s the short version of what deployment slots are used for, I encourage you to take a look at them and I have this now setup for the azure advent calendar and wont be so careless next time.