AzureEnvironment
Specifies the Azure cloud environment to use for authentication. Set this to match your Azure account’s region (Global, China, U.S. Government, or U.S. DoD cloud).
Possible Values
GLOBAL, CHINA, USGOVT, USGOVTDODData Type
string
Default Value
"GLOBAL"
Remarks
Azure offers multiple cloud environments for different regions and government use cases. The AzureEnvironment property determines which environment the provider connects to when authenticating. The available options include:
- GLOBAL — The default Azure public cloud environment.
- CHINA — The Azure China cloud environment.
- USGOVT — The Azure U.S. Government cloud, used for U.S. government agencies and contractors.
- USGOVTDOD — The Azure U.S. Government Department of Defense (DoD) cloud environment.
In most cases, the default environment (GLOBAL) works. However, if your Azure account is part of a national or government cloud, set this property accordingly to avoid authentication errors or URL mismatches.
Use this property if you encounter issues with URL suffix mismatches or need to target a government cloud. You can find more information about this setting in Microsoft documentation about National clouds.