azure-docs-cli icon indicating copy to clipboard operation
azure-docs-cli copied to clipboard

No mention of refreshing login for account with multi-factor authentication

Open FrankDeGroot opened this issue 1 year ago • 2 comments

Prerequisites

  • [X] Write a descriptive title.
  • [X] Search the existing issues.
  • [X] I am reporting the documentation problem for the current version of Azure CLI.

Azure CLI version being used

2.58.0

Link to affected document

https://learn.microsoft.com/en-us/cli/azure/authenticate-azure-cli-interactively

Description of the documentation error

This document does not mention the option to refresh the login for an account using multi-factor authentication.

Suggested fix

After repeated attempts the az cli presents the following command line which solves the issue: az login --scope https://management.core.windows.net//.default

FrankDeGroot avatar Mar 13 '24 11:03 FrankDeGroot

Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Naveenommi-MSFT avatar Mar 13 '24 16:03 Naveenommi-MSFT

@FrankDeGroot Thank you for bringing this to our attention. I've delegated this to content author @jiasli, who will review it and offer their insightful opinions.

Naveenommi-MSFT avatar Mar 13 '24 16:03 Naveenommi-MSFT

@FrankDeGroot, Did you try az logout? You can also login with a different tenant.

dbradish-microsoft avatar May 30 '24 18:05 dbradish-microsoft

Thanks for the reply. I was able to resolve the issue but I thought it would be useful if the documentation would mention the suggested fix that's put at the bottom of the post.

FrankDeGroot avatar May 30 '24 18:05 FrankDeGroot

@frankDeGroot, I would like to add your suggestion to the doc, but I need more context. How might I replicate the problem? For example, was there some sort of permissions change in Azure, and this update was not recognized by the Azure CLI?

dbradish-microsoft avatar Jun 11 '24 01:06 dbradish-microsoft

I am closing this GitHub issue as adequate time has been given for discussion. If further action is needed, please open a new GitHub issue.

dbradish-microsoft avatar Jun 24 '24 20:06 dbradish-microsoft