From 2631da57a032696884995ae6e0def7db396240c2 Mon Sep 17 00:00:00 2001 From: RakeshMohan-MSFT <49954584+RakeshMohanMSFT@users.noreply.github.com> Date: Tue, 19 Jul 2022 06:25:49 +0530 Subject: [PATCH] [Resource] Fix #23246 : Fix interchanged policy samples Fixes https://github.com/Azure/azure-cli/issues/23246 --- .../azure/cli/command_modules/resource/_help.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/resource/_help.py b/src/azure-cli/azure/cli/command_modules/resource/_help.py index 8a4683ff5d2..27fcab32e2d 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/_help.py +++ b/src/azure-cli/azure/cli/command_modules/resource/_help.py @@ -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 \\