0

我只是无法在指定用户身份的天蓝色批处理帐户上创建池。我想通过 JSON 格式做到这一点。

这是我使用的代码

{
    "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": {}            
        }
    }
}

我也尝试过没有指定 principalId 和 clientId 参数。

我收到此错误,但没有说明任何具体内容:

错误代码 InternalServerError 消息 遇到内部服务器错误。诊断信息:TIMESTAMP'20210616T065455Z',订阅ID'40DB49DD-73B9-4B23-96F3-69B1CD019B3F',跟踪ID'041109BF-F-F-4440D4444444444444444444444444444444444444444444444444444444444444444444444.NEL44444444441B0444441B0B0B0B04转.

4

1 回答 1

1

Microsoft Q&A上,这个问题已经得到解答。

有关 cloudServiceConfiguration 文档,请阅读此处

于 2021-07-12T05:55:50.980 回答