Skip to content

Commit 13008ef

Browse files
committed
More changes
1 parent 7b3c257 commit 13008ef

File tree

1 file changed

+42
-23
lines changed

1 file changed

+42
-23
lines changed

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

Lines changed: 42 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ms.date: 08/21/2024
1414

1515
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.
1616

17-
## Error - deployment vaildation failure with not a valid IPv4 address
17+
## Error - deployment vaildation failure
1818

1919
When deploying Azure Stack HCI, version 23H2 via the Azure portal, you might encounter a deployment validation failure.
2020
The "Azure Stack HCI Network - Check network requirements" validation task fail with the following error:
@@ -27,7 +27,7 @@ found error at deploymentdata.physicalnodes[0].ipv4address: The specified for
2727
Example: 192.168.0.1 or 192.168.0.1","Target":null,"Details":null}].
2828
```
2929

30-
If you go to the **Networking** tab in Azure portal deployment, within the **Network Intent** configuration, you could see the following error:
30+
If you go to the **Networking** tab in Azure portal deployment, within the **Network Intent** configuration, you could see the following error:
3131

3232
```
3333
The selected physical network adapter is not binded to the management virtual Switch.
@@ -105,15 +105,18 @@ With the lock removed, follow these steps to remove the validation error.
105105
106106
After the VM switch on the device is removed, clean up the Edge Device ARM resource containing the incorrect VM switch information via the Azure CLI.
107107
108-
1. On a machine that the customer uses with 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)
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)
109109
- You can verify install by running: `az`
110110
- If installed, this will output a `"Welcome to Azure CLI!"` message with available commands.
111-
- Note: Though I have not tested it, from what I can tell, az cli can be leveraged from Azure Cloud Shell if the customer has that configured and is comfortable with it.
112-
1. Login to Azure with az cli, leverage the following command: `az login`
113-
- This command has a lot of options available depending on how/where the customer would like to authenticate
114-
- The command I used to verify these steps internally included the following parameters:
115-
`az login --tenant <tenantGUID> --use-device-code`
116-
- The available options are documented here: [Sign in interactively with Azure CLI](https://learn.microsoft.com/en-us/cli/azure/authenticate-azure-cli-interactively)
111+
112+
1. Sign in to Azure with az cli. Run the following command:
113+
114+
```AzureCLI
115+
az login --tenant <tenantGUID> --use-device-code
116+
```
117+
118+
For more information, [Sign in interactively with Azure CLI](/cli/azure/authenticate-azure-cli-interactively)
119+
117120
1. To set a specific subscription, run the following command:
118121
119122
```azurecli
@@ -128,30 +131,46 @@ After the VM switch on the device is removed, clean up the Edge Device ARM resou
128131
```
129132
130133
Replace the values in the above example command with the appropriate values for:`<subGUID>`, `<resourceGROUPNAME>`, and `<machineNAME>`.
131-
- **MY INTERNAL REPRO EXAMPLE** command was as follows: `az resource show --ids "/subscriptions/d41eb627-825d-4419-a14d-c6ad485f4110/resourceGroups/EDGECI-REGISTRATION-rr1n26r1512-kXOKQuGV/providers/Microsoft.HybridCompute/machines/ASRR1N26R15U33/providers/Microsoft.AzureStackHCI/edgeDevices/default"`
132-
- **Note:** 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):
134+
135+
Here is an example output:
136+
137+
```output
138+
az resource show --ids "/subscriptions/<Subscription ID>/resourceGroups/<Resource Group Name>/providers/Microsoft.HybridCompute/machines/ASRR1N26R15U33/providers/Microsoft.AzureStackHCI/edgeDevices/default"
139+
```
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):
133142
`"switchName": "ConvergedSwitch(managementcompute)",`
134143
`"switchType": "External"`
144+
135145
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+
136147
1. Delete the `edgeDevices` resource which has the incorrectly stored VM Switch information with the following command:
137148
`az resource delete --ids "/subscriptions/<subGUID>/resourceGroups/<resourceGROUPNAME>/providers/Microsoft.HybridCompute/machines/<machineNAME>/providers/Microsoft.AzureStackHCI/edgeDevices/default"`
138-
- **NOTICE:** Replace the values (remember to remove the "<>" characters as well) in the above example command with the appropriate values for:
149+
150+
Replace the values (remember to remove the "<>" characters as well) in the above example command with the appropriate values for:
139151
`<subGUID>`
140152
`<resourceGROUPNAME>`
141153
`<machineNAME>`
142-
- **Note:** 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`.
143-
- **MY INTERNAL REPRO EXAMPLE** command was as follows: `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"`
154+
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`.
156+
157+
Here is an example output:
158+
159+
```Output
160+
`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"
161+
```
144162
- **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.
145-
1. Verify the deletion of the resource by running the `show` command again. If all goes as planned, this will output something like:
146-
```
147-
(ResourceNotFound) The resource 'Microsoft.HybridCompute/machines/<machineNAME>/providers/Microsoft.AzureStackHCI/edgeDevices/default' could not be found.
148-
Code: ResourceNotFound
149-
Message: The resource 'Microsoft.HybridCompute/machines/<machineNAME>/providers/Microsoft.AzureStackHCI/edgeDevices/default' could not be found.
150-
```
163+
1. Verify the deletion of the resource by running the `show` command again. Here is an example output:
164+
165+
```Output
166+
(ResourceNotFound) The resource 'Microsoft.HybridCompute/machines/<machineNAME>/providers/Microsoft.AzureStackHCI/edgeDevices/default' could not be found.
167+
Code: ResourceNotFound
168+
Message: The resource 'Microsoft.HybridCompute/machines/<machineNAME>/providers/Microsoft.AzureStackHCI/edgeDevices/default' could not be found.
169+
```
151170
152171
### Refresh the cloud `edgeDevices` data
153172
154-
With the ARM resource and all the unintentional VM switches removed, refresh the cloud-side `edgeDevices` data again.
173+
With the ARM resource and all the unintentional VM switches removed, refresh the cloud-side `edgeDevices` data again.
155174
156175
Follow these steps to refresh the cloud data:
157176
@@ -179,8 +198,8 @@ Follow these steps in the Azure portal:
179198
1. Revalidate the reselected nodes.
180199
181200
1. Confirm the information on the subsequent pages. You should see the following changes:
182-
- On the **Network** page, you should no longer see the `"The selected physical network adapter is no binded to the management virtual Switch"` error that might have been seen previously.
183-
- 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.
201+
- 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.
184203
185204
1. If no other validation issues occur, start the deployment.
186205

0 commit comments

Comments
 (0)