Disassociate public IP from Azure Firewall with Powershell
With the below simple ten lines script, you can disassociate the public IP address from your Azure Firewall instance.
|
|
First of all, you have to connect to your Azure account from Powershell. The next two steps are optional - only required if you want to change subscription, f.g. because you logged into another one by default.
In the next three lines, we are configuring some useful variables - we are defining in which Resource Group the public IP and the Azure Firewall are existing and what are the names of the resources.
The last four lines are the most important - we are taking the information about public IP and Azure Firewall, we are removing the address from the firewall, and then we are committing the changes by the last line.
To associate the existing public IP address to the firewall, you have to change the ninth line of the above script:
|
|
I hope it will be useful for you!
Newsletter
Thank you for visiting my website. I hope you enjoyed the content that I prepared and learned something valuable from it. If you want to be informed about my next entries or occasionally get a message with a collection of some interesting links, please subscribe to my newsletter. I will be extremely pleased if you do this and join my community!