EmAchieng / azure-networking-management

0 stars 0 forks source link

Missing Environment Variable Validation #7

Closed EmAchieng closed 1 month ago

EmAchieng commented 2 months ago

Description: The script retrieves the Azure subscription ID from the environment variable AZURE_SUBSCRIPTION_ID but does not validate if this variable is set or contains a valid value. If the environment variable is missing or empty, it will cause runtime errors.

Possible Fix: Add validation to check if the AZURE_SUBSCRIPTION_ID environment variable is set and not empty. Include error handling to provide clear messages or handle cases where the environment variable is missing.