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
> Applies to: Azure Stack HCI, version 23H2 running 2405 or later
14
14
15
15
This article provides guidance on how to troubleshoot deployment validation issues experienced during the deployment of your Azure Stack HCI cluster via the Azure portal.
16
16
17
-
## Error - deployment vaildation failure
17
+
## Error - deployment validation failure
18
18
19
19
When deploying Azure Stack HCI, version 23H2 via the Azure portal, you might encounter a deployment validation failure.
20
20
The "Azure Stack HCI Network - Check network requirements" validation task fail with the following error:
@@ -30,17 +30,17 @@ Example: 192.168.0.1 or 192.168.0.1","Target":null,"Details":null}].
30
30
If you go to the **Networking** tab in Azure portal deployment, within the **Network Intent** configuration, you could see the following error:
31
31
32
32
```
33
-
The selected physical network adapter is not binded to the management virtual Switch.
33
+
The selected physical network adapter is not binded to the management virtual switch.
34
34
```
35
35
36
36
## Cause
37
37
38
-
This issue occurs on deployments triggered after August 6th. The issue only happens if the deployment validation was triggered on the cluster and the validation result was a failure, with subsequent validation retries.
38
+
This issue occurs on deployments triggered after August 6. The issue only happens if the deployment validation was triggered on the cluster and the validation result was a failure, with subsequent validation retries.
39
39
40
40
The issue occurs for the following reason:
41
41
42
42
- Validation on the device creates a VM switch for network related tests and is deleted at the end of tests.
43
-
-`DeviceManagementExtension` extension is not detecting the deletion of the VM switch.
43
+
-`DeviceManagementExtension` extension isn't detecting the deletion of the VM switch.
44
44
45
45
## Recommended resolution
46
46
@@ -53,25 +53,25 @@ The multi-step resolution process includes the following steps:
53
53
-[Redo the Azure portal](#redo-the-azure-portal)
54
54
-[Recreate the lock on the seed node resource](#recreate-the-lock-on-the-seed-node-resource)
55
55
56
-
### Remove the lock from the seed node
57
-
58
56
> [!NOTE]
59
-
> All the steps in this section need to be performed on the seed node.
57
+
> All the steps in this article need to be performed on the seed node.
58
+
59
+
### Remove the lock from the seed node
60
60
61
-
Follow this multi-step process to mitigate this validation error:
61
+
Follow these steps to remove the lock from the seed node:
62
62
63
63
1. To remove the lock, in the Azure portal, go to the object via the resource group or within Machines - Azure Arc.
64
64
1. In the left-pane, go to **Settings > Locks**. You should see a lock named **DoNotDelete**. This is the automatic resource lock that is created when the node is onboarded.
65
65
1. Select **Delete** against the lock.
66
66
67
-
If you attmept the steps in the next section without removing the lock, the **Delete** command fails with the following error:
67
+
If you attempt the steps in the next section without removing the lock, the **Delete** command fails with the following error:
68
68
69
69
```
70
70
Some resources failed to be deleted (run with `--verbose` for more information):
Here is the example output when run with the `--verbose` switch:
74
+
Here's the example output when run with the `--verbose` switch:
75
75
76
76
```Output
77
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.
@@ -85,7 +85,7 @@ With the lock removed, follow these steps to remove the validation error.
85
85
86
86
1. Connect to the seed node. Run the following PowerShell command:
87
87
88
-
```powershell
88
+
```PowerShell
89
89
Get-VMSwitch
90
90
```
91
91
@@ -97,7 +97,7 @@ With the lock removed, follow these steps to remove the validation error.
97
97
Remove-VMSwitch -Name "<VM Switch Name>" -Force
98
98
```
99
99
100
-
Make sure to use the VM switch name from the `Get-VMSwitch` command. If you didn't intentionally create a VM switch, the `Get-VMSwitch` command will have no results. The failure occurs because the Network Validation Step cleaned up the VM switch, but the `DeviceManagementExtension` didn't detect the cleanup.
100
+
Make sure to use the VM switch name from the `Get-VMSwitch` command. If you didn't intentionally create a VM switch, the `Get-VMSwitch` command has no results. The failure occurs because the Network Validation Step cleaned up the VM switch, but the `DeviceManagementExtension` didn't detect the cleanup.
101
101
102
102
1. Confirm the device cleanup and wait for the cleanup to complete.
103
103
@@ -107,7 +107,7 @@ After the VM switch on the device is removed, clean up the Edge Device ARM resou
107
107
108
108
1. On a client that can access to Azure, verify install or install AZ CLI: [Install Azure CLI on Windows](https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-windows?tabs=azure-cli)
109
109
- You can verify install by running: `az`
110
-
- If installed, this will output a `"Welcome to Azure CLI!"` message with available commands.
110
+
- If installed, this outputs a `"Welcome to Azure CLI!"` message with available commands.
111
111
112
112
1. Sign in to Azure with az cli. Run the following command:
113
113
@@ -119,48 +119,52 @@ After the VM switch on the device is removed, clean up the Edge Device ARM resou
119
119
120
120
1. To set a specific subscription, run the following command:
121
121
122
-
```azurecli
122
+
```AzureCLI
123
123
az account set --subscription "<subGUID>"
124
124
```
125
125
126
126
Replace the value in the above example command with the appropriate value for `<subGUID>`.
127
-
1. Output the data stored within the `edgeDevices` resource that has the incorrectly stored VM Switch information with the following command:
127
+
1. Output the data stored within the `edgeDevices` resource that has the incorrectly stored VM Switch information. Run the following command:
128
128
129
-
```azurecli
129
+
```AzureCLI
130
130
az resource show --ids "/subscriptions/<subGUID>/resourceGroups/<resourceGROUPNAME>/providers/Microsoft.HybridCompute/machines/<machineNAME>/providers/Microsoft.AzureStackHCI/edgeDevices/default"
131
131
```
132
132
133
133
Replace the values in the above example command with the appropriate values for:`<subGUID>`, `<resourceGROUPNAME>`, and `<machineNAME>`.
134
134
135
-
Here is an example output:
135
+
Here's an example output:
136
136
137
137
```output
138
138
az resource show --ids "/subscriptions/<Subscription ID>/resourceGroups/<Resource Group Name>/providers/Microsoft.HybridCompute/machines/ASRR1N26R15U33/providers/Microsoft.AzureStackHCI/edgeDevices/default"
139
139
```
140
140
141
-
The output of this command will show quite a bit of detail about the <machineNAME> used in the command. Near the bottom of the output, you will see 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 was not detected by the DeviceManagementExtension and updated cloud-side):
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):
1. After confirming the `show` command worked by outputting the `edgeDevices` data, and likely confirming the `"switchDetails"`, it is time to `delete` the resource from ARM so it can be refreshed appropriately from the device.
146
146
147
-
1. Delete the `edgeDevices` resource which has the incorrectly stored VM Switch information with the following command:
1. Delete the `edgeDevices` resource, which has the incorrectly stored VM switch information. Run the following command:
148
+
149
+
```AzureCLI
150
+
az resource delete --ids "/subscriptions/<subGUID>/resourceGroups/<resourceGROUPNAME>/providers/Microsoft.HybridCompute/machines/<machineNAME>/providers/Microsoft.AzureStackHCI/edgeDevices/default"
151
+
```
149
152
150
-
Replace the values (remember to remove the "<>" characters as well) in the above example command with the appropriate values for:
153
+
Replace the values (remember to remove the \<\> characters as well) with the appropriate values for:
151
154
`<subGUID>`
152
155
`<resourceGROUPNAME>`
153
156
`<machineNAME>`
154
157
155
-
This is the same resource `--ids` from the `show`, so you can just leverage that same string. In fact, you could just "up arrow" in the console and replace `show` with `delete`.
158
+
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`.
- **Note:** Run just like this, there will be no output from this command, it will either work and return the command prompt, or present an error. It should not present an error, if it does, that will require additional troubleshooting.
163
-
1. Verify the deletion of the resource by running the `show` command again. Here is an example output:
165
+
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
+
1. Verify the deletion of the resource by running the `show` command again. Here's an example output:
164
168
165
169
```Output
166
170
(ResourceNotFound) The resource 'Microsoft.HybridCompute/machines/<machineNAME>/providers/Microsoft.AzureStackHCI/edgeDevices/default' could not be found.
@@ -176,7 +180,7 @@ Follow these steps to refresh the cloud data:
176
180
177
181
1. Restart the `DeviceManagementService` on the seed node. Run the following PowerShell command:
178
182
179
-
```powershell
183
+
```PowerShell
180
184
Restart-Service DeviceManagementService
181
185
```
182
186
@@ -187,7 +191,7 @@ Follow these steps to refresh the cloud data:
187
191
188
192
### Redo the Azure portal
189
193
190
-
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.
194
+
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.
191
195
192
196
Follow these steps in the Azure portal:
193
197
@@ -199,7 +203,7 @@ Follow these steps in the Azure portal:
199
203
200
204
1. Confirm the information on the subsequent pages. You should see the following changes:
201
205
- On the **Networking** page, you should no longer see the `The selected physical network adapter is not binded to the management virtual Switch` error that might have been seen previously.
202
-
- On the **Validation** page at the end, if you are past the original issue, the `deploymentdata.physicalnodes[0].ipv4address is not a valid IPv4 address` error won't be displayed.
206
+
- On the **Validation** page at the end, if you're past the original issue, the `deploymentdata.physicalnodes[0].ipv4address is not a valid IPv4 address` error won't be displayed.
203
207
204
208
1. If no other validation issues occur, start the deployment.
0 commit comments