Project

General

Profile

Actions

Bug #10833

closed

add support to Azure China to libcloud

Added by Nico César over 7 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
-
Target version:
Story points:
-

Description

endpoints in Azure in China are different :

$ azure account env list
info:    Executing command account env list
data:    Name             
data:    -----------------
data:    AzureCloud       
data:    AzureChinaCloud  
data:    AzureUSGovernment
data:    AzureGermanCloud 
info:    account env list command OK
$ azure account env show AzureChinaCloud
info:    Executing command account env show
data:    Name:                                              AzureChinaCloud
data:    activeDirectoryEndpointUrl:                        https://login.chinacloudapi.cn
data:    activeDirectoryGraphApiVersion:                    2013-04-05
data:    activeDirectoryGraphResourceId:                    https://graph.chinacloudapi.cn/
data:    activeDirectoryResourceId:                         https://management.core.chinacloudapi.cn/
data:    azureDataLakeAnalyticsCatalogAndJobEndpointSuffix: N/A
data:    azureDataLakeStoreFileSystemEndpointSuffix:        N/A
data:    galleryEndpointUrl:                                https://gallery.chinacloudapi.cn/
data:    isPublicEnvironment:                               true
data:    keyVaultDnsSuffix:                                 .vault.azure.cn
data:    managementEndpointUrl:                             https://management.core.chinacloudapi.cn
data:    portalUrl:                                         http://go.microsoft.com/fwlink/?LinkId=301902
data:    publishingProfileUrl:                              http://go.microsoft.com/fwlink/?LinkID=301774
data:    resourceManagerEndpointUrl:                        https://management.chinacloudapi.cn
data:    sqlManagementEndpointUrl:                          https://management.core.chinacloudapi.cn:8443/
data:    sqlServerHostnameSuffix:                           .database.chinacloudapi.cn
data:    storageEndpointSuffix:                             .core.chinacloudapi.cn
info:    account env show command OK
$ azure account env show AzureCloud
info:    Executing command account env show
data:    Name:                                              AzureCloud                                                                                                      
data:    activeDirectoryEndpointUrl:                        https://login.microsoftonline.com                                                                               
data:    activeDirectoryGraphApiVersion:                    2013-04-05                                                                                                      
data:    activeDirectoryGraphResourceId:                    https://graph.windows.net/                                                                                      
data:    activeDirectoryResourceId:                         https://management.core.windows.net/                                                                            
data:    azureDataLakeAnalyticsCatalogAndJobEndpointSuffix: azuredatalakeanalytics.net
data:    azureDataLakeStoreFileSystemEndpointSuffix:        azuredatalakestore.net
data:    galleryEndpointUrl:                                https://gallery.azure.com/
data:    isPublicEnvironment:                               true
data:    keyVaultDnsSuffix:                                 .vault.azure.net
data:    managementEndpointUrl:                             https://management.core.windows.net
data:    portalUrl:                                         http://go.microsoft.com/fwlink/?LinkId=254433
data:    publishingProfileUrl:                              http://go.microsoft.com/fwlink/?LinkId=254432
data:    resourceManagerEndpointUrl:                        https://management.azure.com/
data:    sqlManagementEndpointUrl:                          https://management.core.windows.net:8443/
data:    sqlServerHostnameSuffix:                           .database.windows.net
data:    storageEndpointSuffix:                             .core.windows.net
info:    account env show command OK

Azure CLI did it this way:
https://github.com/Azure/azure-xplat-cli/blob/f261c839e96479c1520287db806926ff66b29a83/lib/util/profile/environment.js

this includes German and USGoverment Cloud and others, probably having a similar configuration and the same names will be useful to make changes going forward


Related issues

Blocks Arvados - Bug #10834: add support to Azure China to nodemanagerResolved01/05/2017Actions
Actions #1

Updated by Nico César over 7 years ago

  • Project changed from 40 to Arvados
Actions #3

Updated by Tom Morris over 7 years ago

  • Assigned To set to Peter Amstutz
  • Target version set to 2017-01-18 sprint
Actions #5

Updated by Nico César over 7 years ago

  • Status changed from New to Resolved

libcloud 0.20.2.dev3-2 implements this

Actions

Also available in: Atom PDF