Skip to content

Commit c00e4a8

Browse files
committed
fixes
1 parent 9e04b4b commit c00e4a8

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

articles/virtual-network/manage-subnet-delegation.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.service: virtual-network
88
ms.topic: how-to
99
ms.date: 08/23/2023
1010
ms.author: allensu
11-
ms.custom: devx-track-azurepowershell, devx-track-azurecli, FY23 content-maintenance
11+
ms.custom: devx-track-azurepowershell, devx-track-azurecli
1212
---
1313

1414
# Add or remove a subnet delegation
@@ -50,7 +50,7 @@ If you choose to install and use PowerShell locally, this article requires the A
5050

5151
## Create the virtual network
5252

53-
In this section, you create a virtual network and the subnet that you'll later delegate to an Azure service.
53+
In this section, you create a virtual network and the subnet that you delegate to an Azure service.
5454

5555
# [**Portal**](#tab/manage-subnet-delegation-portal)
5656

@@ -60,7 +60,7 @@ In this section, you create a virtual network and the subnet that you'll later d
6060

6161
### Create a resource group
6262

63-
Create a resource group with [New-AzResourceGroup](/cli/azure/group). An Azure resource group is a logical container into which Azure resources are deployed and managed.
63+
Create a resource group with [`New-AzResourceGroup`](/cli/azure/group). An Azure resource group is a logical container into which Azure resources are deployed and managed.
6464

6565
The following example creates a resource group named **test-rg** in the **eastus2** location:
6666

@@ -73,7 +73,7 @@ New-AzResourceGroup @rg
7373
```
7474
### Create virtual network
7575

76-
Create a virtual network named **vnet-1** with a subnet named **subnet-1** using [New-AzVirtualNetworkSubnetConfig](/powershell/module/az.network/new-azvirtualnetworksubnetconfig) in the **test-rg** using [New-AzVirtualNetwork](/powershell/module/az.network/new-azvirtualnetwork).
76+
Create a virtual network named **vnet-1** with a subnet named **subnet-1** using [`New-AzVirtualNetworkSubnetConfig`](/powershell/module/az.network/new-azvirtualnetworksubnetconfig) in the **test-rg** using [`New-AzVirtualNetwork`](/powershell/module/az.network/new-azvirtualnetwork).
7777

7878
The IP address space for the virtual network is **10.0.0.0/16**. The subnet within the virtual network is **10.0.0.0/24**.
7979

@@ -98,7 +98,7 @@ New-AzVirtualNetwork @net
9898

9999
### Create a resource group
100100

101-
Create a resource group with [az group create](/cli/azure/group). An Azure resource group is a logical container into which Azure resources are deployed and managed.
101+
Create a resource group with [`az group create`](/cli/azure/group). An Azure resource group is a logical container into which Azure resources are deployed and managed.
102102

103103
The following example creates a resource group named **test-rg** in the **eastu2** location:
104104

@@ -110,7 +110,7 @@ az group create \
110110

111111
### Create a virtual network
112112

113-
Create a virtual network named **vnet-1** with a subnet named **subnet-1** in the **test-rg** using [az network vnet create](/cli/azure/network/vnet).
113+
Create a virtual network named **vnet-1** with a subnet named **subnet-1** in the **test-rg** using [`az network vnet create`](/cli/azure/network/vnet).
114114

115115
```azurecli-interactive
116116
az network vnet create \
@@ -151,7 +151,7 @@ In this section, you delegate the subnet that you created in the preceding secti
151151

152152
# [**PowerShell**](#tab/manage-subnet-delegation-powershell)
153153

154-
Use [Add-AzDelegation](/powershell/module/az.network/add-azdelegation) to update the subnet named **subnet-1** with a delegation named **myDelegation** to an Azure service. In this example **Microsoft.Sql/managedInstances** is used for the example delegation:
154+
Use [`Add-AzDelegation`](/powershell/module/az.network/add-azdelegation) to update the subnet named **subnet-1** with a delegation named **myDelegation** to an Azure service. In this example **Microsoft.Sql/managedInstances** is used for the example delegation:
155155

156156
```azurepowershell-interactive
157157
$net = @{
@@ -175,7 +175,7 @@ $subnet = Add-AzDelegation @del
175175
176176
Set-AzVirtualNetwork -VirtualNetwork $vnet
177177
```
178-
Use [Get-AzDelegation](/powershell/module/az.network/get-azdelegation) to verify the delegation:
178+
Use [`Get-AzDelegation`](/powershell/module/az.network/get-azdelegation) to verify the delegation:
179179

