Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iriw/azure_resources_management
https://github.com/iriw/azure_resources_management
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/iriw/azure_resources_management
- Owner: IriW
- Created: 2023-01-04T22:04:32.000Z (about 2 years ago)
- Default Branch: az_rm_nsgrule
- Last Pushed: 2023-01-04T22:38:33.000Z (about 2 years ago)
- Last Synced: 2024-11-19T12:18:29.906Z (2 months ago)
- Language: Shell
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Remove all NSG rules with specified name in all subscriptions
## This script does the following:
1. Loops through all subscriptions users has access to.
2. Finds all NSG rules with the specified name from each NSG it finds.
3. Removes all the rulles with the name specified.
4. The progress of tasks accomplishments is printed in console as it goes along.
5. Ignores errors and continues processing.## Prerequisites
### If executed on local environment:
1. Azure CLI must be installed locally.
2. Your account must have assigned `Network contributor` or `Contributor` role.
2. Authenticate your user with `az login`.### Alternatively:
1. Sign in to Azure Portal
2. Your account must have assigned `Network contributor` or `Contributor` role.
3. 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`.