Closed pmadusud closed 1 month ago
Normally that would mean the RP is not actually registered. From the HCIBox-Client VM, can you check to confirm that the subscription being used by the cli matches the one you are targeting?
To do this you should be able to go into the client vm, open a shell, and run 'az account show' (the shell should already have an az cli session active)
I have the same error and after investigating i can confirm the right sub is in context and the RP is registered... Do we know if the EP for the call is valid for EastUS2? Installation notes HCIBox can be deployed in East US, Australia East, and West Europe. Deploying in other regions will result in unexpected behavior or failures. But using Azure Dev CLI there are 5 regions....
Error Details = {"status":"Failed","error":{"code":"InternalHttpClientError","message":"Could not make the dp call with inner error = " ,"target":"https://dp.stackhci.azure.com/eastus2/edgeDevices?api-version=2024-02-15-preview","details":[{"code":"Intern alServerError","message":"Endpoint not found for put edge devices call, endpoint = https://dp.stackhci.azure.com/eastus2/edgeDevices?api-version=2024-02-15-preview with details = "}]}}
Eastus2 certainly used to work. Could be a regression in the RP if this region is no longer supported.
I have managed to resolve the above issue. The problem I think is because as part of the deployment of DeviceManagement extension, it trying to use the REST API end point for the particular version i.e. 2024-02-15-preview. It seems that for my subscription, the end point for that REST API version is not available in eastus2.
I used the below CLI command to identify the regions for each of the REST API versions.
az provider show --namespace microsoft.azurestackhci
Based on this, I have moved my deployment to a different region and it resolved this specific problem.
Hope this helps for others as well.
Thanks for the detail on resolution @pmadusud.
I am having an issue with the DeviceManagement Extension during the setup of HCI Jumpbox, as the installation fails with the below error.
The error says that the RP Microsoft.AzureStackHCI might not be registered, however the RP is registered properly. I have also tried re-registering as well as unregister and register of the RP. Even after doing the same, I get the same error mentioned above.
I have also tried to install the extension through Azure CLI, again the result is the same.
Am I missing something which is causing the issue mentioned above. Any pointers would be great.