azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

Instance creation within instance pool

Open hamsome opened this issue 6 years ago • 6 comments

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.

hamsome avatar Jun 09 '20 21:06 hamsome

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @azureSQLGitHub.

ghost avatar Jun 09 '20 22:06 ghost

sql

yonzhan avatar Jun 09 '20 22:06 yonzhan

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

rohands avatar Jun 09 '20 23:06 rohands

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

hamsome avatar Jun 10 '20 02:06 hamsome

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.

rohands avatar Jun 11 '20 17:06 rohands

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"

niravcybage avatar Sep 22 '20 11:09 niravcybage