This is a sample collection of scripts that will aid in the configuration and scaffolding of an Azure Subscription.
For more information about scaffolding an Azure Subscription, pelase see the Azure Documentation.
Please be sure to see the prerequisites below.
To make use of the scripts, simply clone the repository, create your own config.json, and execute the scripts in your bash environment.
Use the provided config.json.sample as a template for a config.json file that contains all of your input parameters.
$ 00-scaffoldSubscription.sh -f config.json
Alternatively, all scripts have been tested and run successfully from Azure Cloud Shell.
- Log in to Azure Portal
- Click the Cloud Shell icon
- Choose Bash shell from the drop down
- Execute the following:
$ cd clouddrive # Optional
$ git clone https://github.com/michaelsaul/AzurePolicyManagementSample.git
$ cd AzurePolicyManagementSample/
$ cp config.json.sample config.json
$ vi config.json # Make your edits accordingly.
$ ./00-scaffoldSubscription.sh -f config.json
In the next step, I plan to add the following:
- Dynamically build a policy set-definition configuration from the policy definitons created from the config.json.
- Create an Azure Function that will report violations of the policy as defined in the policy configuration file.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.