Use Azure Resource Manager policies

Use policies to control resources in Azure.

John Savill

November 8, 2015

1 Min Read
Use Azure Resource Manager policies

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

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like