2

I am able to login to my Microsoft Azure Government subscription account via the Azure Government portal, when I log in through Powershell:

Login-AzureRmAccount -Environment AzureUSGovernment

I get the following error:

AADSTS50011: The reply url specified in the request does not match the reply urls configured for the application

Saca
  • 10,355
  • 1
  • 34
  • 47
Ben Hlaban
  • 51
  • 1
  • 3

1 Answers1

3

Upgrading to the latest version of the AzureRM powershell module will resolve this issue. The same thing applies for Azure CLI, Storage Explorer and any other Azure tools.

The issue is that the older version of these tools use an older Azure AD endpoint:

https://login-us.microsoftonline.com

The new/current endpoint that the updated modules/tools use is:

https://login.microsoftonline.us

See the Azure Government AAD Authority Update blog post for more details on this.

Bernie Ellis
  • 333
  • 1
  • 5