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

40 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. Very good, I think I found the knowledge I needed.
    London prostitutions

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

    ReplyDelete
  5. 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
  6. Buy online wholesale printed candle boxes and packaging at easy prices and shipping worldwide, with 24/7 customer support. Get a free custom quote now!!

    ReplyDelete
  7. Blackbird packaging provide you with any size, shape design, cbd boxes sooner than any other packaging competitor in the market

    ReplyDelete
  8. Blackbird packaging provide you with any size, shape design, wholesale cookie boxes sooner than any other packaging competitor in the market

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

    ReplyDelete
  10. Blackbird packaging provide you with any size, shape design, custom cookie boxes wholesale sooner than any other packaging competitor in the market

    ReplyDelete
  11. 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
  12. Looking For Some Of The happy new year pictures? Here's Something To Help you to wish

    ReplyDelete
  13. Great Article
    Cloud Computing Projects




    Networking Projects



    Final Year

    Projects for CSE





    JavaScript Training in Chennai



    JavaScript

    Training in Chennai




    The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals,

    Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer.

    Angular Training

    ReplyDelete
  14. 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
  15. 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
  16. Thanks For Sharing This Post Hey Guys If You Want To Download Happy New Year 2021 Images Photo Then Visit This Link And Download Happy New Year 2021 Images PhotoFree Happy New Year 2021 Images Photo

    ReplyDelete
  17. Thanks For Sharing This Post Hey Guys If You Want To Download Happy New Year 2021 Images Photo Then Visit This Link And Download Happy New Year 2021 Images Photo Free Happy New Year 2021 Images Photo

    ReplyDelete
  18. Thanks For Sharing This Post Hey Guys If You Want To Download Republic Day 26 January Photo Editing Background Then Visit This Link And Download Republic Day 26 January Photo Editing Background Free Republic Day 26 January Photo Editing Background

    ReplyDelete
  19. 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
  20. 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
  21. Pacakaging town is a one stop solution for the short-run tuck top boxes wholesale needs and supplies. At affordable prices. Request a free quote now.

    ReplyDelete
  22. 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
  23. 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
  24. Packaging town is a one stop solution for the short-run custom soap boxes needs and supplies. At affordable prices. Request a free quote now.

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

    ReplyDelete
  26. 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
  27. 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
  28. buy online electronics store Pakistan from alfatah at best prices. Get free shipping

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

    ReplyDelete
  30. 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
  31. Blackbird packaging provide you with any size, shape design, cbd bath bombs wholesale sooner than any other packaging competitor in the market

    ReplyDelete
  32. Blackbird packaging provide you with any size, shape design, wholesale cookie boxes sooner than any other packaging competitor in the market

    ReplyDelete
  33. 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
  34. 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
  35. Buy jogger pants pakistan from ndure at best prices delivered at your doorstep. Get free shipping

    ReplyDelete
  36. 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
  37. This comment has been removed by the author.

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

    ReplyDelete