使用服务主体身份验证的Azure DevOps组织设置

时间:2018-10-04 10:17:39

标签: azure azure-devops

我们当前在通过Azure资源管理器配置Azure DevOps Organization的新实例时遇到麻烦。通过服务主体(而不是通常的UserName / Password方法)进行身份验证可以轻松地重新创建该问题。

以下是部署日志的示例:

{
  "id": "/subscriptions/xxxxxx-xxxx-xxxx-9376-b617b567fe22/resourceGroups/test-vsts1/providers/Microsoft.Resources/deployments/vstsdeploy27288473b25",
  "name": "vstsdeploy27288473b25",
  "properties": {
    "templateHash": "8092936563224948519",
    "parameters": {
      "accountName": {
        "type": "String",
        "value": "testdevopsorly"
      },
      "projectName": {
        "type": "String",
        "value": "test-project"
      },
      "processTemplateId": {
        "type": "String",
        "value": "6B724908-EF14-45CF-84F8-768B5384DA45"
      },
      "versionControlOption": {
        "type": "String",
        "value": "Git"
      },
      "location": {
        "type": "String",
        "value": "centralus"
      }
    },
    "mode": "Incremental",
    "provisioningState": "Failed",
    "timestamp": "2018-10-03T03:36:06.6554176Z",
    "duration": "PT17.5126641S",
    "correlationId": "f8a75bad-0473-4392-a07f-4a19b926aa8c",
    "providers": [
      {
        "namespace": "microsoft.visualstudio",
        "resourceTypes": [
          {
            "resourceType": "account",
            "locations": [
              "centralus"
            ]
          },
          {
            "resourceType": "account/project",
            "locations": [
              "centralus"
            ]
          }
        ]
      }
    ],
    "dependencies": [
      {
        "dependsOn": [
          {
            "id": "/subscriptions/faf867db-570a-4da1-9376-b617b567fe22/resourceGroups/test-vsts1/providers/microsoft.visualstudio/account/testdevopsorly",
            "resourceType": "microsoft.visualstudio/account",
            "resourceName": "testdevopsorly"
          }
        ],
        "id": "/subscriptions/faf867db-570a-4da1-9376-b617b567fe22/resourceGroups/test-vsts1/providers/microsoft.visualstudio/account/testdevopsorly/project/test-project",
        "resourceType": "microsoft.visualstudio/account/project",
        "resourceName": "testdevopsorly/test-project"
      }
    ],
    "error": {
      "code": "DeploymentFailed",
      "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details.",
      "details": [
        {
          "code": "BadRequest",
          "message": "{\r\n  \"code\": \"BadArgument\",\r\n  \"message\": \"The string must have at least one character.\\r\\nParameter name: accountName\",\r\n  \"target\": \"LegacyGetOrCreateBindPendingIdentity\"\r\n}"
        }
      ]
    }
  }
}

在此问题上的任何帮助都将受到赞赏。谢谢!

0 个答案:

没有答案