Skip to content

Commit 60fabcb

Browse files
committed
clarify deletion errors
1 parent e35a3d6 commit 60fabcb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/azure-resource-manager/management/delete-resource-group.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Delete resource group and resources
33
description: Describes how to delete resource groups and resources. It describes how Azure Resource Manager orders the deletion of resources when a deleting a resource group. It describes the response codes and how Resource Manager handles them to determine if the deletion succeeded.
44
ms.topic: conceptual
5-
ms.date: 03/18/2021
5+
ms.date: 09/28/2021
66
ms.custom: seodec18, devx-track-azurepowershell
77
---
88

@@ -114,13 +114,13 @@ az resource delete \
114114

115115
---
116116

117-
## Required access
117+
## Required access and deletion failures
118118

119119
To delete a resource group, you need access to the delete action for the **Microsoft.Resources/subscriptions/resourceGroups** resource. You also need delete for all resources in the resource group.
120120

121121
For a list of operations, see [Azure resource provider operations](../../role-based-access-control/resource-provider-operations.md). For a list of built-in roles, see [Azure built-in roles](../../role-based-access-control/built-in-roles.md).
122122

123-
If you have the required access, but the delete request fails, it may be because there's a [lock](lock-resources.md) on the resource group.
123+
If you have the required access, but the delete request fails, it may be because there's a [lock on the resources or resource group](lock-resources.md). Even if you didn't manually lock a resource group, it may have been [automatically locked by a related service](lock-resources.md#managed-applications-and-locks). Or, the deletion can fail if the resources are connected to resources in other resource groups that aren't being deleted. For example, you can't delete a virtual network with subnets that are still in use by a virtual machine.
124124

125125
## Next steps
126126

0 commit comments

Comments
 (0)