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/troubleshooting/error-not-found.md
+20-20Lines changed: 20 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,11 @@
2
2
title: Resource not found errors
3
3
description: Describes how to resolve errors when a resource can't be found. The error might occur when you deploy a Bicep file or Azure Resource Manager template, or when doing management tasks.
4
4
ms.topic: troubleshooting
5
-
ms.date: 11/30/2021
5
+
ms.date: 09/12/2022
6
6
ms.custom: devx-track-azurepowershell
7
7
---
8
8
9
-
# Resolve Resource Not Found errors
9
+
# Resolve resource not found errors
10
10
11
11
This article describes the error you see when a resource can't be found during an operation. Typically, you see this error when deploying resources with a Bicep file or Azure Resource Manager template (ARM template). You also see this error when doing management tasks and Azure Resource Manager can't find the required resource. For example, if you try to add tags to a resource that doesn't exist, you receive this error.
12
12
@@ -31,7 +31,7 @@ group {resource group name} was not found.
31
31
32
32
Resource Manager needs to retrieve the properties for a resource, but can't find the resource in your subscription.
33
33
34
-
## Solution 1 - Check resource properties
34
+
## Solution 1: Check resource properties
35
35
36
36
When you receive this error while doing a management task, check the values you provided for the resource. The three values to check are:
37
37
@@ -43,7 +43,7 @@ If you're using PowerShell or Azure CLI, check that you're running commands in t
43
43
44
44
If you can't verify the properties, sign in to the [Microsoft Azure portal](https://portal.azure.com). Find the resource you're trying to use and examine the resource name, resource group, and subscription.
45
45
46
-
## Solution 2 - Set Dependencies
46
+
## Solution 2: Set dependencies
47
47
48
48
If you get this error when deploying a template, you may need to add a dependency. Resource Manager optimizes deployments by creating resources in parallel, when possible.
49
49
@@ -56,13 +56,13 @@ Use an [implicit dependency](../bicep/resource-dependencies.md#implicit-dependen
56
56
For example, the web app's `serverFarmId` property uses `servicePlan.id` to create a dependency on the App Service plan.
If one resource must be deployed after another resource, you need to use the [dependsOn](../templates/resource-dependency.md#dependson) element in your template.
76
+
If a resource must be deployed after another resource, use the [dependsOn](../templates/resource-dependency.md#dependson) element in your template.
77
77
78
78
```json
79
79
{
80
80
"type": "Microsoft.Web/sites",
81
-
"apiVersion": "2021-02-01",
81
+
"apiVersion": "2022-03-01",
82
82
"dependsOn": [
83
83
"[variables('hostingPlanName')]"
84
84
],
@@ -107,15 +107,15 @@ When you see dependency problems, you need to gain insight into the order of res
107
107
108
108
:::image type="content" source="media/error-not-found/select-deployment-events.png" alt-text="Screenshot that highlights the link to a deployment's related events.":::
109
109
110
-
1. Examine the sequence of events for each resource. Pay attention to the status of each operation and it's time stamp. For example, the following image shows three storage accounts that deployed in parallel. Notice that the three storage accounts are started at the same time.
110
+
1. Examine the sequence of events for each resource. Pay attention to the status of each operation and it's time stamp. For example, the following image shows three storage accounts that deployed in parallel. Notice that the three storage account deployments started at the same time.
111
111
112
112
:::image type="content" source="media/error-not-found/deployment-events-parallel.png" alt-text="Screenshot of activity log for resources deployed in parallel.":::
113
113
114
114
The next image shows three storage accounts that aren't deployed in parallel. The second storage account depends on the first storage account, and the third storage account depends on the second storage account. The first storage account is labeled **Started**, **Accepted**, and **Succeeded** before the next is started.
115
115
116
116
:::image type="content" source="media/error-not-found/deployment-events-sequence.png" alt-text="Screenshot of activity log for resources deployed in sequential order.":::
117
117
118
-
## Solution 3 - Get external resource
118
+
## Solution 3: Get external resource
119
119
120
120
# [Bicep](#tab/bicep)
121
121
@@ -124,12 +124,12 @@ Bicep uses the symbolic name to create an [implicit dependency](../bicep/resourc
124
124
In this example, a web app is deployed that uses an existing App Service plan from another resource group.
When deploying a template, look for expressions that use the [reference](../templates/template-functions-resource.md#reference) or [listKeys](../templates/template-functions-resource.md#listkeys) functions. The values you provide vary based on whether the resource is in the same template, resource group, and subscription. Check that you're providing the required parameter values for your scenario. If the resource is in a different resource group, provide the full resource ID. For example, to reference a storage account in another resource group, use:
219
+
When you deploy a template, look for expressions that use the [reference](../templates/template-functions-resource.md#reference) or [listKeys](../templates/template-functions-resource.md#listkeys) functions. The values you provide vary based on whether the resource is in the same template, resource group, and subscription. Check that you're providing the required parameter values for your scenario. If the resource is in a different resource group, provide the full resource ID. For example, to reference a storage account in another resource group, use:
When you delete a resource, there might be a short amount of time when the resource appears in the portal but isn't available. If you select the resource, you'll get an error that the resource is **Not found**.
0 commit comments