Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion src/azure-cli/azure/cli/command_modules/ams/_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem
with self.argument_context('ams account create') as c:
c.argument('storage_account', storage_account_arg_type,
help='The name or resource ID of the primary storage account to attach to the Azure Media Services account. The storage account MUST be in the same Azure subscription as the Media Services account. It is strongly recommended that the storage account be in the same resource group as the Media Services account. Blob only accounts are not allowed as primary.')
c.argument('assign_identity', options_list=['--id-system-assigned'], action='store_true', help='Set the system managed identity on the media services account.')
c.argument('assign_identity', options_list=['--mi-system-assigned'], action='store_true', help='Set the system managed identity on the media services account.')

with self.argument_context('ams account check-name') as c:
c.argument('account_name', options_list=['--name', '-n'], id_part=None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ interactions:
Content-Type:
- application/json; charset=utf-8
ParameterSetName:
- -n -g --storage-account -l --id-system-assigned
- -n -g --storage-account -l --mi-system-assigned
User-Agent:
- python/3.8.2 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-media/3.0.0 Azure-SDK-For-Python AZURECLI/2.18.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ interactions:
Content-Type:
- application/json; charset=utf-8
ParameterSetName:
- -n -g --storage-account -l --id-system-assigned
- -n -g --storage-account -l --mi-system-assigned
User-Agent:
- python/3.8.2 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-media/3.0.0 Azure-SDK-For-Python AZURECLI/2.18.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def test_ams_encryption_set_show(self, resource_group, storage_account_for_creat
'identityPermissions': "get unwrapkey wrapkey",
})

account_result = self.cmd('az ams account create -n {amsname} -g {rg} --storage-account {storageAccount} -l {location} --id-system-assigned', checks=[
account_result = self.cmd('az ams account create -n {amsname} -g {rg} --storage-account {storageAccount} -l {location} --mi-system-assigned', checks=[
self.check('name', '{amsname}'),
self.check('location', 'Central US')
])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def test_ams_create_show(self, resource_group, storage_account_for_create):
'location': 'centralus',
})

self.cmd('az ams account create -n {amsname} -g {rg} --storage-account {storageAccount} -l {location} --id-system-assigned', checks=[
self.cmd('az ams account create -n {amsname} -g {rg} --storage-account {storageAccount} -l {location} --mi-system-assigned', checks=[
self.check('name', '{amsname}'),
self.check('location', 'Central US'),
self.check('identity.type', 'SystemAssigned')
Expand Down