Instance creation within instance pool
Is this part of the documentation still work in progress? It seems like there is no proper azure cli command to create an instance within an instance pool [Enter feedback here]
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 44c2a098-77c8-8491-afec-49fb52c0f196
- Version Independent ID: dcb2673c-77c5-2cdd-cf19-f164717fc661
- Content: az sql instance-pool
- Content Source: src/azure-cli/azure/cli/command_modules/sql/_help.py
- Service: sql-database
- GitHub Login: @rloutlaw
- Microsoft Alias: routlaw
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @azureSQLGitHub.
sql
Hey @hamsome, were you able to try az sql instance-pool create with the right parameters? Did something fail? Could you please share more information
hey @rohands, I mean, after creating the instance pool, what is the command to create a managed instance inside the pool? For example, the powershell Az command equivalent would look like this: $instanceOne = $instancePool | New-AzSqlInstance -Name "mi-pool-name" -VCore 2 -StorageSizeInGB 256
We currently do not support it with Azure CLI. This is work in progress. Best alternative for now would be to use PowerShell like you mentioned.
I am not able to create Instance Pool with below PowerShell cmd.
Getting Error : "New-AzSqlInstancePool: Long running operation failed with status 'Failed'. Additional Info:'An unexpected error occured while processing the request. Tracking ID: 'f498bd70-9018-4bbf-ab1e-d2633954538d''"
Please help to fix the error.
$virtualNetwork = Get-AzVirtualNetwork -Name "vnetname" -ResourceGroupName "rgname" $subnet = Get-AzVirtualNetworkSubnetConfig -Name "misubnet" -VirtualNetwork $virtualNetwork
$instancePool = New-AzSqlInstancePool
-ResourceGroupName "rgname"
-Name "test-mi-pl"
-SubnetId $subnet.Id
-LicenseType "LicenseIncluded"
-VCore 8
-Edition "GeneralPurpose"
-ComputeGeneration "Gen5"
-Location "eastus"