根据您提供的问题描述,我理解您想要解决的问题是如何修改ADF v2的发布更改将所有工件都列为“新建”的行为,而不是只修改2个流水线。以下是一种可能的解决方法:
{
"type": "Microsoft.DataFactory/factories",
"name": "[parameters('factoryName')]",
"apiVersion": "2018-06-01",
"location": "[parameters('location')]",
"identity": {
"type": "SystemAssigned"
},
"properties": {
"gitConfiguration": {
"repositoryUrl": "[parameters('repositoryUrl')]",
"rootFolder": "[parameters('rootFolder')]",
"branch": "[parameters('branch')]",
"publishBranch": "[parameters('publishBranch')]",
"lastCommitId": "",
"factoryObjectId": ""
},
"dataLakeStoreProperties": {
"suffix": "[parameters('dataLakeStoreSuffix')]"
},
"publicNetworkAccess": "Enabled",
"vstsConfiguration": {
"accountName": "[parameters('vstsAccountName')]",
"projectId": "[parameters('vstsProjectId')]",
"gitRepoId": "[parameters('vstsGitRepoId')]",
"rootFolder": "[parameters('vstsRootFolder')]",
"branch": "[parameters('vstsBranch')]",
"publishBranch": "[parameters('vstsPublishBranch')]",
"projectName": "[parameters('vstsProjectName')]"
},
"globalParameters": {},
"encryption": {
"type": "Managed",
"keyVaultBaseUrl": "[parameters('keyVaultBaseUrl')]",
"keyVaultKeyVersion": "[parameters('keyVaultKeyVersion')]"
},
"annotations": [],
"createAllWorkers": true,
"upgradeTillVersion": "2.0.0.0",
"enablePricingTier": true,
"vstsAccessToken": {
"type": "SecureString",
"value": "[parameters('vstsAccessToken')]"
},
"publishArmTemplates": false,
"vstsLinkedServiceName": "[parameters('vstsLinkedServiceName')]",
"vstsRepositories": [
{
"repositoryName": "[parameters('vstsRepoName')]",
"rootFolder": "[parameters('vstsRootFolder')]",
"branch": "[parameters('vstsBranch')]",
"publishBranch": "[parameters('vstsPublishBranch')]",
"projectName": "[parameters('vstsProjectName')]"
}
],
"vstsPublishCommitId": "",
"vstsPublishRepositoryId": ""
}
}
在上述代码中,我们可以看到"vstsRepositories"
属性是一个数组,可以添加多个VSTS仓库。您可以根据您的需求将所有工件都列为“新建”添加到该数组中的每个仓库。
请注意,这只是一种可能的解决方法,具体的实施方式可能会因您的具体需求和环境而有所不同。请根据您的实际情况进行相应的调整和修改。