0

I am using the Azure toolkit for intelliJ to deploy my Web App on azure. However, official sign in guidance do not cover national cloud like Mooncake (Azure for China). Any existing workaround on that?

So far, the sign in options in Azure toolkit for intelliJ/Eclipse all lead to: https://login.microsoftonline.com/

While the authenticate page for Mooncake is at: https://login.partner.microsoftonline.cn/

Jun Han
  • 13,821
  • 7
  • 26
  • 31
  • This is now documented at: https://github.com/microsoft/azure-tools-for-java/wiki/FAQ#1-how-to-login-to-national-clouds – Yuchen Wang Oct 08 '21 at 06:24

1 Answers1

1

Here is Azure offical Chinese document link shown the cross-reference table of resource endpoint urls for China and Global. And according to the source code AuthenticationAuthority.java for Azure Toolkit for Java, the authentication endpoint for China environment should be login.chinacloudapi.cn.

Next, please refer to the GitHub issue \[IntelliJ and Eclipse\]Mooncake Sign in with Interactive not work on Mac, to select different Azure environment like China Mooncake, you need to create a configuration file named AadProvider.json with the content below to enable the related authenticate page.

{
    "EnvironmentName": "CHINA"
}

On Windows, the AadProvider.json file is at the path as the figure below.

enter image description here

Peter Pan
  • 23,476
  • 4
  • 25
  • 43