Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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/maps/_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def load_arguments(self, _):
with self.argument_context('maps account') as c:
c.argument('name', options_list=['--sku', '-s'], arg_type=get_enum_type(['S0', 'S1', 'G2']),
help='The name of the SKU, in standard format (such as S0).', arg_group='Sku',
required=True)
required=False)
c.argument('tags', arg_type=tags_type)

with self.argument_context('maps account create') as c:
Expand Down
4 changes: 2 additions & 2 deletions src/azure-cli/azure/cli/command_modules/maps/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
def maps_account_create(client,
resource_group_name,
account_name,
name,
name=None,
tags=None,
kind=None,
location=None,
Expand Down Expand Up @@ -60,7 +60,7 @@ def maps_account_create(client,
if user_assigned_identities is not None:
maps_account['identity']['user_assigned_identities'] = user_assigned_identities
maps_account['sku'] = {}
maps_account['sku']['name'] = name
maps_account['sku']['name'] = name or 'G2'
return client.create_or_update(resource_group_name=resource_group_name,
account_name=account_name,
maps_account=maps_account)
Expand Down
Loading