Skip to content

Commit 0a9c1e4

Browse files
committed
Making edits
1 parent 13df4e1 commit 0a9c1e4

File tree

1 file changed

+21
-20
lines changed

1 file changed

+21
-20
lines changed

articles/azure-monitor/logs/move-workspace.md

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -115,18 +115,9 @@ To delete the solution, call the [Resources - Delete API](/rest/api/resources/re
115115
DELETE https://management.azure.com/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}?api-version=2021-04-01
116116
```
117117

118-
In the URL, you need to specify the following information for the solution you want to delete:
119-
120-
- `subscriptionId`
121-
- `resourceGroupName`
122-
- `resourceProviderNamespace`
123-
- `parentResourcePath`
124-
- `resourceType`
125-
- `resourceName`
126-
127118
### [CLI](#tab/cli)
128119

129-
To remove solutions, run the [az resource delete](cli/azure/resource#az-resource-delete) command. You need to specify the name of the resource, resource type, and resource group for the solution you want to delete:
120+
To remove solutions, run the [az resource delete](/cli/azure/resource#az-resource-delete) command. You need to specify the name of the resource, resource type, and resource group for the solution you want to delete:
130121

131122
```azurecli
132123
az resource delete --name <resource-name> --resource-type <resource-type> --resource-group <resource-group-name>
@@ -174,7 +165,11 @@ DELETE https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup
174165

175166
### [CLI](#tab/cli)
176167

177-
Run the [az monitor scheduled-query delete](/cli/azure/monitor/scheduled-query#az-monitor-scheduled-query-delete) command:
168+
Delete the following alert rules by runing the [az monitor scheduled-query delete](/cli/azure/monitor/scheduled-query#az-monitor-scheduled-query-delete) command:
169+
170+
- AutoStop_VM_Child
171+
- ScheduledStartStop_Parent
172+
- SequencedStartStop_Parent
178173

179174
```azurecli
180175
az monitor scheduled-query delete [--ids]
@@ -186,19 +181,19 @@ az monitor scheduled-query delete [--ids]
186181

187182
### [PowerShell](#tab/PowerShell)
188183

189-
Run the [Remove-AzScheduledQueryRule](/powershell/module/az.monitor/remove-azscheduledqueryrule) command.
184+
Delete the following alert rules by running the [Remove-AzScheduledQueryRule](/powershell/module/az.monitor/remove-azscheduledqueryrule) command:
185+
186+
- AutoStop_VM_Child
187+
- ScheduledStartStop_Parent
188+
- SequencedStartStop_Parent
190189

191190
---
192191

193192
## Unlink the Automation account
194193

195194
### [Portal](#tab/azure-portal)
196195

197-
1. Open the **Automation accounts** menu and then select the account to remove.
198-
1. On the **Related Resources** section of the menu, select **Linked workspace**.
199-
1. Select **Unlink workspace** to unlink the workspace from your Automation account.
200-
201-
[![Screenshot that shows unlinking a workspace.](media/move-workspace/unlink-workspace.png)](media/move-workspace/unlink-workspace.png#lightbox)
196+
See [Delete a standalone Automation account linked to workspace](../../automation/delete-account.md#delete-a-standalone-automation-account-linked-to-workspace).
202197

203198
### [ REST API](#tab/rest-api)
204199

@@ -238,19 +233,25 @@ Not supported.
238233

239234
### [ REST API](#tab/rest-api)
240235

241-
To move your workspace, use the [Resources - Move Resources API](/rest/api/resources/resources/move-resources).
236+
To move your workspace, call the [Resources - Move Resources API](/rest/api/resources/resources/move-resources).
242237

243238
```http
244239
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{sourceResourceGroupName}/moveResources?api-version=2021-04-01
245240
```
246241

247242
### [CLI](#tab/cli)
248243

249-
To move your workspace, use the [az resource move](/cli/azure/resource#az-resource-move) command
244+
To move your workspace, run the [az resource move](/cli/azure/resource#az-resource-move) command:
245+
246+
```azurecli
247+
az resource move --destination-group
248+
--ids
249+
[--destination-subscription-id]
250+
```
250251

251252
### [PowerShell](#tab/PowerShell)
252253

253-
To move your workspace, use the [Move-AzResource](/powershell/module/AzureRM.Resources/Move-AzureRmResource) cmdlet as shown in the following example:
254+
To move your workspace, run the [Move-AzResource](/powershell/module/AzureRM.Resources/Move-AzureRmResource) cmdlet as shown in the following example:
254255

255256
```powershell
256257
Move-AzResource -ResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyResourceGroup01/providers/Microsoft.OperationalInsights/workspaces/MyWorkspace" -DestinationSubscriptionId "00000000-0000-0000-0000-000000000000" -DestinationResourceGroupName "MyResourceGroup02"

0 commit comments

Comments
 (0)