Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Deployment Slots in Azure Websites

DZone's Guide to

Deployment Slots in Azure Websites

Looking for a way to minimize broken deployment impact? Azure has deployment slots that can support enough deployment workflows to make your website fully resilient.

· Cloud Zone
Free Resource

Production-proven Mesosphere DC/OS is now even better with GPU scheduling, pods, troubleshooting, enhanced security, and over 100+ integrated services deployed in one-click.

Deployment Slots in Azure Websites are a way to minimize the impact of broken deployments. Deployment Slots provides a wide variety of deployment workflows. When you create an Azure Website then you are directly provisioned with the production slot. With deployment slots you can directly swap between a production slot and a non-production slot without any downtime.

There are a few scenarios in Azure Websites deployment slots:

  • Staged Deployment : When you are building a website then you might want to test weather it is fully functional or not. You can do this in your non-production slot and when you are ready to push it to the production site you can swap the slots to interchange between non-production and production site.
  • Incremental Deployment : If you want to make changes in the website without harming the production site you can create a non-production slot develop on it, test it then swap between the slots.
  • Rolling back deployment: After swapping the deployment you realize that your site is not working the way it should work then you would probably roll back the deployment to undo the changes you have made.

Creating a New Deployment Slot

  1. Login in to your Portal at http://manage.windowsazure.com then go to your site’s dashboard.
  2. Under Quick Glance , click on Add a New Deployment Slot. (You must be in standard pricing tier) Screen Shot 2015-07-25 at 11.01.25 PM
  3. In the dialog box that pops up, name your deployment slot. This name will be used to recognize your production and deployment slot. You can copy the same website from the production slot or create a new empty slot for it.Screen Shot 2015-07-25 at 11.05.43 PM
  4. Click the check mark and your new deployment slot is set for you.

Now that you have created your new deployment slot. You can get this on Dashboard of the Web Apps in Windows Azure as shown below.

Screen Shot 2015-07-25 at 11.06.59 PMYou can use the slot similar to a new website (Let’s suppose) and deploy files to it.

You can swap between slots by going to the Dashboard of the website and clicking on the swap button on the toolbar below.

Screen Shot 2015-07-25 at 11.07.22 PM




Stay tuned for more.

Simply build, test, and deploy. Mesosphere DC/OS is the best way to run containers and big data anywhere offering production-proven flexibility and reliability.

Topics:
azure ,deployment ,cloud

Published at DZone with permission of Ravi Mandal. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}