Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kuronetwork/export-azure-all-nsg-rules
This script overcomes the Azure limitation of exporting Network Security Group rules from all resource groups simultaneously. It automates the process of fetching NSG rules from every resource group within an Azure subscription and generates detailed JSON output for further analysis or auditing
https://github.com/kuronetwork/export-azure-all-nsg-rules
azure information-security-policies network-access-control network-security-group
Last synced: about 1 month ago
JSON representation
This script overcomes the Azure limitation of exporting Network Security Group rules from all resource groups simultaneously. It automates the process of fetching NSG rules from every resource group within an Azure subscription and generates detailed JSON output for further analysis or auditing
- Host: GitHub
- URL: https://github.com/kuronetwork/export-azure-all-nsg-rules
- Owner: kuronetwork
- License: mit
- Created: 2024-07-25T22:02:12.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-11-16T10:58:32.000Z (about 2 months ago)
- Last Synced: 2024-11-16T11:28:46.878Z (about 2 months ago)
- Topics: azure, information-security-policies, network-access-control, network-security-group
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# README
## English
This script is used to export Azure Network Security Group (NSG) rules to JSON files. The script lists all NSGs and stores each NSG's rules in a directory named `nsg-rules-export`. Each NSG's rules are saved in a separate JSON file with the filename format `{NSGName}_rules.json`.
### Usage
#### Preparation
For security and environment considerations, it is recommended to use Azure Cloud Shell to run this script. Alternatively, ensure you have the Azure CLI tool installed and configured, and you are logged in to your Azure account.#### Run the Script
After using chmod to elevate permissions, execute the script to export all NSG rules :
```bash
./export_nsg_rules.sh