find a location for property in a new city

Monday 14 November 2011

VIP swap with different endpoints in Azure

Attempting to Swap VIPs from the Azure Management Portal can return an message "Windows Azure cannot perform a VIP swap between deployments that specify different endpoint ports" when trying to Swap VIPs between a staging and production environment with different endpoints.

Say you have a web role deployed to Azure and it is currently in production. It has one instance and one endpoint of http on port 80. You then publish a new web role to staging that is also one instance but this time it has an https endpoint on port 443.

Both will work as usual however when you come to swap the VIPs over you will recieve the error "Windows Azure cannot perform a VIP swap between deployments that have a different number of endpoints" preventing you from putting your new site into production.

Is there a way around this?

I tried a few different tactics. I tried doing a straight upgrade to production (since I have tested the same deployment in staging) but this failed for the same reason as above.

I tried changing my new package to have the original http endpoint on port 80 as well as the new endpoint on port 443. This didn't work either. All this experimenting takes time so I thought I would save you the hassle and just tell you that neither of these work!

The only way(?)

The only way I found to get your new site into production is (you guessed it) delete the old site that is to be replaced (scary!), and then click "Swap VIP". You will experience down time for somewhere between 2 and 3 minutes so pick the least destructive time to do this.

Note: Please please test the new site that on staging thoroughly as you just deleted the production package and so it will take a long time to get back!

Follow britishdev on Twitter

23 comments:

  1. That's really scary.

    I guess the only other way to mitigate the downtime is to use a DNS alias to access the web role (www.myapp.com -> myapp.cloudapp.net), deploy to a different role on production and then point the DNS alias to the new web role (www.myapp.com -> myappssl.cloudapp.net), after a couple of days when DNS propagate you can delete the old role.

    Ciao,
    Giorgio

    ReplyDelete
  2. We get around this by giving up the Swap VIP and just having two different hosted services, each with one Production deployment. One is our staging and one is production. Locally, we have two Azure projects for each environment.

    ReplyDelete
  3. Wholesale printed custom perfume boxes with the highest quality and affordable prices. Free worldwide Delivery and free Custom Perfume Boxes design.

    ReplyDelete
  4. this is the best and informative blog post for me. thank you so much for sharing this us. in uk if you are looking for UK essay writing service then they are best to provide you professional writing services

    ReplyDelete
  5. Packaging town is a one stop solution for the short-run cbd facial oil boxes needs and supplies. At affordable prices. Request a free quote now.

    ReplyDelete
  6. Looking For Some Of The happy new year pictures? Here's Something To Help you to wish

    ReplyDelete
  7. Thanks For Sharing This Post Hey Guys If You Want To Download CB Picsart Happy New Year Background 2021 Then Visit This Link And Download CB Picsart Happy New Year Background 2021 Free CB Picsart Happy New Year Background 2021

    ReplyDelete
  8. Thanks For Sharing This Post Hey Guys If You Want To Download Makar Sankranti Editing Background Then Visit This Link And Download Makar Sankranti Editing Background Free Makar Sankranti Editing Background

    ReplyDelete
  9. Packaging town is a one stop solution for the short-run custom apparel packaging needs and supplies. At affordable prices. Request a free quote now.

    ReplyDelete
  10. To promote your business the services of SEO, SMO, Digital Marketing, and many more are provided by Locals Listing . Through social media, we can reach millions of people easily, therefore, social media is used to promote the business.

    ReplyDelete
  11. Blackbird packaging company can provide you with any size, shape design, and cbd bath bomb wholesale sooner than any other packaging competitor in the market

    ReplyDelete
  12. Buy fashionable men's sweatshirts at Wild Goat. Shop the Latest Collection of Men's Summer and Winter men Sweatshirts in Pakistan. Exclusive collection of Men's sweatshirts are available at Wild Goat. Shop the best quality and finest fabrics from Wild Goat. Style a classy look in Wild Goat's finest sweatshirts.

    ReplyDelete
  13. Buy fashionable men's sweatshirts at Wild Goat. Shop the Latest Collection of Men's Summer and Winter Sweatshirts in Pakistan. Exclusive collection of Men's sweatshirts are available at Wild Goat. Shop the best quality and finest fabrics from Wild Goat. Style a classy look in Wild Goat's finest sweatshirts.

    ReplyDelete
  14. buy online electronics store Pakistan from alfatah at best prices. Get free shipping

    ReplyDelete
  15. buy jogger pants online from wild goat clothing at best pricces. Get Free shipping

    ReplyDelete
  16. Shop Men Zipper Hoodies in a wide range of colors and styles at Wild Goat. Winter Zipper Hoodies Collection in long and short hoodies in variety of colors is now available at Wild Goat. View our wide collection of men's zipper hoodies and stock up your wardrobe now. Prices of our zipper hoodies are too low to miss.

    ReplyDelete
  17. Wow, What a Excellent post. I really found this to much informatics. It is what i was searching for.I would like to suggest you that please keep sharing such type of info.Thanks it's time to avail this pest control surrey visit here.

    ReplyDelete
  18. The Latest Tech News about the world's best (and sometimes worst) hardware, apps, and much more. From top companies like Google and Apple or you wanna Free Guest Post to grow sales traffic.

    ReplyDelete
  19. Thank you for sharing informative post. I really like your post. You discuss about azure VIP swap. I also bookmark your site for more updated information about development. Furthermore, Residential mover in Chantilly provide the best and reliable services. We provide the quality work as your desire destination.

    ReplyDelete
  20. This comment has been removed by the author.

    ReplyDelete
  21. This comment has been removed by the author.

    ReplyDelete