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
+40-34Lines changed: 40 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,23 @@ 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](#tab/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 option under the "Services" section to land on the "Anomaly detector" hub that will list deleted resources.
44
+
45
+
46
+
:::image type="content" source="media/recovery-of-deleted-resources.png" alt-text="How to recover a deleted resource step 1":::
47
+
48
+
49
+
Select the subscription in the dropdown list to locate the deleted resource you would like to recover.
50
+
Select one or more of the deleted resources and click "Recover".
51
+
52
+
:::image type="content" source="media/managing-deleted-resources.png" alt-text="How to recover a deleted resource step 2":::
53
+
54
+
Please note that 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.
55
+
56
+
# [Rest API](#tab/rest-api)
41
57
42
58
Use the following `PUT` command:
43
59
@@ -56,7 +72,7 @@ In the request body, use the following JSON format:
56
72
}
57
73
```
58
74
59
-
# [Using PowerShell](#tab/powershell)
75
+
# [PowerShell](#tab/powershell)
60
76
61
77
Use the following command to restore the resource:
62
78
@@ -70,23 +86,11 @@ If you need to find the name of your deleted resources, you can get a list of de
If you need to recover a deleted resource, navigate to the Azure portal and select your Cognitive Services subscription.
81
-
Select "Manage deleted resources".
82
-
83
-
:::image type="content" source="media/recovery-of-deleted-resources.png" alt-text="How to recover a deleted resource step 1":::
84
-
85
-
86
-
Select the subscription in the dropdown list to locate the deleted resource you would like to recover.
87
-
Select the deleted resource and click Recover.
88
-
89
-
:::image type="content" source="media/managing-deleted-resources.png" alt-text="How to recover a deleted resource step 2":::
90
94
91
95
---
92
96
@@ -104,45 +108,47 @@ To purge a deleted cognitive service resource, use the following commands. Where
104
108
> [!NOTE]
105
109
> Once a resource is purged, it is permanently deleted and cannot be restored. You will lose all data and keys associated with the resource.
106
110
107
-
# [Using the Rest API](#tab/rest-api)
111
+
112
+
# [Azure Portal](#tab/azure-portal)
113
+
114
+
If you need to purge a deleted resource, the steps are similar to recovering a deleted resource.
115
+
116
+
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 and select the option under the "Services" section to land on the "Anomaly detector" hub that will list deleted resources.
117
+
118
+
Select "Manage deleted resources" from the menu.
119
+
120
+
:::image type="content" source="media/recovery-of-deleted-resources.png" alt-text="How to purge a deleted resource step 1":::
121
+
122
+
Select the subscription in the dropdown list to locate the deleted resource you would like to purge.
123
+
Select one or more deleted resources and click "Purge".
124
+
Purging will permanently delete a Cognitive Services resource.
125
+
126
+
:::image type="content" source="media/managing-deleted-resources.png" alt-text="How to purge a deleted resource step 2":::
az resource delete --ids /subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/resourceGroups/{resourceGroup}/deletedAccounts/{resourceName}
125
147
```
126
-
# [Using Azure Portal](#tab/azure-portal)
127
-
128
-
If you wish to purge a deleted resource, the steps are similar when recovering a deleted resource.
129
-
130
-
Navigate to the Azure portal and select your Cognitive Services subscription.
131
-
Select "Manage deleted resources".
132
-
133
-
:::image type="content" source="media/recovery-of-deleted-resources.png" alt-text="How to purge a deleted resource step 1":::
134
-
135
-
Select the subscription in the dropdown list to locate the deleted resource you would like to purge.
136
-
Select the deleted resource and click Purge.
137
-
Purging will permanently delete a Cognitive Services resource.
138
-
139
-
140
-
:::image type="content" source="media/managing-deleted-resources.png" alt-text="How to purge a deleted resource step 2":::
141
148
142
149
---
143
150
144
151
145
-
146
152
## See also
147
153
*[Create a new resource using the Azure portal](cognitive-services-apis-create-account.md)
148
154
*[Create a new resource using the Azure CLI](cognitive-services-apis-create-account-cli.md)
0 commit comments