ruffneck23
front left
Just asked it to write a powershell script to add network security groups to multiple subscriptions in azure, it seems to have come up with the goods
Make sure to replace the values for $subscriptions, "ResourceGroup", "WestUS", and "NSGName" with your own subscription names, resource group name, location, and network security group name, respectively. You can also modify the security rules to fit your specific requirements.
This script will loop through each subscription and create the same network security group with the same security rules in each one. If you need to create different security groups with different rules, you can modify the script accordingly.
Make sure to replace the values for $subscriptions, "ResourceGroup", "WestUS", and "NSGName" with your own subscription names, resource group name, location, and network security group name, respectively. You can also modify the security rules to fit your specific requirements.
This script will loop through each subscription and create the same network security group with the same security rules in each one. If you need to create different security groups with different rules, you can modify the script accordingly.