Skip to content
Merged
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
49 changes: 49 additions & 0 deletions src/azure-cli/azure/cli/command_modules/keyvault/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@
short-summary: Manage contacts for certificate management.
"""

helps['keyvault certificate contact add'] = """
type: command
short-summary: Add a contact to the specified vault to receive notifications of certificate operations.
examples:
- name: Add a certificate contact with the specified email to the Key Vault. (autogenerated)
text: |
az keyvault certificate contact add --vault-name cli-mock-kv-ct-co --email other@contoso.com
"""

helps['keyvault certificate create'] = """
type: command
short-summary: Create a Key Vault certificate.
Expand Down Expand Up @@ -189,11 +198,29 @@
short-summary: Manage certificate issuer information.
"""

helps['keyvault certificate issuer create'] = """
type: command
short-summary: Create a certificate issuer record.
examples:
- name: Create a certificate issuer in a Key Vault by specifying vault name, issuer name, and provider. (autogenerated)
text: |
az keyvault certificate issuer create --vault-name cli-mock-kv-ct-is --issuer-name issuer1 --provider Test
"""

helps['keyvault certificate issuer admin'] = """
type: group
short-summary: Manage admin information for certificate issuers.
"""

helps['keyvault certificate issuer admin add'] = """
type: command
short-summary: Add admin details for a specified certificate issuer.
examples:
- name: Add a new certificate issuer administrator to a Key Vault by specifying the vault, issuer name, and admin email. (autogenerated)
text: |
az keyvault certificate issuer admin add --vault-name cli-mock-kv-ct-is --issuer-name issuer1 --email mock2@mock.com
"""

helps['keyvault certificate pending'] = """
type: group
short-summary: Manage pending certificate creation operations.
Expand Down Expand Up @@ -384,6 +411,10 @@
short-summary: Create a new key, stores it, then returns key parameters and attributes to the client.
long-summary: The create key operation can be used to create any key type in Vault or HSM. If the named
key already exists, Vault or HSM creates a new version of the key. It requires the keys/create permission.
examples:
- name: Create a key in a specified Key Vault with a given name. (autogenerated)
text: |
az keyvault key create --vault-name envault -n enkey
"""

helps['keyvault key download'] = """
Expand Down Expand Up @@ -528,6 +559,15 @@
short-summary: Manage vault network ACLs.
"""

helps['keyvault network-rule add'] = """
type: command
short-summary: Add a network rule to the network ACLs for a Key Vault.
examples:
- name: Add a specific IP address to the network access rules of a Key Vault in a specified resource group using this command. (autogenerated)
text: |
az keyvault network-rule add --ip-address 1.2.3.4 --name cli-mock-kv-nr --resource-group cli_mock_keyvault_network_rule
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
az keyvault network-rule add --ip-address 1.2.3.4 --name cli-mock-kv-nr --resource-group cli_mock_keyvault_network_rule
az keyvault network-rule add --ip-address 1.2.3.4 --name cli-mock-kv-nr --resource-group cli_mock_keyvault_rg

"""

helps['keyvault network-rule wait'] = """
type: command
short-summary: Place the CLI in a waiting state until a condition of the vault is met.
Expand Down Expand Up @@ -690,6 +730,15 @@
short-summary: Manage role assignments.
"""

helps['keyvault role assignment create'] = """
type: command
short-summary: Create a new role assignment for a user, group, or service principal.
examples:
- name: Create a role assignment for a specified assignee with a defined role and scope in a Managed HSM using its name. (autogenerated)
text: |
az keyvault role assignment create --assignee fb2f-ac10--a04f-8b0d786ea37d --hsm-name mock-mhsm --role "Managed HSM Crypto User" --scope "/"
"""

helps['keyvault role definition'] = """
type: group
short-summary: Manage role definitions.
Expand Down