Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update
  • Loading branch information
xiangyan99 committed Oct 29, 2024
commit 1ff9478f2dc096e71dcbab84fe54bfadd6ca8a4b
6 changes: 3 additions & 3 deletions sdk/core/azure-mgmt-core/azure/mgmt/core/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def get_arm_info(cloud_setting: AzureClouds) -> Dict[str, Any]:
:param cloud_setting: The cloud setting for which to get the ARM endpoint.
:type cloud_setting: AzureClouds
:return: The ARM endpoint and ARM authentication scopes.
:rtype: dict[str, str]
:rtype: dict[str, Any]
"""
if cloud_setting == AzureClouds.AZURE_CHINA_CLOUD:
return {
Expand All @@ -236,11 +236,11 @@ def get_arm_info(cloud_setting: AzureClouds) -> Dict[str, Any]:
if cloud_setting == AzureClouds.AZURE_US_GOVERNMENT:
return {
"resource_manager": "https://management.usgovcloudapi.net/",
"credential_scopes": ["https://management.chinacloudapi.cn/.default"],
"credential_scopes": ["https://management.core.usgovcloudapi.net/.default"],
}
if cloud_setting == AzureClouds.AZURE_PUBLIC_CLOUD:
return {
"resource_manager": "https://management.azure.com/",
"credential_scopes": ["https://management.chinacloudapi.cn/.default"],
"credential_scopes": ["https://management.azure.com/.default"],
}
raise ValueError("Unknown cloud setting: {}".format(cloud_setting))