Skip to content

Instantly share code, notes, and snippets.

@krnese
Created April 7, 2020 11:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krnese/1921a6731776739270dc12afcbe0be4f to your computer and use it in GitHub Desktop.
Save krnese/1921a6731776739270dc12afcbe0be4f to your computer and use it in GitHub Desktop.
policy resource deployment from mg
{
"$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters":{},
"resources":[],
"outputs": {
"policyDefinitionTemplate": {
"value": "[reference('/subscriptions/4d6a661f-2192-5ef8-a377-ae79beb54f3c/providers/Microsoft.Authorization/policyDefinitions/614c4ec0-be43-4dd5-bd50-b21e570c4abb', '2018-05-01').policyRule.then.details.deployment.properties.template]",
"type": "object"
},
"policyAssignmentTemplateParameters": {
"value": "[reference('/subscriptions/4d6a661f-2192-5ef8-a377-ae79beb54f3c/providers/Microsoft.Authorization/policyAssignments/43e0b361312648d3be08e16c', '2018-05-01').parameters]",
"type": "object"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment