diff --git a/src/azure-cli/azure/cli/command_modules/containerapp/_help.py b/src/azure-cli/azure/cli/command_modules/containerapp/_help.py index d9a9505a3c0..9961a084efd 100644 --- a/src/azure-cli/azure/cli/command_modules/containerapp/_help.py +++ b/src/azure-cli/azure/cli/command_modules/containerapp/_help.py @@ -332,18 +332,8 @@ --cpu 0.75 --memory 1.5Gi - name: Create a revision based on a previous revision. text: | - az containerapp revision copy -g MyResourceGroup \\ + az containerapp revision copy -n my-containerapp -g MyResourceGroup \\ --from-revision PreviousRevisionName --cpu 0.75 --memory 1.5Gi - -""" - -helps['containerapp revision copy'] = """ - type: command - short-summary: Create a revision based on a previous revision. - examples: - - name: Create a revision based on a previous revision. - text: | - az containerapp revision copy -n my-containerapp -g MyResourceGroup --cpu 0.75 --memory 1.5Gi """ helps['containerapp revision label'] = """ @@ -1263,6 +1253,23 @@ - name: Add secrets to a container app. text: | az containerapp secret set -n my-containerapp -g MyResourceGroup --secrets MySecretName1=MySecretValue1 MySecretName2=keyvaultref:https://example.vault.azure.net/secrets/mysecret,identityref:/subscriptions/sub/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myidentity + - name: Set secrets whose values contain spaces and special characters (Bash). + text: | + az containerapp secret set -n my-containerapp -g MyResourceGroup \\ + --secrets 'connString=Server=tcp:myserver;User Id=my user;Password=P@ss w0rd;' + - name: Set multiple secrets including double quotes and a single quote (Bash). + text: | + az containerapp secret set -n my-containerapp -g MyResourceGroup \\ + --secrets \\ + 'displayName="Test User 08" ' \\ + 'apostrophe=Bob'\\''s secret' + - name: Set secrets with special characters (PowerShell). + text: | + az containerapp secret set -n my-containerapp -g MyResourceGroup ` + --secrets ` + 'connString=Server=tcp:myserver;User Id=my user;Password=P@ss w0rd;' ` + 'displayName="Test User 08" ' ` + 'apostrophe=Bob''s secret' - name: Update a secret. text: | az containerapp secret set -n my-containerapp -g MyResourceGroup --secrets MyExistingSecretName=MyNewSecretValue MyExistingSecretName2=keyvaultref:https://example.vault.azure.net/secrets/mysecret,identityref:/subscriptions/sub/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myidentity