[ARM] `azure bicep`: Use `AZURE_CLI_DISABLE_CONNECTION_VERIFICATION` when checking Bicep CLI versions
Related command
az bicep
Description
The az bicep commands check for the latest version of Bicep by sending an HTTP request, but when it doesn't respect AZURE_CLI_DISABLE_CONNECTION_VERIFICATION and always validate SSL certificates. The PR updates the code to check if SSL certificate verification should be skipped.
Testing Guide
Running any az bicep commands with AZURE_CLI_DISABLE_CONNECTION_VERIFICATION set to true.
This checklist is used to make sure that common guidelines for a pull request are followed.
-
[x] The PR title and description has followed the guideline in Submitting Pull Requests.
-
[x] I adhere to the Command Guidelines.
-
[x] I adhere to the Error Handling Guidelines.
ARM