Skip to content

Commit 4ea59ce

Browse files
authored
Update error-code-requestdisallowedbypolicy.md
Added a example for finding policy ID
1 parent 22acc28 commit 4ea59ce

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

support/azure/azure-kubernetes/create-upgrade-delete/error-code-requestdisallowedbypolicy.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ To fix this issue, follow these steps:
3333

3434
1. Find the policy that blocks the action. These policies are listed in the error message.
3535
The name of a policy assignment or definition is the last segment of the `id` string shown in the error message.
36+
```
37+
# Example
38+
Code: RequestDisallowedByPolicy
39+
Message: Resource 'resourcegroup' was disallowed by policy. Policy identifiers: '[{"policyAssignment":{"name":"Not allowed resource types","id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyAssignments/00000000000000000000000"},"policyDefinition":{"name":"Not allowed resource types","id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/not-allowed-resourcetypes","version":"1.0.0"}}]'.
40+
```
3641

3742
1. If possible, change your deployment to meet the limitations of the policy, and then retry the deploy operation.
3843
or if you have permission to change policy, [Add an exemption](/azure/governance/policy/tutorials/disallowed-resources#create-an-exemption) to the policy.

0 commit comments

Comments
 (0)