Skip to content

Commit 6df6c23

Browse files
Merge pull request #303515 from asudbring/us429364-seo-top25-vnet
Top 25 SEO - Manage subnet delegation
2 parents 2635efc + e306d7c commit 6df6c23

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

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

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
---
2-
title: Add or remove a subnet delegation in an Azure virtual network
2+
title: Add or Remove Subnet Delegation in Azure Virtual Network
33
titlesuffix: Azure Virtual Network
4-
description: Learn how to add or remove a delegated subnet for a service in Azure.
4+
description: Learn how to add or remove subnet delegation in Azure virtual networks. Follow step-by-step instructions using Azure portal, PowerShell, or CLI to manage service-specific permissions.
55
services: virtual-network
66
author: asudbring
77
ms.service: azure-virtual-network
88
ms.topic: how-to
9-
ms.date: 04/21/2025
10-
ms.author: allensu
9+
ms.date: 07/29/2025
10+
ms.author: allensu
1111
ms.custom: devx-track-azurepowershell, devx-track-azurecli
1212
# Customer intent: "As a network administrator, I want to add or remove subnet delegations in an Azure virtual network, so that I can manage service-specific permissions for resource deployment effectively."
1313
---
1414

15-
# Add or remove a subnet delegation
15+
# Add or remove subnet delegation in Azure virtual network
1616

17-
Subnet delegation gives explicit permissions to the service to create service-specific resources in the subnet using a unique identifier when deploying the service. This article describes how to add or remove a delegated subnet for an Azure service.
17+
Subnet delegation in Azure virtual networks gives explicit permissions to services to create service-specific resources in the subnet using a unique identifier when deploying the service. This article describes how to add or remove subnet delegation for Azure services, enabling you to manage network permissions effectively.
1818

1919
## Prerequisites
2020

@@ -69,14 +69,14 @@ The following example creates a resource group named **test-rg** in the **eastus
6969
$rg = @{
7070
Name = 'test-rg'
7171
Location = 'eastus2'
72-
}
72+
}
7373
New-AzResourceGroup @rg
7474
```
7575
### Create virtual network
7676

77-
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).
77+
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).
7878

79-
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**.
79+
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**.
8080

8181
```azurepowershell-interactive
8282
$sub = @{
@@ -143,9 +143,9 @@ In this section, you delegate the subnet that you created in the preceding secti
143143

144144
1. Enter or select the following information:
145145

146-
| Setting | Value |
147-
| ------- | ----- |
148-
| **SUBNET DELEGATION** | |
146+
| Setting | Value |
147+
| ---------------------------- | --------------------------------------------------------------------------------------------------------------- |
148+
| **SUBNET DELEGATION** | |
149149
| Delegate subnet to a service | Select the service that you want to delegate the subnet to. For example, **Microsoft.Sql/managedInstances**. |
150150

151151
1. Select **Save**.
@@ -182,7 +182,7 @@ Use [`Get-AzDelegation`](/powershell/module/az.network/get-azdelegation) to veri
182182
$sub = @{
183183
Name = 'vnet-1'
184184
ResourceGroupName = 'test-rg'
185-
}
185+
}
186186
$subnet = Get-AzVirtualNetwork @sub | Get-AzVirtualNetworkSubnetConfig -Name 'subnet-1'
187187
188188
$dg = @{
@@ -261,9 +261,9 @@ In this section, you remove a subnet delegation for an Azure service.
261261

262262
1. Enter or select the following information:
263263

264-
| Setting | Value |
265-
| ------- | ----- |
266-
| **SUBNET DELEGATION** | |
264+
| Setting | Value |
265+
| ---------------------------- | ------------ |
266+
| **SUBNET DELEGATION** | |
267267
| Delegate subnet to a service | Select **None**. |
268268

269269
1. Select **Save**.
@@ -299,14 +299,14 @@ Use [`Get-AzDelegation`](/powershell/module/az.network/get-azdelegation) to veri
299299
$sub = @{
300300
Name = 'vnet-1'
301301
ResourceGroupName = 'test-rg'
302-
}
302+
}
303303
$subnet = Get-AzVirtualNetwork @sub | Get-AzVirtualNetworkSubnetConfig -Name 'subnet-1'
304304
305305
$dg = @{
306306
Name ='myDelegation'
307307
Subnet = $subnet
308308
}
309-
Get-AzDelegation @dg
309+
Get-AzDelegation @dg
310310
```
311311
```console
312312
Get-AzDelegation: Sequence contains no matching element
@@ -342,4 +342,5 @@ Output from command is a null bracket:
342342
[!INCLUDE [portal-clean-up.md](~/reusable-content/ce-skilling/azure/includes/portal-clean-up.md)]
343343

344344
## Next steps
345+
345346
- Learn how to [manage subnets in Azure](virtual-network-manage-subnet.md).

0 commit comments

Comments
 (0)