Introduction:
In this article we are going to see how to swap a deployed Azure Application from Staging to Production and Vice Versa using the Windows Azure Management Portal.Overview:
Swapping a service deployed from one environment to another (traditionally from Stage to Production) is much easier with Windows Azure Management Portal using a few button clicks. With any application we first deploy it to the staging and then check for the real time scenarios (test) and then move the final version to production. After a regular patch is required to do some enhancements to the application, which requires a downtime for the application to do a manual deployment which requires time based on the application and network connectivity as well.Using SWAP Virtual IP Address (VIP) in Azure this became much easier by upgrading the environments without downtime, like swapping the Application from Staging to Production after complete testing of the application in the Staging environment. This way the application is available online and does not require a downtime during the swap as well which is time-saving and easier to manipulate as well.
So what exactly happens when we do a SWAP VIP in Azure? The steps are as follows:
- Normally Swap VIP is done between Production and Staging environments.
- The VIP will be assigned as Production VIP to Staging VIP and Staging VIP to Production VIP. Inside the VIP swap, we may have the following changes as well possibly based on the application like:
- Changes in VM Size.
- Changes in Trust Level of the application
- Changes in the Certificate issued.
Finally VIP will be swapped without any downtime to the application.
Some of the limitations of the VIP SWAP is normally if the number of endpoints for the web role is changed between the environments. Let us see step by step how to do a SWAP VIP of an application from Staging to Production using the Windows Azure Management Portal.
Steps:
Login to the Management Portal using the following link:http://www.microsoft.com/windowsazure/
We will see a screen like below. Select the "Sign into Management Portal" at the top right corner:
After selecting "Sign into Management Portal" you will be asked for the Username and Password to authenticate the process as shown in the following screen:
After providing the correct credentials and clicking on the submit button it will navigate to the main screen of the portal as shown in the following screen:
Now click on the Hosted Services, Storage Account and CDN option in the bottom menu and then select the Hosted Services as shown in the screen below.

Now select the deployed application (f5Debug, f5DebugTest in respective environments) as shown in the screen below. Here we will see the options like the environment on which its deployed and the DNS name to access the application etc.

Join the conversation! Your thoughts help the community grow.