Skip to content

Commit 33e3e51

Browse files
committed
More tweaks
1 parent 984cc2e commit 33e3e51

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

azure-stack/hci/manage/troubleshoot-deployment.md

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ The multi-step resolution process includes the following steps:
5050
- [Remove the validation error](#remove-the-validation-error)
5151
- [Clean up the Edge Device Azure Resource with incorrect VM switch information](#clean-up-the-edge-device-azure-resource-with-incorrect-vm-switch-information)
5252
- [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)
5454
- [Recreate the lock on the seed node resource](#recreate-the-lock-on-the-seed-node-resource)
5555

5656
> [!NOTE]
@@ -68,15 +68,15 @@ If you attempt the steps in the next section without removing the lock, the **De
6868

6969
```
7070
Some resources failed to be deleted (run with `--verbose` for more information):
71-
/subscriptions/<subid>/resourceGroups/<rgname>/providers/Microsoft.HybridCompute/machines/<machinename>/providers/Microsoft.AzureStackHCI/edgeDevices/default
71+
/subscriptions/<subid>/resourceGroups/<rgname>/providers/Microsoft.HybridCompute/machines/<Machine Name>/providers/Microsoft.AzureStackHCI/edgeDevices/default
7272
```
7373

7474
Here's the example output when run with the `--verbose` switch:
7575

7676
```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.
7878
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.
8080
```
8181

8282
### Remove the validation error
@@ -124,21 +124,22 @@ After the VM switch on the device is removed, clean up the Edge Device ARM resou
124124
```
125125
126126
Replace the value in the above example command with the appropriate value for `<subGUID>`.
127+
127128
1. Output the data stored within the `edgeDevices` resource that has the incorrectly stored VM Switch information. Run the following command:
128129
129130
```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"
131132
```
132133
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>`.
134135
135136
Here's an example output:
136137
137138
```output
138139
az resource show --ids "/subscriptions/<Subscription ID>/resourceGroups/<Resource Group Name>/providers/Microsoft.HybridCompute/machines/ASRR1N26R15U33/providers/Microsoft.AzureStackHCI/edgeDevices/default"
139140
```
140141
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):
142143
`"switchName": "ConvergedSwitch(managementcompute)",`
143144
`"switchType": "External"`
144145
@@ -147,29 +148,29 @@ After the VM switch on the device is removed, clean up the Edge Device ARM resou
147148
1. Delete the `edgeDevices` resource, which has the incorrectly stored VM switch information. Run the following command:
148149
149150
```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"
151152
```
152153
153154
Replace the values (remember to remove the \<\> characters as well) with the appropriate values for:
154155
`<subGUID>`
155156
`<resourceGROUPNAME>`
156-
`<machineNAME>`
157+
`<Machine Name>`
157158
158159
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`.
159160
160161
Here's an example output:
161162
162163
```Output
163-
`az resource delete --ids "/subscriptions/d41eb627-825d-4419-a14d-c6ad485f4110/resourceGroups/EDGECI-REGISTRATION-rr1n26r1512-kXOKQuGV/providers/Microsoft.HybridCompute/machines/ASRR1N26R15U33/providers/Microsoft.AzureStackHCI/edgeDevices/default"
164+
`az resource delete --ids "/subscriptions/<Subscription ID>/resourceGroups/<Resource Group Name>/providers/Microsoft.HybridCompute/machines/<Machine Name>/providers/Microsoft.AzureStackHCI/edgeDevices/default"
164165
```
165166
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.
166167
167168
1. Verify the deletion of the resource by running the `show` command again. Here's an example output:
168169
169170
```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.
171172
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.
173174
```
174175
175176
### Refresh the cloud `edgeDevices` data
@@ -189,7 +190,7 @@ Follow these steps to refresh the cloud data:
189190
`"switchName": "ConvergedSwitch(managementcompute)",`
190191
`"switchType": "External"`
191192
192-
### Redo the Azure portal
193+
### Redo the deployment via Azure portal
193194
194195
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.
195196
@@ -214,8 +215,8 @@ After the mitigation is complete, we strongly recommend that you recreate the lo
214215
Follow these steps to recreate the lock:
215216
216217
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.
219220
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.
221222
1. Select **OK** to save the lock.

0 commit comments

Comments
 (0)