-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[SQL] az sql mi create/update: Add memory size in gb parameter
#32466
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -944,6 +944,8 @@ | |||||
| text: az sql mi create -g mygroup -n myinstance -l mylocation -i -u myusername -p mypassword --subnet /subscriptions/{SubID}/resourceGroups/{ResourceGroup}/providers/Microsoft.Network/virtualNetworks/{VNETName}/subnets/{SubnetName} --am Windows | ||||||
| - name: Create GPv2 managed instance with specified IOPS limit | ||||||
| text: az sql mi create -g mygroup -n myinstance -l mylocation -i -u myusername -p mypassword --subnet /subscriptions/{SubID}/resourceGroups/{ResourceGroup}/providers/Microsoft.Network/virtualNetworks/{VNETName}/subnets/{SubnetName} -e GeneralPurpose --gpv2 true -f Gen8IH -c 4 --storage 256GB --iops 3000 | ||||||
| - name: Create managed instance with specified memory size in GB | ||||||
| text: az sql mi create -g mygroup -n myinstance -l mylocation -i -u myusername -p mypassword --subnet /subscriptions/{SubID}/resourceGroups/{ResourceGroup}/providers/Microsoft.Network/virtualNetworks/{VNETName}/subnets/{SubnetName} -e GeneralPurpose --gpv2 true -f Gen8IM -c 4 --storage 256GB --iops 3000 --memory 40GB | ||||||
| """ | ||||||
|
|
||||||
| helps['sql mi delete'] = """ | ||||||
|
|
@@ -1083,6 +1085,8 @@ | |||||
| text: az sql mi update -g mygroup -n myinstance --am Windows | ||||||
| - name: Update managed instance to GPv2 with specified IOPS limit | ||||||
| text: az sql mi update -g mygroup -n myinstance -e GeneralPurpose --gpv2 true --iops 3000 | ||||||
| - name: Update managed instance to use a specified memory size in GB | ||||||
| text: az sql mi update -g mygroup -n myinstance -e GeneralPurpose --memory 40GB | ||||||
|
||||||
| text: az sql mi update -g mygroup -n myinstance -e GeneralPurpose --memory 40GB | |
| text: az sql mi update -g mygroup -n myinstance -e GeneralPurpose --memory 40 |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -419,6 +419,10 @@ def get_location_type_with_default_from_resource_group(cli_ctx): | |||||
| help='Preferred metadata to use for authentication of synced on-prem users. Default is AzureAD.', | ||||||
| arg_type=get_enum_type(['AzureAD', 'Windows', 'Paired'])) | ||||||
|
|
||||||
| memory_size_type = CLIArgumentType( | ||||||
| options_list=['--memory'], | ||||||
| help='The memory size in gigabytes (GB).') | ||||||
|
|
||||||
| db_service_objective_examples = 'Basic, S0, P1, GP_Gen4_1, GP_S_Gen5_8, BC_Gen5_2, HS_Gen5_32.' | ||||||
| dw_service_objective_examples = 'DW100, DW1000c' | ||||||
|
|
||||||
|
|
@@ -2326,6 +2330,12 @@ def _configure_security_policy_storage_params(arg_ctx): | |||||
| arg_type=capacity_param_type, | ||||||
| help='The capacity of the managed instance in integer number of vcores.') | ||||||
|
|
||||||
| c.argument('memory_size_in_gb', | ||||||
| options_list=['--memory'], | ||||||
| arg_type=memory_size_type, | ||||||
| help='The memory size of the managed instance.' | ||||||
| 'Memory size must be specified in GB') | ||||||
|
||||||
| 'Memory size must be specified in GB') | |
| ' Memory size must be specified in GB') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The example uses '40GB' without a space, but CLI parameter values typically don't include units. The value should be '40' (the number only), as the help text in _params.py specifies 'Memory size must be specified in GB'. Update to:
--memory 40.