Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 18 additions & 11 deletions src/azure-cli/azure/cli/command_modules/containerapp/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'] = """
Expand Down Expand Up @@ -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" <testuser08@something.com>' \\
'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" <testuser08@something.com>' `
'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
Expand Down
Loading