Hello @Jimenez, Ivan ,
I understand why you’re confused even if all validations passed, why would registration still fail? But yes, it can happen and rest assured I'll try to help you out with the mitigation for it.There is an older thread for similar issue for similar error message:
https://learn.microsoft.com/en-us/answers/questions/2239808/azure-local-deploy-register-with-azure-failing and the issue was due to bad configuration for proxy settings.Can you please give it a try once for your environment and let us know if it still fails.
If above solution doesn't apply for your case, kindly review and answer us (this will help us to pin-point the root cause behind the issue):
- Please verify and confirm that all the pre-requisites have been met for your Azure Local cluster listed out here in the tables: https://learn.microsoft.com/en-us/azure/azure-local/deploy/deployment-prerequisites?view=azloc-previous#review-requirements-and-complete-prerequisites1. Please confirm that you are doing registration without Azure Arc Gateway (this method for Azure Local registration : https://learn.microsoft.com/en-us/azure/azure-local/deploy/deployment-without-azure-arc-gateway?view=azloc-previous&tabs=script&pivots=register-proxy)
- All permission for the LCM user are configured properly and it's working fine (ie you are able to login using them) on all the nodes (see: https://github.com/Azure/AzureLocal-Supportability/blob/main/TSG/LCM/access-denied-lcm-user.md#issue-validation)
- Make sure all the nodes are having only below versions for these modules:
For Az.Accounts only 4.0.2, for Az.Resources only 7.8.0 and Az.StackHCI only 2.5.0.
If you see any discrepancies among the nodes, kindly uninstall the module with all the versions of it and then install the required version only.
Sample Powershell command to remove all versions of the module:
Uninstall-Module Az.stackhci -AllVersions
To install the required version:
Install-Module Az.stackhci -RequiredVersion 2.5.0
Let me know if these steps help out to fix the registration issue.