Skip to content

Commit

Permalink
[Resource] Fix Azure#23246 : Fix interchanged policy samples
Browse files Browse the repository at this point in the history
  • Loading branch information
RakeshMohanMSFT authored Jul 19, 2022
1 parent 6b67cd1 commit 2631da5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/azure-cli/azure/cli/command_modules/resource/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -1970,17 +1970,17 @@
short-summary: Name or id of the subscription the new policy set definition can be assigned in.
examples:
- name: Create a policy set definition.
text: |
az policy set-definition create -n readOnlyStorage \\
--definitions '[ { \\"policyDefinitionId\\": \\"/subscriptions/mySubId/providers/ \\
Microsoft.Authorization/policyDefinitions/storagePolicy\\" } ]'
- name: Create a policy set definition with parameters.
text: |
az policy set-definition create -n readOnlyStorage \\
--definitions "[ { \\"policyDefinitionId\\": \\"/subscriptions/mySubId/providers/ \\
Microsoft.Authorization/policyDefinitions/storagePolicy\\", \\"parameters\\": \\
{ \\"storageSku\\": { \\"value\\": \\"[parameters(\\\\"requiredSku\\\\")]\\" } } }]" \\
--params "{ \\"requiredSku\\": { \\"type\\": \\"String\\" } }"
- name: Create a policy set definition with parameters.
text: |
az policy set-definition create -n readOnlyStorage \\
--definitions '[ { \\"policyDefinitionId\\": \\"/subscriptions/mySubId/providers/ \\
Microsoft.Authorization/policyDefinitions/storagePolicy\\" } ]'
- name: Create a policy set definition in a subscription.
text: |
az policy set-definition create -n readOnlyStorage \\
Expand Down

0 comments on commit 2631da5

Please sign in to comment.