question

JimEwart-1339 avatar image
0 Votes"
JimEwart-1339 asked TravisCragg-MSFT answered

unable to register asdk

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?

azure-stack-hub
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

TravisCragg-MSFT avatar image
0 Votes"
TravisCragg-MSFT answered

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.