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: azure-stack/hci/manage/troubleshoot-deployment.md
+17-16Lines changed: 17 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ The multi-step resolution process includes the following steps:
50
50
-[Remove the validation error](#remove-the-validation-error)
51
51
-[Clean up the Edge Device Azure Resource with incorrect VM switch information](#clean-up-the-edge-device-azure-resource-with-incorrect-vm-switch-information)
52
52
-[Refresh the cloud data](#refresh-the-cloud-edgedevices-data)
53
-
-[Redo the Azure portal](#redo-the-azure-portal)
53
+
-[Redo the deployment via Azure portal](#redo-the-deployment-via-azure-portal)
54
54
-[Recreate the lock on the seed node resource](#recreate-the-lock-on-the-seed-node-resource)
55
55
56
56
> [!NOTE]
@@ -68,15 +68,15 @@ If you attempt the steps in the next section without removing the lock, the **De
68
68
69
69
```
70
70
Some resources failed to be deleted (run with `--verbose` for more information):
Here's the example output when run with the `--verbose` switch:
75
75
76
76
```Output
77
-
(ScopeLocked) The scope '/subscriptions/<subid>/resourceGroups/<rgname>/providers/Microsoft.HybridCompute/machines/<machinename>/providers/Microsoft.AzureStackHCI/edgeDevices/default' cannot perform delete operation because following scope(s) are locked: '/subscriptions/<subid>/resourceGroups/<rgname>/providers/Microsoft.HybridCompute/machines/<machinename>'. Please remove the lock and try again.
77
+
(ScopeLocked) The scope '/subscriptions/<Subscription ID>/resourceGroups/<Resource Group Name>/providers/Microsoft.HybridCompute/machines/<Machine Name>/providers/Microsoft.AzureStackHCI/edgeDevices/default' cannot perform delete operation because following scope(s) are locked: '/subscriptions/<subid>/resourceGroups/<rgname>/providers/Microsoft.HybridCompute/machines/<Machine Name>'. Please remove the lock and try again.
78
78
Code: ScopeLocked
79
-
Message: The scope '/subscriptions/<subid>/resourceGroups/<rgname>/providers/Microsoft.HybridCompute/machines/<machinename>/providers/Microsoft.AzureStackHCI/edgeDevices/default' cannot perform delete operation because following scope(s) are locked: '/subscriptions/<subid>/resourceGroups/<rgname>/providers/Microsoft.HybridCompute/machines/<machinename>'. Please remove the lock and try again.
79
+
Message: The scope '/subscriptions/<subid>/resourceGroups/<rgname>/providers/Microsoft.HybridCompute/machines/<Machine Name>/providers/Microsoft.AzureStackHCI/edgeDevices/default' cannot perform delete operation because following scope(s) are locked: '/subscriptions/<subid>/resourceGroups/<rgname>/providers/Microsoft.HybridCompute/machines/<Machine Name>'. Please remove the lock and try again.
80
80
```
81
81
82
82
### Remove the validation error
@@ -124,21 +124,22 @@ After the VM switch on the device is removed, clean up the Edge Device ARM resou
124
124
```
125
125
126
126
Replace the value in the above example command with the appropriate value for `<subGUID>`.
127
+
127
128
1. Output the data stored within the `edgeDevices` resource that has the incorrectly stored VM Switch information. Run the following command:
128
129
129
130
```AzureCLI
130
-
az resource show --ids "/subscriptions/<subGUID>/resourceGroups/<resourceGROUPNAME>/providers/Microsoft.HybridCompute/machines/<machineNAME>/providers/Microsoft.AzureStackHCI/edgeDevices/default"
131
+
az resource show --ids "/subscriptions/<Subscription ID>/resourceGroups/<Resource Group Name>/providers/Microsoft.HybridCompute/machines/<Machine Name>/providers/Microsoft.AzureStackHCI/edgeDevices/default"
131
132
```
132
133
133
-
Replace the values in the above example command with the appropriate values for:`<subGUID>`, `<resourceGROUPNAME>`, and `<machineNAME>`.
134
+
Replace the values in the above example command with the appropriate values for:`<Subscription ID>`, `<Resource Group Name>`, and `<Machine Name>`.
134
135
135
136
Here's an example output:
136
137
137
138
```output
138
139
az resource show --ids "/subscriptions/<Subscription ID>/resourceGroups/<Resource Group Name>/providers/Microsoft.HybridCompute/machines/ASRR1N26R15U33/providers/Microsoft.AzureStackHCI/edgeDevices/default"
139
140
```
140
141
141
-
The output of this command shows quite a bit of detail about the \<machineNAME\> used in the command. Near the bottom of the output, there is a section for `"switchDetails"`, which will more than likely show the following (which is the Validation VM Switch that was created and cleaned up on the device, but wasn't detected by the DeviceManagementExtension and updated cloud-side):
142
+
The output of this command shows quite a bit of detail about the \<Machine Name\> used in the command. Near the bottom of the output, there is a section for `"switchDetails"`, which will more than likely show the following (which is the Validation VM Switch that was created and cleaned up on the device, but wasn't detected by the DeviceManagementExtension and updated cloud-side):
@@ -147,29 +148,29 @@ After the VM switch on the device is removed, clean up the Edge Device ARM resou
147
148
1. Delete the `edgeDevices` resource, which has the incorrectly stored VM switch information. Run the following command:
148
149
149
150
```AzureCLI
150
-
az resource delete --ids "/subscriptions/<subGUID>/resourceGroups/<resourceGROUPNAME>/providers/Microsoft.HybridCompute/machines/<machineNAME>/providers/Microsoft.AzureStackHCI/edgeDevices/default"
151
+
az resource delete --ids "/subscriptions/<Subscription ID>/resourceGroups/<Resource Group Name>/providers/Microsoft.HybridCompute/machines/<Machine Name>/providers/Microsoft.AzureStackHCI/edgeDevices/default"
151
152
```
152
153
153
154
Replace the values (remember to remove the \<\> characters as well) with the appropriate values for:
154
155
`<subGUID>`
155
156
`<resourceGROUPNAME>`
156
-
`<machineNAME>`
157
+
`<Machine Name>`
157
158
158
159
This is the same resource `--ids` from the `show`, so you can just use that same string. In fact, you could just "up arrow" in the console and replace `show` with `delete`.
`az resource delete --ids "/subscriptions/<Subscription ID>/resourceGroups/<Resource Group Name>/providers/Microsoft.HybridCompute/machines/<Machine Name>/providers/Microsoft.AzureStackHCI/edgeDevices/default"
164
165
```
165
166
When run, there is no output from this command. The command works and returns the command prompt, or presents an error. It shouldn't present an error, if it does, that will require more troubleshooting.
166
167
167
168
1. Verify the deletion of the resource by running the `show` command again. Here's an example output:
168
169
169
170
```Output
170
-
(ResourceNotFound) The resource 'Microsoft.HybridCompute/machines/<machineNAME>/providers/Microsoft.AzureStackHCI/edgeDevices/default' could not be found.
171
+
(ResourceNotFound) The resource 'Microsoft.HybridCompute/machines/<Machine Name>/providers/Microsoft.AzureStackHCI/edgeDevices/default' could not be found.
171
172
Code: ResourceNotFound
172
-
Message: The resource 'Microsoft.HybridCompute/machines/<machineNAME>/providers/Microsoft.AzureStackHCI/edgeDevices/default' could not be found.
173
+
Message: The resource 'Microsoft.HybridCompute/machines/<Machine Name>/providers/Microsoft.AzureStackHCI/edgeDevices/default' could not be found.
173
174
```
174
175
175
176
### Refresh the cloud `edgeDevices` data
@@ -189,7 +190,7 @@ Follow these steps to refresh the cloud data:
With device and cloud data now back in sync, you can go to the Azure portal and provide the deployment inputs. The previous step prevents any cached information from previous attempts.
195
196
@@ -214,8 +215,8 @@ After the mitigation is complete, we strongly recommend that you recreate the lo
214
215
Follow these steps to recreate the lock:
215
216
216
217
1. In the Azure portal, go to the object via the resource group or within **Machines - Azure Arc**.
217
-
1. Expand '**Settings** in the left column, then select **Locks**.
218
-
1. Select '**+ Add**' at the top of the page.
218
+
1. Go to **Settings > Locks**.
219
+
1. Select **+ Add** at the top of the page.
219
220
1. For **Lock name**, enter **DoNotDelete**.
220
-
1. For **Lock type**, select '**Delete**' from the drop-down.
221
+
1. For **Lock type**, select **Delete** from the dropdown.
0 commit comments