unable to register asdk

Jim Ewart 1 Reputation point
2021-04-19T15:12:19.7+00:00

trying to run following command

az cloud register -n 'AzureCloud'
--endpoint-resource-manager "https://management.local.azurestack.external/" --suffix-storage-endpoint "local.azurestack.external"
--suffix-keyvault-dns ".vault.local.azurestack.external" `
--endpoint-active-directory-graph-resource-id "https://graph.windows.net/"

results in this error

azaz : ERROR: Unable to get endpoints from the cloud.
At C:\Users\mike.fife\Documents\Cloud Register ASDK.ps1:2 char:1

  • az cloud register `
  • ~~~~~~~~~~~~~~~~~~~
  • CategoryInfo : NotSpecified: (ERROR: Unable t...from the cloud.:String) [], RemoteException
  • FullyQualifiedErrorId : NativeCommandError

Please ensure you have network connection. Error detail: HTTPSConnectionPool(host='management.local.azurestack.external', port=443):
Max retries exceeded with url: //metadata/endpoints?api-version=2015-01-01 (Caused by SSLError(SSLError("bad handshake: Error([('SSL
routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),))

certificates are installed and have even tried these commands

set AZURE_CLI_DISABLE_CONNECTION_VERIFICATION=1
set adal_python_ssl_no_verify=1

STILL NO JOY

any ideas?

Community Center | Not monitored
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. TravisCragg-MSFT 5,696 Reputation points Microsoft Employee Moderator
    2021-04-23T19:34:11.393+00:00

    The commands you are using are for connecting the CLI to Azure Stack Hub. If you are trying to Register the ASDK with Azure, you can find instructions here.

    Please let me know what you are trying to accomplish so I can assist you further.

    0 comments No comments

  2. Michael Clagett 211 Reputation points
    2024-03-13T20:28:35.7533333+00:00

    I got to this page by receiving the same error Jim did when I actually was trying to connect the CLI to Azure Stack Hub. Turned out to be that I had forgotten to reconnect the VPN to AzureStack after rebooting my client machine. (Idiot!) Just in case this happens to someone else.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.