Open zerweck opened 5 years ago
Hi @zerweck
Are you using an older version of the credentials configuration file?
Thanks, Brian
Hi @brnleehng No, I just ran the 'Getting Started script' 2 days ago from the Azure Shell. The JSON that the Batch Explorer gives me also has the structure for Shared Key authentication like this:
{
"batchAccount": {
"name": "asd",
"key": "xxx",
"url": "https://asd.batch.azure.com"
},
"storageAccount": {
"name": "asd",
"key": "xxx",
"endpointSuffix": "core.windows.net"
},
"githubAuthenticationToken": {}
}
Since this file is parsed via fromJSON
in the given example, no list object sharedKeys
is needed to subselect the storage account parameters.
If have now identified the following two sources for the version of the credentials.json without the sharedKeys object:
The only place where it is created with the sharedKeys
object is doAzureParallel::generateCredentialsConfig
. I am now wondering if the version without sharedKeys is outdated or the generateCredentialsConfig is non-standard.
This appears the set up script is outdated. The config file should include sharedKeys property to support our AAD credentials.
I'll take a look on adding the fix.
Thanks, Brian
The
sharedKeys
object is not necessary to select thestorageAccount
object. Also, thestorageAccountName
is already an object in this script, but was referred as a string.