Solved

How to force Microsoft Azure Cloud Service public IP to change...

Posted on 2014-07-29
3
1,220 Views
Last Modified: 2014-11-12
I'm exploring the abilities of Microsoft Azure for hosting a web scraper.  To work-around site blocking, I'd like to be able to force the public IP address of the Azure Cloud Service to change on command.  Ideally, a script would be used to force the IP change on a regular schedule.

Azure's documentation indicates that the Cloud Service Public IP address will be re-provisioned if all of the VMs using the service are shut down.  However, when shutting down and restarting my one VM using PowerShell, I'm getting mixed results--sometimes the Cloud Service IP changes, sometimes it doesn't.  One test took 15+ minutes after the VM shutdown/restart for the IP change to register, while other identical tests showed the change within a minute, or no change at all.

Not certain if there is a time factor involved--maybe X number of seconds/minutes are needed after the VM shutdown, before the VM is restarted (along with the Cloud Service by default) for the Azure backend to register the changes?

Any insights or knowledge regarding this would be greatly appreciated.
0
Comment
Question by:Dimarc67
  • 3
3 Comments
 
LVL 4

Accepted Solution

by:
Dimarc67 earned 0 total points
ID: 40228940
Looks like the delay inconsistency is actually caused (simply) by the Azure DNS record TTL for the cloudapp.net name of the proxy server.  If we shutdown/restart the Cloud Service, it's IP changes, but the DNS record for the name has a TTL of 1 hour, so it won't update in the DNS servers until we clear the cache.

With this information, it seems to work as designed.
0
 
LVL 4

Author Closing Comment

by:Dimarc67
ID: 40228947
Issue self-resolved.
0
 
LVL 4

Author Comment

by:Dimarc67
ID: 40307805
By the way, our final solution was to write a PowerShell script to create a new cloud service and VM before deleting the previous service.  This forces a new IP address (since the previous IP is still in use).  Working well.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Cloud-based technologies and services will continue to grow in popularity in 2017 thanks to the simple, scalable and cost-effective solutions they deliver. Here are three areas where cloud adoption is poised to really take off.
Many CHPs use the buzzword ‘Cloud Hosting’ to sell the idea of reliability. Most consumers have the opinion that cloud hosting is easily scalable and can handle just about anything. Further, most CHPs are not transparent and hide the underlying arch…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question