Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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