Skip to content

Commit 9d953b8

Browse files
committed
Fixing command.
1 parent 6521e30 commit 9d953b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/storage/elastic-san/elastic-san-networking.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,9 @@ You can manage virtual network rules for volume groups through the Azure portal,
152152
- Add a network rule for a virtual network and subnet.
153153
154154
```azurepowershell
155-
$rule1 = New-AzElasticSanVirtualNetworkRuleObject -VirtualNetworkResourceId <resourceIDHere> -Action Allow
155+
$rule = New-AzElasticSanVirtualNetworkRuleObject -VirtualNetworkResourceId $subnet.Id -Action Allow
156156
157-
Update-AzElasticSanVolumeGroup -ResourceGroupName $rgName -ElasticSanName $sanName -Name $volGroupName -NetworkAclsVirtualNetworkRule $rule1
157+
Add-AzElasticSanVolumeGroupNetworkRule -ResourceGroupName $resourceGroupName -ElasticSanName $sanName -VolumeGroupName $volGroupName -NetworkAclsVirtualNetworkRule $rule
158158
```
159159
160160
> [!TIP]

0 commit comments

Comments
 (0)