A Cloud Shell credential problem occurred

lugger1 0 Reputation points
2024-04-02T04:33:12.2733333+00:00

I try to use Azure clout shell , and during execution of "az login" command I got this error:

A Cloud Shell credential problem occurred. When you report the issue with the error below, please mention the hostname 'SandboxHost-638476176132956009'

Failed to authenticate 8fa2a577-763e-4f76-81a0-dc97d1871254 'Turnberry Solutions Inc' due to error 'AADSTS50079: Due to a configuration change made by your administrator, or because you moved to a new location, you must enroll in multi-factor authentication to access '797f4846-ba00-4fd7-ba43-dac1f8f63013'. Trace ID: 68d3e4e5-8977-45de-828d-e0dd8f717300 Correlation ID: e22260b7-b461-4c2b-afd4-8542bd7dd5ce

My account has MFA enabled, so what I need to do to fix it?

Azure Cloud Services
Azure Cloud Services
An Azure platform as a service offer that is used to deploy web and cloud applications.
632 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. vipullag-MSFT 23,946 Reputation points Microsoft Employee
    2024-04-02T04:54:36.9133333+00:00

    Hello lugger1

    Welcome to Microsoft Q&A Platform, thanks for posting your query here.

    If your account has MFA enabled, you need to use the interactive login method to authenticate with Azure CLI in Azure Cloud Shell.

    To do this, follow these steps:

    1. Open Azure Cloud Shell by clicking on the "Cloud Shell" icon in the Azure portal.
    2. Select "PowerShell" or "Bash" as your preferred shell.
    3. Run the "az login" command.
    4. A message will appear asking you to open a web page to authenticate. Follow the instructions to authenticate with your MFA credentials.
    5. Once you have successfully authenticated, you can run Azure CLI commands in Azure Cloud Shell.

    Hope this helps.


  2. lugger1 0 Reputation points
    2024-04-08T03:54:16.8733333+00:00

    In my case command "az login" in Azure Cloud shell failed every time, even if I reboot laptop, use incognito browser window , clear cookies, etc - nothing helped. But command "az login --tenant <TenantID>" works and does not give any errors related to AADSTS50079 (this error is related to MFA required).