I just cannot create a pool on an azure batch account specifying the useridentity. I want to do this via JSON format.
This is the code I use
{
"properties": {
"displayName": "CoraxDevBatchPool5",
"vmSize": "standard_d1_v2",
"deploymentConfiguration": {
"cloudServiceConfiguration": {
"osFamily": "6",
"osVersion": "*"
}
},
"currentDedicatedNodes": 1,
"currentLowPriorityNodes": 1,
"scaleSettings": {
"fixedScale": {
"targetDedicatedNodes": 1,
"targetLowPriorityNodes": 1,
"resizeTimeout": "PT15M"
}
},
"networkConfiguration": {
"publicIPAddressConfiguration": {
"provision": "BatchManaged"
}
},
"applicationPackages": [
{
"id": "/subscriptions/abcddddd/resourceGroups/globaldevrg/providers/Microsoft.Batch/batchAccounts/coraxdevbatch/applications/BatchDataTransferTrigger",
"version": "dev.16"
}
],
"taskSlotsPerNode": 4,
"taskSchedulingPolicy": {
"nodeFillType": "Pack"
}
},
"identity": {
"principalId": "df4b3e45-615e-aaaa-8651-0fc51ca3266b"
"clientId": "3c1f9b36-b8b5-4131-aaaa-75ab779872b3",
"type": "UserAssigned",
"userAssignedIdentities": { "/subscriptions/40db49dd-aaaa-4b23-96f3-69b1cd019b3f/resourceGroups/globalDevRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/DevBatchAccountToKeyVault": {}
}
}
}
I've tried also without specifying the principalId and clientId params.
I am receiving this error without saying anything specific:
Error code InternalServerError Message Encountered internal server error. Diagnostic information: timestamp '20210616T065455Z', subscription id '40db49dd-73b9-4b23-96f3-69b1cd019b3f', tracking id '041109bf-06e0-440d-9349-6cb029228446', request correlation id '041109bf-06e0-440d-9349-6cb029228446'.