Solved

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

Posted on 2014-07-29
3
1,202 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

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

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

Big data transfers via information superhighways require special attention and protection. Learn more about the IT-regulations of the country where your server is located. Analyze cloud providers and their encryption systems for safe data transit. S…
For cloud, the “train has left the station” and in the Microsoft ERP & CRM world, that means the next generation of enterprise software from Microsoft is here: Dynamics 365 is Microsoft’s new integrated business solution that unifies CRM and ERP fun…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

776 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