291291 " /"
292292 ]
293293 }
294- },
295- {
296- "apiVersion" : " 2018-05-01" ,
297- "properties" : {
298- "displayName" : " Test Policy Set Definition" ,
299- "policyType" : " Custom" ,
300- "metadata" : {
301- "category" : " SomeCategory" ,
302- "SomethingUseful" : {
303- "aThing" : " A thing value"
304- }
305- },
306- "parameters" : {
307- "Parameter1" : {
308- "type" : " String" ,
309- "metadata" : {
310- "displayName" : " Parameter1" ,
311- "description" : " The first parameter"
312- },
313- "defaultValue" : " audit"
314- }
315- },
316- "policyDefinitions" : [
317- {
318- "policyDefinitionReferenceId" : " SomePolicyDefinitionName" ,
319- "policyDefinitionId" : " /subscriptions/63e997c7-5fd1-4b3a-8eb5-a3dc0fb3ab6f/providers/Microsoft.Authorization/policyDefinitions/SomePolicyDefinitionName" ,
320- "parameters" : {
321- "effect" : {
322- "value" : " audit"
323- }
324- }
325- },
326- {
327- "policyDefinitionReferenceId" : " AnotherPolicyDefinitionName" ,
328- "policyDefinitionId" : " /subscriptions/63e997c7-5fd1-4b3a-8eb5-a3dc0fb3ab6f/providers/Microsoft.Authorization/policyDefinitions/AnotherPolicyDefinitionName" ,
329- "parameters" : {
330- "effect" : {
331- "value" : " [parameters('Parameter1')]"
332- }
333- }
334- }
335- ]
336- },
337- "id" : " /subscriptions/63e997c7-5fd1-4b3a-8eb5-a3dc0fb3ab6f/providers/Microsoft.Authorization/policySetDefinitions/SomePolicySetDefinitionName" ,
338- "type" : " Microsoft.Authorization/policySetDefinitions" ,
339- "name" : " SomePolicySetDefinitionName"
340- },
341- {
342- "apiVersion" : " 2018-05-01" ,
343- "sku" : {
344- "name" : " A0" ,
345- "tier" : " Free"
346- },
347- "properties" : {
348- "displayName" : " Test Assignment" ,
349- "policyDefinitionId" : " /subscriptions/d5a43281-5981-4cc7-a939-6ff1ab06636a/providers/Microsoft.Authorization/policyDefinitions/SomePolicyDefinition" ,
350- "scope" : " /subscriptions/d5a43281-5981-4cc7-a939-6ff1ab06636a/resourceGroups/SomeResourceGroup" ,
351- "notScopes" : [
352- " /subscriptions/d5a43281-5981-4cc7-a939-6ff1ab06636a/resourceGroups/SomeResourceGroup"
353- ],
354- "parameters" : {
355- "allowedLocations" : {
356- "value" : [
357- " centralus"
358- ]
359- }
360- },
361- "description" : " Some policy assignment test" ,
362- "metadata" : {
363- "assignedBy" : " Test Writer" ,
364- "parameterScopes" : {}
365- }
366- },
367- "identity" : {
368- "principalId" : " c2360c90-bab1-4e87-8ea0-da97d17c037d" ,
369- "tenantId" : " ae0450b3-f3c6-4685-bc92-2669d7d5f810" ,
370- "type" : " SystemAssigned"
371- },
372- "id" : " /subscriptions/d5a43281-5981-4cc7-a939-6ff1ab06636a/resourceGroups/SomeResourceGroup/providers/Microsoft.Authorization/policyAssignments/TestAssignment" ,
373- "type" : " Microsoft.Authorization/policyAssignments" ,
374- "name" : " TestAssignment"
375294 }
376295 ]
377- }
296+ }
0 commit comments