az sql instance-pool
This command group is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Manage instance pools.
Commands
Name | Description | Type | Status |
---|---|---|---|
az sql instance-pool create |
Create an instance pool. |
Core | Preview |
az sql instance-pool delete |
Delete an instance pool. |
Core | Preview |
az sql instance-pool list |
List available instance pools. |
Core | Preview |
az sql instance-pool show |
Get the details for an instance pool. |
Core | Preview |
az sql instance-pool update |
Update an instance pool. |
Core | Preview |
az sql instance-pool wait |
Wait for an instance pool to reach a desired state. |
Core | Preview |
az sql instance-pool create
Command group 'sql instance-pool' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Create an instance pool.
az sql instance-pool create --capacity
--edition
--family
--location
--name
--resource-group
--subnet
[--license-type {BasePrice, LicenseIncluded}]
[--maint-config-id]
[--no-wait]
[--tags]
[--vnet-name]
Examples
Example to create an instance pool (include --no-wait in the end to get an asynchronous experience)
az sql instance-pool create -g resource_group_name -n instance_pool_name -l location --subnet /subscriptions/{SubID}/resourceGroups/{ResourceGroup}/providers/Microsoft.Network/virtualNetworks/{VNETName}/subnets/{SubnetName} --license-type LicenseIncluded --capacity 8 -e GeneralPurpose -f Gen5 -m SQL_{Region}_{MaintenanceConfigName} --no-wait
Example to create an instance pool with subnet name and vnet-name
az sql instance-pool create --license-type LicenseIncluded -l northcentralus -n myinstancepool -c 8 -e GeneralPurpose -f Gen5 -g billingPools --subnet mysubnetname --vnet-name myvnetname
Required Parameters
Capacity of the instance pool in vcores.
The edition component of the sku. Allowed value: GeneralPurpose.
The compute generation component of the sku. Allowed value: Gen5.
Location. Values from: az account list-locations
. You can configure the default location using az configure --defaults location=<location>
.
Instance Pool Name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of the subnet that allows access to an Instance Pool. If subnet name is provided, --vnet-name must be provided.
Optional Parameters
The license type to apply for this instance pool.
Assign maintenance configuration to this managed instance.
Do not wait for the long-running operation to finish.
Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.
The virtual network name.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az sql instance-pool delete
Command group 'sql instance-pool' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Delete an instance pool.
az sql instance-pool delete --name
--resource-group
[--no-wait]
[--yes]
Examples
Delete an instance pool
az sql instance-pool delete -g mygroup -n myinstancepool --yes
Required Parameters
Instance Pool Name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
Do not wait for the long-running operation to finish.
Do not prompt for confirmation.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az sql instance-pool list
Command group 'sql instance-pool' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
List available instance pools.
az sql instance-pool list [--resource-group]
Examples
List all instance pools in the current subscription.
az sql instance-pool list
List all instance pools in a resource group.
az sql instance-pool list -g mygroup
Optional Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az sql instance-pool show
Command group 'sql instance-pool' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Get the details for an instance pool.
az sql instance-pool show --name
--resource-group
Examples
Get the details for an instance pool
az sql instance-pool show -g mygroup -n myinstancepool
Required Parameters
Instance Pool Name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az sql instance-pool update
Command group 'sql instance-pool' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Update an instance pool.
az sql instance-pool update --name
--resource-group
[--add]
[--capacity]
[--edition]
[--family]
[--force-string]
[--license-type {BasePrice, LicenseIncluded}]
[--maint-config-id]
[--no-wait]
[--remove]
[--set]
[--tags]
Examples
Update an instance pool with new tags (make sure they are space separated if there are multiple tags)
az sql instance-pool update -n myinstancepool -g mygroup --tags mykey1=myvalue1 mykey2=myvalue2 --license-type LicenseIncluded --capacity 8 -e GeneralPurpose -f Gen5 -m SQL_{Region}_{MaintenanceConfigName}
Clear the tags assigned to an instance pool
az sql instance-pool update -n myinstancepool -g mygroup --tags ""
Required Parameters
Instance Pool Name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty <key=value, string or JSON string>
.
Capacity of the instance pool in vcores.
The edition component of the sku. Allowed values include: GeneralPurpose, BusinessCritical.
The compute generation component of the sku. Allowed values include: Gen4, Gen5.
When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.
The license type to apply for this instance pool.
Assign maintenance configuration to this managed instance.
Do not wait for the long-running operation to finish.
Remove a property or an element from a list. Example: --remove property.list <indexToRemove>
OR --remove propertyToRemove
.
Update an object by specifying a property path and value to set. Example: --set property1.property2=<value>
.
Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az sql instance-pool wait
Command group 'sql instance-pool' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Wait for an instance pool to reach a desired state.
az sql instance-pool wait --name
--resource-group
[--created]
[--custom]
[--deleted]
[--exists]
[--interval]
[--timeout]
[--updated]
Examples
Wait until an instance pool gets created.
az sql instance-pool wait -n myinstancepool -g mygroup --created
Required Parameters
Instance Pool Name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
Wait until created with 'provisioningState' at 'Succeeded'.
Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].
Wait until deleted.
Wait until the resource exists.
Polling interval in seconds.
Maximum wait in seconds.
Wait until updated with provisioningState at 'Succeeded'.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.