Skip navigation
Use the US Government Azure cloud with Azure CLI 2

Use the US Government Azure cloud with Azure CLI 2

Q. I'm using the Azure CLI v2 with Azure but need to authenticate to the US Government cloud. How do I do this?

A. To utilize the Government cloud use:

az cloud set --name AzureUSGovernment

Then continue to logon as normal, e.g. az login

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish