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

24 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