AzureNSGHandler
makes it easy to authenticate with Azure using service principal credentials and retrieve
all NSGs within a subscription, helping with network security auditing and firewall configuration visibility.
Example
To create theAzureNSGHandler
object, provide your Azure credentials (subscription ID, tenant ID, client ID, and client secret).
These can also be loaded from environment variables:
Retrieves a list of all NSGs in the subscription. Each NSG includes its rules and properties.