Skip to content

Commit 287f569

Browse files
authored
Merge pull request #99641 from urosmil/patch-2
Simplified subnet assignment to instance pool
2 parents 0e3da85 + db87af6 commit 287f569

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

articles/sql-database/sql-database-instance-pools-how-to.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,19 +86,25 @@ The following restrictions apply to instance pools:
8686

8787
- Only General Purpose and Gen5 are available in public preview.
8888
- Pool name can contain only lowercase, numbers and hyphen, and can't start with a hyphen.
89-
- To get the subnet ID, use `Get-AzVirtualNetworkSubnetConfig -Name "miPoolSubnet" -VirtualNetwork $virtualNetwork`.
9089
- If you want to use AHB (Azure Hybrid Benefit), it is applied at the instance pool level. You can set the license type during pool creation or update it anytime after creation.
9190

9291
> [!IMPORTANT]
9392
> Deploying an instance pool is a long running operation that takes approximately 4.5 hours.
9493
94+
To get network parameters:
95+
96+
```powershell
97+
$virtualNetwork = Get-AzVirtualNetwork -Name "miPoolVirtualNetwork" -ResourceGroupName "myResourceGroup"
98+
$subnet = Get-AzVirtualNetworkSubnetConfig -Name "miPoolSubnet" -VirtualNetwork $virtualNetwork
99+
```
100+
95101
To create an instance pool:
96102

97103
```powershell
98104
$instancePool = New-AzSqlInstancePool `
99105
-ResourceGroupName "myResourceGroup" `
100106
-Name "mi-pool-name" `
101-
-SubnetId "/subscriptions/subscriptionID/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/miPoolVirtualNetwork/subnets/miPoolSubnet" `
107+
-SubnetId $subnet.Id `
102108
-LicenseType "LicenseIncluded" `
103109
-VCore 80 `
104110
-Edition "GeneralPurpose" `

0 commit comments

Comments
 (0)