Open jiasli opened 3 years ago
Known problems with AI-generated examples:
The examples of az login
are completely erased:
$ az login --help
Examples
Log in interactively.
az login
Locally:
Examples
Log in interactively.
az login
Log in with user name and password. This doesn't work with Microsoft accounts or accounts that
have two-factor authentication enabled. Use -p=secret if the first character of the password is
'-'.
az login -u johndoe@contoso.com -p VerySecret
Log in with a service principal using client secret. Use -p=secret if the first character of the
password is '-'.
az login --service-principal -u http://azure-cli-2016-08-05-14-31-15 -p VerySecret --tenant
contoso.onmicrosoft.com
Log in with a service principal using client certificate.
az login --service-principal -u http://azure-cli-2016-08-05-14-31-15 -p ~/mycertfile.pem
--tenant contoso.onmicrosoft.com
Log in using a VM's system assigned identity
az login --identity
Log in using a VM's user assigned identity. Client or object ids of the service identity also
work
az login --identity -u /subscriptions/<subscriptionId>/resourcegroups/myRG/providers/Microso
ft.ManagedIdentity/userAssignedIdentities/myID
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @maertendMSFT.
Author: | jiasli |
---|---|
Assignees: | jiasli |
Labels: | `Service Attention`, `Cloud Shell` |
Milestone: | Backlog |
Previously, changes on core are made to incorporate
azext_ai_examples
:azext_ai_examples
is always loaded: https://github.com/Azure/azure-cli/pull/13294azext_ai_examples
hooks intoazure-cli-core
to modify the built-in examples: https://github.com/Azure/azure-cli/pull/10987In Cloud Shell,
azext_ai_examples
is pre-installed. It replaces built-in hand-crafted high-qualify large-quantity examples with auto-generated low-quality small-quantity examples.For example, for
az vm create --help
:Cloud Shell:
Some examples are even wrong:
Locally:
This impedes Azure CLI's capability in Cloud Shell.