Skip to content

Commit

Permalink
Added more specific MSI help text. (Azure#64)
Browse files Browse the repository at this point in the history
* Added more specific MSI help text.

* Updated help text.

Co-authored-by: Haroon Feisal <haroonfeisal@microsoft.com>
  • Loading branch information
haroonf and Haroon Feisal committed Apr 11, 2022
1 parent 0dedf19 commit 1474d69
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/containerapp/azext_containerapp/_help.py
Expand Up @@ -280,10 +280,13 @@
az containerapp identity assign -n myContainerapp -g MyResourceGroup --system-assigned
- name: Assign user identity.
text: |
az containerapp identity assign -n myContainerapp -g MyResourceGroup --user-assigned myAssignedId
az containerapp identity assign -n myContainerapp -g MyResourceGroup --user-assigned myUserIdentityName
- name: Assign user identity (from a different resource group than the containerapp).
text: |
az containerapp identity assign -n myContainerapp -g MyResourceGroup --user-assigned myUserIdentityResourceId
- name: Assign system and user identity.
text: |
az containerapp identity assign -n myContainerapp -g MyResourceGroup --system-assigned --user-assigned myAssignedId
az containerapp identity assign -n myContainerapp -g MyResourceGroup --system-assigned --user-assigned myUserIdentityResourceId
"""

helps['containerapp identity remove'] = """
Expand All @@ -293,9 +296,12 @@
- name: Remove system identity.
text: |
az containerapp identity remove -n myContainerapp -g MyResourceGroup --system-assigned
- name: Remove system and user identity.
- name: Remove user identity.
text: |
az containerapp identity remove -n myContainerapp -g MyResourceGroup --user-assigned myUserIdentityName
- name: Remove system and user identity (from a different resource group than the containerapp).
text: |
az containerapp identity remove -n myContainerapp -g MyResourceGroup --system-assigned --user-assigned myAssignedId
az containerapp identity remove -n myContainerapp -g MyResourceGroup --system-assigned --user-assigned myUserIdentityResourceId
- name: Remove all user identities.
text: |
az containerapp identity remove -n myContainerapp -g MyResourceGroup --user-assigned
Expand Down

0 comments on commit 1474d69

Please sign in to comment.