SSL handshake error with some Azure CLI commands

后端 未结 4 1731
醉话见心
醉话见心 2021-02-08 02:11

I am using Azure CLI in bash within PowerShell in Windows 10. I sit behind a corporate proxy. My goal is to automate the deployment and setup of Azure resources.

Some of

4条回答
  •  攒了一身酷
    2021-02-08 02:27

    Due to you were using Windows not Linux or MacOS, please try to use set instead of export to set the environment variables in PowerShell, as below, then to run the azure cli command for Key Vault again.

    set ADAL_PYTHON_SSL_NO_VERIFY=1
    set AZURE_CLI_DISABLE_CONNECTION_VERIFICATION=1
    

    And for the command export REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt on Linux, I think you can refer to the SuperUser thread https://superuser.com/questions/217719/what-are-the-windows-system-certificate-stores to run a powershell window as administrator (right click on the PowerShell shortcut and select Run as administrator to run).

    However, as you said about in bash with PowerShell, it sounds like you open a bash shell session of Windows Subsystem for Linux or like Git Bash from PS: prompt, which described fuzzily that I can not understand for your operations, please post more details about it, and I don't think it's a good practice to use PowerShell with bash nested.

提交回复
热议问题