Solved

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

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
Many companies are looking to get out of the datacenter business and to services like Microsoft Azure to provide Infrastructure as a Service (IaaS) solutions for legacy client server workloads, rather than continuing to make capital investments in h…
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.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

747 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now