- Loops through all subscriptions users has access to.
- Finds all NSG rules with the specified name from each NSG it finds.
- Removes all the rulles with the name specified.
- The progress of tasks accomplishments is printed in console as it goes along.
- Ignores errors and continues processing.
- Azure CLI must be installed locally.
- Your account must have assigned
Network contributor
orContributor
role. - Authenticate your user with
az login
.
- Sign in to Azure Portal
- Your account must have assigned
Network contributor
orContributor
role. - Run the script via MS Azure Cloud Shell.
NOTE: This script is tested with Azure CLI version 2.43.0. To check yours run
az version
.