-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add "-certificate" param support for azcli (version 2.66.0 and above) #20698
Add "-certificate" param support for azcli (version 2.66.0 and above) #20698
Conversation
@microsoft-github-policy-service agree |
It is great that the PR is merged. But I am wondering the PR invokes yet another az process just to checke its version. It looks to me that the task invokes "az --version" at its startup. Why not reusing the information? My concern is that az checks whether newer versions exist and you cannot disable its behaviour. If you run your pipeline agent in a hosted environment which is not connected to Internet, this version checking takes quite a long time to just fail. |
Thank you for your comments. We will address the redundant version check by removing the extra call as suggested. Regarding your concerns about disabling the AZ CLI's version check, it seems possible to achieve this by using the environment variable However, I am unclear about your concern regarding agents with limited internet access. If the agents lack connectivity, commands like |
Using AZURE_CORE_NO_TELEMETRY=1 does not look to disable version checking. Look at the message at the bottom.
I verified that with or without the variable, execution time of "az --version" does not change. I expect, without version checking, it will be executed more quickly. A network configuration I have in mind is as follows. In this configuration you can az login without any problem.
|
Task name: AzureCLIV2
Description: Add support of new "--certificate" parameter since old "--password" stopped working with certificates from version of azcli 2.67.0
Documentation changes required: (Y/N) N
Added unit tests: (Y/N) N
Attached related issue: Azure/azure-cli#30283 and Certificate based auth · Issue #111 · Azure/login
Checklist: