Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Latest commit

 

History

History
46 lines (37 loc) · 1.58 KB

03-national-clouds.md

File metadata and controls

46 lines (37 loc) · 1.58 KB

Configuration for national clouds

doAzureParallel is configured to run in public Azure cloud by default. To run workloads in national clouds, configure endpoint suffix for storage account in the cluster config which tells doAzureParallel which national cloud environment the storage account resides.

EndpointSuffix is the last part of the connection string shown in the Storage Account Access keys blade from Azure portal. The possible values usually are:

Azure Environment Storage Endpoint Suffix
Public core.windows.net
China core.chinacloudapi.cn
German core.cloudapi.de
US Government core.usgovcloudapi.net

The value may be different if a DNS redirect is used, so it is better to double check its value on Storage Account Access keys blade.

In national clouds, you will also need to change Azure environment in the setCredentials function. The possible values are:

  • Azure
  • AzureChina
  • AzureGermany
  • AzureUSGov
# Sets credentials to authenticate with US Government national cloud
setCredentials("credentials.json", environment = "AzureUSGov")

Below is a sample of credential config with endpoint suffix specified:

{ 
  "sharedKey": {
    "batchAccount": {
      "name": <Azure Batch Account Name>,
      "key": <Azure Batch Account Key>,
      "url": <Azure Batch Account URL>
    },
    "storageAccount": {
      "name": <Azure Storage Account Name>,
      "key": <Azure Storage Account Key>,
      "endpointSuffix": <Azure Storage Account Endpoint Suffix>
    }
  },
  "githubAuthenticationToken": {}
}