Use Azure Resource Manager policies
Use policies to control resources in Azure.
November 8, 2015
Q. What can I do with Azure Resource Manager policies?
A. Azure Resource Manager policies as the name implies enables custom policies to be created and then applied to a scope which can be a subscription, resource group or individual resource. The policies are made up of conditional operators and an effect which in most cases would be deny since the default policies are "allow". Common use cases include enabling resource creation only for certain cost centers and for only certain regions. Microsoft has full documentation at https://azure.microsoft.com/en-us/documentation/articles/resource-manager-policy/ with examples of policy creation and application. Below is an example policy that ensures resources are only created in Europe.
{ "if" : { "not" : { "field" : "location", "in" : ["northeurope" , "westeurope"] } }, "then" : { "effect" : "deny" }}
About the Author
You May Also Like