Hello Nelson,
The error messages you're encountering—particularly the "404 Endpoint does not exist"—indicate that the Azure Hybrid Compute service endpoint may be unreachable or misconfigured. This typically affects SSH connectivity to Azure Arc-enabled servers.
Here are some steps you can take to troubleshoot this issue:
- Check the HybridConnectivity Resource Provider: Ensure that the HybridConnectivity resource provider is registered for your subscription. You can check this by running:
If it is not registered, you can register it using:az provider show -n Microsoft.HybridConnectivity -o tsv --query registrationState
You can refer to the below doc for better understanding: https://learn.microsoft.com/en-us/azure/azure-arc/servers/ssh-arc-troubleshoot?tabs=azure-cli#hybridconnectivity-rp-not-registeredaz provider register -n Microsoft.HybridConnectivity
- Validate the Connectivity Endpoint: Make sure that the default connectivity endpoint has been created correctly for your Azure Arc-enabled servers. You can validate this by running:
az rest --method get --uri https://management.azure.com/subscriptions/<subscription>/resourceGroups/<resourcegroup>/providers/Microsoft.HybridCompute/machines/<arc enabled server name>/providers/Microsoft.HybridConnectivity/endpoints/default?api-version=2023-03-15
- Delete the existing service configuration and allow it to be re-created by the CLI command at the next connection. Run:
Refer: https://learn.microsoft.com/en-us/azure/azure-arc/servers/ssh-arc-troubleshoot?tabs=azure-cli#cannot-connect-after-updating-cli-tool-and-arc-agentaz rest --method delete --uri https://management.azure.com/subscriptions/<SUB_ID>/resourceGroups/<RG_NAME>/providers/Microsoft.HybridCompute/machines/<VM_NAME>/providers/Microsoft.HybridConnectivity/endpoints/default/serviceconfigurations/SSH?api-version=2023-03-15
- Check Permissions: Ensure that you have the Owner or Contributor role on the resource or contact the owner/contributor of the resource to set up SSH connectivity. If using Microsoft Entra login, ensure you have the Virtual Machine User Login or the Virtual Machine Administrator Login roles and that the Microsoft Entra SSH Login extension is installed on the Arc-Enabled Server.
- Review the SSH Configuration: Ensure that the SSH service (SSHD) is running on the Arc-enabled server and ensure that the functionality is enabled on your Arc-enabled server on port 22 (or other nondefault port).
az rest --method put --uri https://management.azure.com/subscriptions/<subscription>/resourceGroups/<resourcegroup>/providers/Microsoft.HybridCompute/machines/<arc enabled server name>/providers/Microsoft.HybridConnectivity/endpoints/default/serviceconfigurations/SSH?api-version=2023-03-15 --body '{\"properties\": {\"serviceName\": \"SSH\", \"port\": 22}}'
- Restart the Hybrid Agent: If the above steps do not resolve the issue, try restarting the hybrid agent on the Arc-enabled server and try accessing the server.
If the provided solution works for your query, please do not forget to click Upvote Button. this can be beneficial to other community members.it would be greatly appreciated and helpful to others
Thanks