-
Notifications
You must be signed in to change notification settings - Fork 1.8k
PipelineBootstrapConfigurations #155
Description
I am trying to create a new Azure DevOps project with bringing your own template concept. I could successfully create the DevOps project, but CI/CD is referencing where I have my reference (some common repository) sample application. I would like to get the reference solution from my common repository and push to the newly created project’s repository. Is it possible?
Here is the template I used:
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/Microsoft.Resources.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"projectSettings": {
"type": "Object"
},
"azureAuth": {
"type": "SecureString"
}
},
"variables": {},
"resources": [
{
"type": "microsoft.visualstudio/account",
"name": "[parameters('projectSettings').accountName]",
"apiVersion": "2014-02-26",
"location": "[parameters('projectSettings').accountLocation]",
"properties": {
"operationType": "[parameters('projectSettings').accountOperationType]",
"accountName": "[parameters('projectSettings').accountName]",
"ownerUpn": "[parameters('projectSettings').ownerUpn]"
},
"resources": [
{
"type": "project",
"name": "[parameters('projectSettings').projectName]",
"apiVersion": "2014-02-26",
"location": "[parameters('projectSettings').accountLocation]",
"properties": {
"ProcessTemplateId": "[parameters('projectSettings').processTemplateId]",
"VersionControlOption": "[parameters('projectSettings').versionControlOption]",
"ownerUpn": "[parameters('projectSettings').ownerUpn]",
"PipelineBootstrapConfigurations": [
{
"name": "[parameters('projectSettings').projectName]",
"templateId": "ms.vss-continuous-delivery-pipeline-templates.aspnetcore-windowswebapp-byoc",
"templateParameters": {
"subscriptionId": "862fc568--4e94-9c80-a0a647**",
"resourceGroup": "devops-byoc-rg",
"webAppName": " devops-byoc",
"location": "East US",
"appServicePlan": "S1 Standard",
"appInsightLocation": "South Central US",
"azureAuth": "[parameters('azureAuth')]"
},
"repository": {
"repositoryType": "Git",
"id": "https://portal-@dev.azure.com//Portal/_git/arm",
"defaultBranch": "master",
"authorization": {
"authorizationType": "basic",
"parameters": {
"userName": "***",
"userPassword": "*******"
}
}
}
}
]
},
"dependsOn": [
"[concat('microsoft.visualstudio/account/', parameters('projectSettings').accountName)]"
]
}
]
}
]
}