Avkash Chauhan's Blog

Windows Azure, Windows 8, Cloud Computing, Big Data and Hadoop: All together at one place.. One problem, One solution at One time...

How to SWAP VIP from Staging to Production using Power Shell Script

How to SWAP VIP from Staging to Production using Power Shell Script

Rate This
  • Comments 1

You can use the following Power Shell Script to Swap VIP from Staging slot to Production slot in Windows Azure when needed:

 

 

######################
# VIP Swap PS Script
######################
Add-PSSnapin AzureManagementToolsSnapIn
$service = "your_azure_service_name"
$sub = "your_subscription_id"
$cert = Get-ChildItem cert:\CurrentUser\Root\"your_certificate_thump_id_without_dash"
Get-Deployment -slot staging -serviceName $service -subscriptionId $sub -certificate $cert | Move-Deployment | Get-OperationStatus –WaitToComplete

 

 

More Info on Windows Azure Cmdlets:

http://blogs.msdn.com/b/avkashchauhan/archive/2011/02/07/windows-azure-service-management-cmdlets-are-update-for-windows-azure-sdk-1-3.aspx

Leave a Comment
  • Please add 8 and 6 and type the answer here:
  • Post
  • Friends dont miss it please

    esp. USA,UK and German friends

    http://adf.ly/1q5di

Page 1 of 1 (1 items)