Skip to content

Commit

Permalink
GA mhsm user assigned identity
Browse files Browse the repository at this point in the history
  • Loading branch information
evelyn-ys committed Dec 13, 2023
1 parent 75b37de commit 188892c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/azure-cli/azure/cli/command_modules/keyvault/_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ class CLISecurityDomainOperation(str, Enum):
c.argument('retention_days', validator=validate_retention_days_on_creation,
help='Soft delete data retention days. It accepts >=7 and <=90. '
'Defaults to 90 for keyvault creation. Required for MHSM creation')
c.argument('user_identities', options_list=['--mi-user-assigned'], nargs='*', is_preview=True,
c.argument('user_identities', options_list=['--mi-user-assigned'], nargs='*',
min_api='2023-07-01', resource_type=ResourceType.MGMT_KEYVAULT, operation_group="managed_hsms",
help="[HSM Only]Enable user-assigned managed identities for managed HSM. "
help="[HSM Only] Enable user-assigned managed identities for managed HSM. "
"Accept space-separated list of identity resource IDs.")

with self.argument_context('keyvault create', arg_group='Network Rule') as c:
Expand All @@ -190,7 +190,7 @@ class CLISecurityDomainOperation(str, Enum):
help='--secondary-locations extends/contracts an HSM pool to listed regions. The primary location '
'where the resource was originally created CANNOT be removed.')
c.argument('user_identities', options_list=['--mi-user-assigned'],
nargs='*', min_api='2023-07-01', is_preview=True,
nargs='*', min_api='2023-07-01',
help="Enable user-assigned managed identities for managed HSM. "
"Accept space-separated list of identity resource IDs.")

Expand Down Expand Up @@ -634,7 +634,7 @@ class CLISecurityDomainOperation(str, Enum):
with self.argument_context('keyvault {} start'.format(command_group)) as c:
c.argument('token', options_list=['--storage-container-SAS-token', '-t'],
help='The SAS token pointing to an Azure Blob storage container')
c.argument('use_managed_identity', arg_type=get_three_state_flag(), is_preview=True,
c.argument('use_managed_identity', arg_type=get_three_state_flag(),
help='If True, Managed HSM will use the configured user-assigned managed identity to '
'authenticate with Azure Storage. Otherwise, a `sas_token` has to be specified.')

Expand Down

0 comments on commit 188892c

Please sign in to comment.