You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-resource-manager/management/delete-resource-group.md
+20-21Lines changed: 20 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
---
2
-
title: Delete resource group and resources
3
-
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.
2
+
title: Delete Resource Groups and Resources
3
+
description: Describes how to delete resource groups and resources. It describes how Azure Resource Manager orders the deletion of resources when you delete a resource group. It describes the response codes and how Resource Manager handles them to determine if the deletion succeeded.
4
4
ms.topic: conceptual
5
-
ms.date: 09/26/2024
5
+
ms.date: 02/09/2025
6
6
ms.custom: devx-track-arm-template
7
7
content_well_notification:
8
8
- AI-contribution
@@ -17,7 +17,7 @@ This article shows how to delete resource groups and resources. It describes how
17
17
> To delete a resource group, you must first remove any underlying resource locks and backup data.
18
18
>
19
19
20
-
## How order of deletion is determined
20
+
## How Resource Manager determines the order of deletion
21
21
22
22
When you delete a resource group, Resource Manager determines the order to delete resources. It uses the following order:
23
23
@@ -27,7 +27,7 @@ When you delete a resource group, Resource Manager determines the order to delet
27
27
28
28
3. The remaining resources are deleted after the previous two categories.
29
29
30
-
After the order is determined, Resource Manager issues a DELETE operation for each resource. It waits for any dependencies to finish before proceeding.
30
+
After Resource Manager determines the order, it issues a DELETE operation for each resource. It waits for any dependencies to finish before proceeding.
31
31
32
32
For synchronous operations, the expected successful response codes are:
33
33
@@ -36,18 +36,17 @@ For synchronous operations, the expected successful response codes are:
36
36
* 404
37
37
38
38
For asynchronous operations, the expected successful response is 202. Resource Manager tracks the location header or the azure-async operation header to determine the status of the asynchronous delete operation.
39
-
40
39
### Deletion errors
41
40
42
-
When a delete operation returns an error, Resource Manager retries the DELETE call. Retries happen for the 5xx, 429 and 408 status codes. By default, the time period for retry is 15 minutes.
41
+
When a delete operation returns an error, Resource Manager retries the DELETE call. Retries happen for the 5xx, 429, and 408 status codes. By default, the time period for retry is 15 minutes.
43
42
44
43
## After deletion
45
44
46
-
Resource Manager issues a GET call on each resource that it tried to delete. The response of this GET call is expected to be 404. When Resource Manager gets a 404, it considers the deletion to have completed successfully. Resource Manager removes the resource from its cache.
45
+
Resource Manager issues a GET call on each resource that it tried to delete. The response of this GET call is expected to be 404. When Resource Manager gets a 404, it considers the deletion to be successful. Resource Manager removes the resource from its cache.
47
46
48
47
However, if the GET call on the resource returns a 200 or 201, Resource Manager recreates the resource.
49
48
50
-
If the GET operation returns an error, Resource Manager retries the GET for the following error code:
49
+
If the GET operation returns an error, Resource Manager retries the GET for the following error codes:
51
50
52
51
* Less than 100
53
52
* 408
@@ -57,11 +56,11 @@ If the GET operation returns an error, Resource Manager retries the GET for the
57
56
For other error codes, Resource Manager fails the deletion of the resource.
58
57
59
58
> [!IMPORTANT]
60
-
> Resource Group deletion is irreversible.
59
+
> Resource group deletion is irreversible.
61
60
62
61
## Delete resource group
63
62
64
-
Use one of the following methods to delete the resource group.
63
+
To delete the resource group, use one of the following methods.
65
64
66
65
# [PowerShell](#tab/azure-powershell)
67
66
@@ -81,9 +80,9 @@ az group delete --name ExampleResourceGroup
81
80
82
81
1. Select **Delete resource group**.
83
82
84
-
:::image type="content" source="./media/delete-resource-group/delete-group.png" alt-text="Screenshot of the Delete resource group button in the Azure portal.":::
83
+
:::image type="content" source="./media/delete-resource-group/delete-group.png" alt-text="Screenshot of the 'Delete resource group' button in the Azure portal.":::
85
84
86
-
1. To confirm the deletion, type the name of the resource group
85
+
1. To confirm the deletion, type the name of the resource group.
To delete a resource group, you need access to the delete action for the **Microsoft.Resources/subscriptions/resourceGroups** resource.
165
164
166
165
> [!IMPORTANT]
167
-
> The only permission required to delete a resource group is permission to the delete action for deleting resource groups. You do **not**need permission to delete individual resources within that resource group. Additionally, delete actions that are specified in **notActions** for a roleAssignment are superseded by the resource group delete action. This is consistent with the scope hierarchy in the Azure role-based access control model.
166
+
> The only permission required to delete a resource group is permission to the delete action for deleting resource groups. You don't need permission to delete individual resources within that resource group. Additionally, delete actions that are specified in **notActions** for a roleAssignment are superseded by the resource group delete action. This requirement is consistent with the scope hierarchy in the Azure role-based access control model.
168
167
169
168
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).
170
169
171
-
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, [a related service may have automatically locked it](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.
170
+
If you have the required access, but the delete request fails, it might 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, [a related service might automatically lock it](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 a virtual machine uses.
172
171
173
172
## Can I recover a deleted resource group?
174
173
175
174
No, you can't recover a deleted resource group. However, you might be able to restore some recently deleted resources.
176
175
177
176
Some resource types support *soft delete*. You might have to configure soft delete before you can use it. For information about enabling soft delete, see:
*[Soft delete for containers - Azure Storage](../../storage/blobs/soft-delete-container-overview.md)
180
+
*[Soft delete for blobs - Azure Storage](../../storage/blobs/soft-delete-blob-overview.md)
182
181
*[Soft delete for Azure Backup](../../backup/backup-azure-security-feature-cloud.md)
183
182
*[Soft delete for SQL server in Azure VM and SAP HANA in Azure VM workloads](../../backup/soft-delete-sql-saphana-in-azure-vm.md)
184
183
*[Soft delete for virtual machines](../..//backup/soft-delete-virtual-machines.md)
185
184
186
185
To restore deleted resources, see:
187
186
188
187
*[Recover deleted Azure AI services resources](/azure/ai-services/manage-resources)
189
-
*[Microsoft Entra - Recover from deletions](../../active-directory/architecture/recover-from-deletions.md)
188
+
*[Recover from deletions - Microsoft Entra](../../active-directory/architecture/recover-from-deletions.md)
190
189
191
190
You can also [open an Azure support case](/azure/azure-portal/supportability/how-to-create-azure-support-request). Provide as much detail as you can about the deleted resources, including their resource IDs, types, and resource names. Request that the support engineer check if the resources can be restored.
192
191
193
192
> [!NOTE]
194
-
> Recovery of deleted resources is not possible under all circumstances. A support engineer will investigate your scenario and advise you whether it's possible.
193
+
> Recovery of deleted resources isn't possible under all circumstances. A support engineer investigates your scenario and advises you whether it's possible.
Copy file name to clipboardExpand all lines: articles/azure-resource-manager/management/extension-resource-types.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,13 @@
1
1
---
2
-
title: Extension resource types
3
-
description: Lists the Azure resource types are used to extend the capabilities of other resource types.
2
+
title: Extension Resource Types
3
+
description: Lists the Azure resource types that you use to extend the capabilities of other resource types.
4
4
ms.topic: conceptual
5
-
ms.date: 07/24/2024
5
+
ms.date: 02/09/2025
6
6
---
7
7
8
8
# Resource types that extend capabilities of other resources
9
9
10
-
An extension resource is a resource that adds to another resource's capabilities. For example, resource lock is an extension resource. You apply a resource lock to another resource to prevent it from being deleted or modified. It doesn't make sense to create a resource lock by itself. An extension resource is always applied to another resource.
10
+
An extension resource is a resource that adds to another resource's capabilities. For example, resource lock is an extension resource. You apply a resource lock to another resource to prevent it from being deleted or modified. It doesn't make sense to create a resource lock by itself. You always apply an extension resource to another resource.
This article explains how you to work with existing resource management private links. It shows API operations for getting and deleting existing resources.
11
+
This article explains how to work with existing resource management private links. It shows API operations for getting and deleting existing resources.
12
12
13
13
If you need to create a resource management private link, see [Use portal to create private link for managing Azure resources](create-private-link-access-portal.md) or [Use APIs to create private link for managing Azure resources](create-private-link-access-commands.md).
Learn how to use Azure CLI with [Azure Resource Manager](overview.md) to manage your Azure resource groups. For managing Azure resources, see [Manage Azure resources by using Azure CLI](manage-resources-cli.md).
12
+
Learn how to use Azure CLI with [Azure Resource Manager](overview.md) to manage your Azure resource groups.
13
13
14
14
## Prerequisites
15
15
16
16
* Azure CLI. For more information, see [How to install the Azure CLI](/cli/azure/install-azure-cli).
17
17
18
-
* After installing, sign in for the first time. For more information, see [How to sign in to the Azure CLI](/cli/azure/get-started-with-azure-cli#how-to-sign-into-the-azure-cli).
18
+
*An authenticated account. After installing Azure CLI, sign in for the first time. For more information, see [How to sign in to the Azure CLI](/cli/azure/get-started-with-azure-cli#how-to-sign-into-the-azure-cli).
19
19
20
20
## What is a resource group
21
21
22
-
A resource group is a container that holds related resources for an Azure solution. The resource group can include all the resources for the solution, or only those resources that you want to manage as a group. You decide how you want to add resources to resource groups based on what makes the most sense for your organization. Generally, add resources that share the same lifecycle to the same resource group so you can easily deploy, update, and delete them as a group.
22
+
A resource group is a container that holds related resources for an Azure solution. The resource group can include all the resources for the solution, or only those resources that you want to manage as a group. You decide how to add resources to resource groups based on what makes the most sense for your organization. Generally, add resources that share the same lifecycle to the same resource group so you can easily deploy, update, and delete them as a group.
23
23
24
-
The resource group stores metadata about the resources. When you specify a location for the resource group, you're specifying where that metadata is stored. For compliance reasons, you may need to ensure that your data is stored in a particular region.
24
+
The resource group stores metadata about the resources. When you specify a location for the resource group, you're specifying where that metadata is stored. For compliance reasons, you might need to ensure that your data is stored in a particular region.
25
25
26
26
## Create resource groups
27
27
@@ -139,5 +139,6 @@ To manage access to a resource group, use [Azure role-based access control (Azur
139
139
140
140
## Next steps
141
141
142
+
* To manage Azure resources, see [Manage Azure resources by using Azure CLI](manage-resources-cli.md).
142
143
* To learn Azure Resource Manager, see [Azure Resource Manager overview](overview.md).
143
144
* To learn the Resource Manager template syntax, see [Understand the structure and syntax of Azure Resource Manager templates](../templates/syntax.md).
Copy file name to clipboardExpand all lines: articles/azure-resource-manager/management/manage-resource-groups-portal.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,14 @@
1
1
---
2
-
title: Use the Azure portal and Azure Resource Manager to manage resource groups
2
+
title: Use the Azure portal and Azure Resource Manager to Manage Resource Groups
3
3
description: Learn how to use the Azure portal and Azure Resource Manager to manage your resource groups. Understand how to create, list, and delete resource groups.
4
4
ms.topic: conceptual
5
-
ms.date: 01/23/2025
5
+
ms.date: 02/09/2025
6
6
ms.custom: devx-track-arm-template
7
7
---
8
8
9
9
# Use the Azure portal and Azure Resource Manager to manage resource groups
10
10
11
-
Learn how to use the [Azure portal](https://portal.azure.com) with [Azure Resource Manager](overview.md) to manage Azure resource groups. See [Manage Azure resources by using the Azure portal](manage-resources-portal.md) to learn more about managing Azure resources.
11
+
Learn how to use the [Azure portal](https://portal.azure.com) with [Azure Resource Manager](overview.md) to manage Azure resource groups.
12
12
13
13
[!INCLUDE [Handle personal data](~/reusable-content/ce-skilling/azure/includes/gdpr-intro-sentence.md)]
14
14
@@ -39,11 +39,11 @@ The resource group stores metadata about the resources. When you specify a locat
39
39
-**Resource group**: Enter a new resource group name.
40
40
-**Region**: Select an Azure location such as **Central US**.
41
41
42
-
:::image type="content" source="./media/manage-resource-groups-portal/manage-resource-groups-create-group.png" alt-text="Screenshot of the Create Resource Group form in the Azure portal with fields for Subscription, Resource group, and Region." lightbox="./media/manage-resource-groups-portal/manage-resource-groups-create-group.png":::
42
+
:::image type="content" source="./media/manage-resource-groups-portal/manage-resource-groups-create-group.png" alt-text="Screenshot of the 'Create Resource Group' form in the Azure portal with fields for Subscription, Resource group, and Region." lightbox="./media/manage-resource-groups-portal/manage-resource-groups-create-group.png":::
43
43
44
44
1. Select **Review + Create**.
45
45
1. Select **Create**. It takes a few seconds to create a resource group.
46
-
1.Select **Refresh** from the top menu to refresh the resource group list, and then select the newly created resource group to open it. Or, select **Notification** (the bell icon) from the top, and then select **Go to resource group** to open the newly created resource group.
46
+
1.To refresh the resource group list, select **Refresh** from the top menu. To open the newly created resource group, select it from the list. Or, select **Notification** (the bell icon) from the top, and then select **Go to resource group** to open the newly created resource group.
47
47
48
48
:::image type="content" source="./media/manage-resource-groups-portal/manage-resource-groups-add-group-go-to-resource-group.png" alt-text="Screenshot of the Azure portal with the 'Go to resource group' button in the Notifications panel." lightbox="./media/manage-resource-groups-portal/manage-resource-groups-add-group-go-to-resource-group.png":::
49
49
@@ -76,7 +76,7 @@ After you create a Resource Manager template, use the Azure portal to deploy you
76
76
77
77
## Move to another resource group or subscription
78
78
79
-
You can move resources from one resource group to another. See [Move Azure resources to a new resource group or subscription](move-resource-group-and-subscription.md) for more information and guidance.
79
+
You can move resources from one resource group to another. For more information and guidance, see [Move Azure resources to a new resource group or subscription](move-resource-group-and-subscription.md).
80
80
81
81
## Lock resource groups
82
82
@@ -105,7 +105,8 @@ Use [Azure role-based access control (Azure RBAC)](../../role-based-access-contr
105
105
106
106
## Next steps
107
107
108
+
- To learn more about managing Azure resources, see [Manage Azure resources by using the Azure portal](manage-resources-portal.md).
108
109
- To learn more about Resource Manager, see the [What is Azure Resource Manager?](overview.md) overview.
109
110
- To learn the Resource Manager template syntax, see [Understand the structure and syntax of Azure Resource Manager templates](../templates/syntax.md).
110
-
- To learn how to develop templates, see the step-by-step [Azure Resource Manager documentation tutorials](../index.yml) from Learn.
111
+
- To learn how to develop templates, see the step-by-step [Azure Resource Manager documentation tutorials](../index.yml).
111
112
- To view Azure Resource Manager template schemas, see [Define resources with Bicep, ARM templates, and Terraform AzAPI provider](/azure/templates/).
0 commit comments