I installed pfSense for some test and I think to create a S2S VPN with my Azure subscription, from my home lab. The problem is that I don't have a fix public IP. So I used a DynDns record and connect it to my pfSense VM.
The problem is that I don't want to update manually, every day, my public IP. I found a great article from Christopher: https://www.vnext.be/2013/12/01/windows-azure-s2s-vpn-with-dynamic-public-ip/
The only problem is that the script is using the Azure Classic Mode and not Azure Resource Manager.
It's why, I updated the script to work with ARM. All cmdlets are not supporting directly the update instead of the portal, strange. Maybe it will come with future realases. The only way to do this, is to delete the Local Network Gateway and recreate it: https://twitter.com/AzureSupport/status/735751820962758658
The script is doing this. Just adapt values at the beginning and launch the script.
As Christopher done, I execute the script every 5 minutes on my server.
Don't hesitate to leave comments, report errors, and so on.
------- ChangeLog -------