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/cognitive-services/manage-resources.md
+44-7Lines changed: 44 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,21 @@ To recover a deleted cognitive service resource, use the following commands. Whe
37
37
*`{resourceName}` with your resource name
38
38
*`{location}` with the location of your resource
39
39
40
-
### Using the REST API
40
+
41
+
# [Azure portal](#tab/azure-portal)
42
+
43
+
If you need to recover a deleted resource, navigate to the hub of the cognitive services API type and select "Manage deleted resources" from the menu. For example, if you would like to recover an "Anomaly detector" resource, search for "Anomaly detector" in the search bar and select the service to get to the "Anomaly detector" hub which lists deleted resources.
44
+
45
+
:::image type="content" source="media/recovery-deleted-resource.png" alt-text="A screenshot showing the Anomaly detector hub, which lets you recover deleted resources." lightbox="media/recovery-deleted-resource.png":::
46
+
47
+
Select the subscription in the dropdown list to locate the deleted resource you would like to recover. Select one or more of the deleted resources and click **Recover**.
48
+
49
+
:::image type="content" source="media/managing-deleted-resource.png" alt-text="A screenshot showing deleted resources you can recover." lightbox="media/managing-deleted-resource.png":::
50
+
51
+
> [!NOTE]
52
+
> It can take a couple of minutes for your deleted resource(s) to recover and show up in the list of the resources. Click on the **Refresh** button in the menu to update the list of resources.
53
+
54
+
# [Rest API](#tab/rest-api)
41
55
42
56
Use the following `PUT` command:
43
57
@@ -56,7 +70,7 @@ In the request body, use the following JSON format:
56
70
}
57
71
```
58
72
59
-
### Using PowerShell
73
+
#[PowerShell](#tab/powershell)
60
74
61
75
Use the following command to restore the resource:
62
76
@@ -70,12 +84,14 @@ If you need to find the name of your deleted resources, you can get a list of de
Once you delete a resource, you won't be able to create another one with the same name for 48 hours. To create a resource with the same name, you will need to purge the deleted resource.
@@ -90,28 +106,49 @@ To purge a deleted cognitive service resource, use the following commands. Where
90
106
> [!NOTE]
91
107
> Once a resource is purged, it is permanently deleted and cannot be restored. You will lose all data and keys associated with the resource.
92
108
93
-
### Using the REST API
109
+
110
+
# [Azure portal](#tab/azure-portal)
111
+
112
+
If you need to purge a deleted resource, the steps are similar to recovering a deleted resource.
113
+
114
+
Navigate to the hub of the cognitive services API type of your deleted resource. For example, if you would like to purge an "Anomaly detector" resource, search for "Anomaly detector" in the search bar. Select the service to get to the "Anomaly detector" hub which lists deleted resources.
115
+
116
+
Select **Manage deleted resources** from the menu.
117
+
118
+
:::image type="content" source="media/recovery-deleted-resource.png" alt-text="A screenshot showing the Anomaly detector hub, which lets you purge deleted resources." lightbox="media/recovery-deleted-resource.png":::
119
+
120
+
Select the subscription in the dropdown list to locate the deleted resource you would like to purge.
121
+
Select one or more deleted resources and click **Purge**.
122
+
Purging will permanently delete a Cognitive Services resource.
123
+
124
+
:::image type="content" source="media/managing-deleted-resource.png" alt-text="A screenshot showing a list of resources that can be purged." lightbox="media/managing-deleted-resource.png":::
az resource delete --ids /subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/resourceGroups/{resourceGroup}/deletedAccounts/{resourceName}
111
145
```
112
146
147
+
---
148
+
149
+
113
150
## See also
114
151
*[Create a new resource using the Azure portal](cognitive-services-apis-create-account.md)
115
152
*[Create a new resource using the Azure CLI](cognitive-services-apis-create-account-cli.md)
116
153
*[Create a new resource using the client library](cognitive-services-apis-create-account-client-library.md)
117
-
*[Create a new resource using an ARM template](create-account-resource-manager-template.md)
154
+
*[Create a new resource using an ARM template](create-account-resource-manager-template.md)
0 commit comments