180180
```azurepowershell-interactive
181181
$sub = @{
@@ -201,7 +201,7 @@ Get-AzDelegation @dg
201201

202202
# [**Azure CLI**](#tab/manage-subnet-delegation-cli)
203203

204-
Use [az network vnet subnet update](/cli/azure/network/vnet/subnet#az-network-vnet-subnet-update) to update the subnet named **subnet-1** with a delegation to an Azure service. In this example **Microsoft.Sql/managedInstances** is used for the example delegation:
204+
Use [`az network virtual network subnet update`](/cli/azure/network/vnet/subnet#az-network-vnet-subnet-update) to update the subnet named **subnet-1** with a delegation to an Azure service. In this example **Microsoft.Sql/managedInstances** is used for the example delegation:
205205

206206
```azurecli-interactive
207207
az network vnet subnet update \
@@ -211,7 +211,7 @@ az network vnet subnet update \
211211
--delegations Microsoft.Sql/managedInstances
212212
```
213213

214-
To verify the delegation was applied, use [az network vnet subnet show](/cli/azure/network/vnet/subnet#az-network-vnet-subnet-show). Verify the service is delegated to the subnet in the property **serviceName**:
214+
To verify the delegation was applied, use [`az network vnet subnet show`](/cli/azure/network/vnet/subnet#az-network-vnet-subnet-show). Verify the service is delegated to the subnet in the property **serviceName**:
215215

216216
```azurecli-interactive
217217
az network vnet subnet show \
@@ -244,7 +244,7 @@ az network vnet subnet show \
244244

245245
## Remove subnet delegation from an Azure service
246246

247-
In this section, you'll remove a subnet delegation for an Azure service.
247+
In this section, you remove a subnet delegation for an Azure service.
248248

249249
# [**Portal**](#tab/manage-subnet-delegation-portal)
250250

@@ -269,7 +269,7 @@ In this section, you'll remove a subnet delegation for an Azure service.
269269

270270
# [**PowerShell**](#tab/manage-subnet-delegation-powershell)
271271

272-
Use [Remove-AzDelegation](/powershell/module/az.network/remove-azdelegation) to remove the delegation from the subnet named **subnet-1**:
272+
Use [`Remove-AzDelegation`](/powershell/module/az.network/remove-azdelegation) to remove the delegation from the subnet named **subnet-1**:
273273

274274
```azurepowershell-interactive
275275
$net = @{
@@ -292,7 +292,7 @@ $subnet = Remove-AzDelegation @del
292292
293293
Set-AzVirtualNetwork -VirtualNetwork $vnet
294294
```
295-
Use [Get-AzDelegation](/powershell/module/az.network/get-azdelegation) to verify the delegation was removed:
295+
Use [`Get-AzDelegation`](/powershell/module/az.network/get-azdelegation) to verify the delegation was removed:
296296

297297
```azurepowershell-interactive
298298
$sub = @{
@@ -313,7 +313,7 @@ Get-AzDelegation: Sequence contains no matching element
313313

314314
# [**Azure CLI**](#tab/manage-subnet-delegation-cli)
315315

316-
Use [az network vnet subnet update](/cli/azure/network/vnet/subnet#az-network-vnet-subnet-update) to remove the delegation from the subnet named **subnet-1**:
316+
Use [`az network vnet subnet update`](/cli/azure/network/vnet/subnet#az-network-vnet-subnet-update) to remove the delegation from the subnet named **subnet-1**:
317317

318318
```azurecli-interactive
319319
az network vnet subnet update \
@@ -322,7 +322,7 @@ az network vnet subnet update \
322322
--vnet-name vnet-1 \
323323
--remove delegations
324324
```
325-
To verify the delegation was removed, use [az network vnet subnet show](/cli/azure/network/vnet/subnet#az-network-vnet-subnet-show). Verify the service is removed from the subnet in the property **serviceName**:
325+
To verify the delegation was removed, use [`az network vnet subnet show`](/cli/azure/network/vnet/subnet#az-network-vnet-subnet-show). Verify the service is removed from the subnet in the property **serviceName**:
326326

327327
```azurecli-interactive
328328
az network vnet subnet show \

0 commit comments

Comments
 (0)