Skip to content

Commit 4de3683

Browse files
committed
Learn Editor: Update troubleshoot-resource-bridge.md
1 parent 415798a commit 4de3683

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

articles/azure-arc/resource-bridge/troubleshoot-resource-bridge.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,32 @@ This article provides information on troubleshooting and resolving issues that c
1313

1414
### Logs collection
1515

16-
For issues encountered with Arc resource bridge, collect logs for further investigation using the Azure CLI [`az arcappliance logs`](/cli/azure/arcappliance/logs) command. This command needs to be run from the same management machine that was used to run commands to deploy the Arc resource bridge. If there's a problem collecting logs, most likely the management machine is unable to reach the Appliance VM, and the network administrator needs to allow communication between the management machine to the Appliance VM. You can collect the Arc resource bridge logs by passing either the appliance VM IP or the kubeconfig in the logs command.
16+
For issues encountered with Arc resource bridge, collect logs for further investigation using the Azure CLI [`az arcappliance logs`](/cli/azure/arcappliance/logs) command. This command needs to be run from the same management machine that was used to run commands to deploy the Arc resource bridge. If you are using a different machine to collect logs, you will need to run the `az arcappliance get-credentials` command first before collecting logs.
1717

18-
An example to collect Arc resource bridge logs on VMware using the appliance VM IP address:
18+
If there's a problem collecting logs, most likely the management machine is unable to reach the Appliance VM, and the network administrator needs to allow SSH communication between the management machine to the Appliance VM on TCP port 22.
19+
20+
You can collect the Arc resource bridge logs by passing either the appliance VM IP or the kubeconfig in the logs command.
21+
22+
To collect Arc resource bridge logs on VMware using the appliance VM IP address:
1923

2024
```azurecli
21-
az arcappliance logs vmware --ip 192.168.0.2 --username usrnm1@domain --password vsexample --address vcenter.address
25+
az arcappliance logs vmware --ip <appliance VM IP> --username <vSphere username> --password <vSphere password> --address <vCenter address> --out-dir <path to output directory>
2226
```
2327

24-
An example to collect Arc resource bridge logs for Azure Stack HCI using the appliance VM IP address:
28+
To collect Arc resource bridge logs for Azure Stack HCI using the appliance VM IP address:
2529

2630
```azurecli
27-
az arcappliance logs hci --ip 192.168.02 --cloudagent 192.168.05 --loginconfigfile c:\clusterstorage\moc\workingdir\kvatoken.tok
31+
az arcappliance logs hci --ip <appliance VM IP> --cloudagent <cloud agent service IP/FQDN> --loginconfigfile <file path of kvatoken.tok>
2832
```
2933

30-
If you are unsure of your appliance VM IP, there is also the option to use the kubeconfig. You can retrieve the kubeconfig by running the [get-credentials command](/cli/azure/arcappliance) then run the logs command.
34+
If you are unsure of your appliance VM IP, there is also the option to use the kubeconfig. You can retrieve the kubeconfig by running the [get-credentials command](/cli/azure/arcappliance) then run the logs command.
35+
36+
To retrieve the kubeconfig and log key then collect logs for Arc-enabled VMware from a different machine than the one used to deploy Arc resource bridge for Arc-enabled VMware:
3137

3238
```azurecli
33-
az arcappliance get-credentials --resource-group my-rg-01 --name arb-name --credentials-dir c:\user\arbcreds
34-
az arcappliance logs vmware --kubeconfig c:\user\arbcreds\kubeconfig --username usrnm1@domain --password vsexample --address vcenter.address
39+
az account set -s <subscription id>
40+
az arcappliance get-credentials -n <Arc resource bridge name> -g <resource group name>
41+
az arcappliance logs vmware --kubeconfig kubeconfig --out-dir <path to specified output directory>
3542
```
3643

3744
### Arc resource bridge is offline

0 commit comments

Comments
 (0)