Code ready, remember to change the varaibles in the variable files and create...
0747904d
Hector Lopez
committed
9 changed files
main.bicep
/devops/infrascode/coreinfra/main.bicep+42
/devops/infrascode/coreinfra/main.bicep
Add comment 1 Plus  //******************************************************************
Add comment 2 Plus  //INPUT PARAMETERS
Add comment 3 Plus  //******************************************************************
Add comment 4 Plus  param environment string = 'd'
Add comment 5 Plus  param azTenantId string = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
Add comment 6 Plus  param azResourceGroupName string = '<name_of_development_resource_group>'
Add comment 7 Plus  param azResourceGroupLocation string = '<azure_location>'
Add comment 8 Plus  param azDataFactoryName string = 'name_of_company-recenthistory-d-adf-01'
Add comment 9 Plus  param azDataFactoryRootPath string = '/resources/adf'
Add comment 10 Plus  
Add comment 11 Plus  //******************************************************************
Add comment 12 Plus  //VARIABLES
Add comment 13 Plus  //******************************************************************
Add comment 14 Plus  var azDevopsRepoConfiguration = {
Add comment 15 Plus   accountName: '<name_of_azdo_account>'
Add comment 16 Plus   projectName: '<name_of_azdo_project>'
Add comment 17 Plus   repositoryName: '<name_of_azdo_repository>'
Add comment 18 Plus   collaborationBranch: 'main'
Add comment 19 Plus   rootFolder: '${azDataFactoryRootPath}/${azDataFactoryName}'
Add comment 20 Plus   type: 'FactoryVSTSConfiguration'
Add comment 21 Plus   tenantId: azTenantId
Add comment 22 Plus  }
Add comment 23 Plus  
Add comment 24 Plus  //******************************************************************
Add comment 25 Plus  //RESOURCES & MODULES
Add comment 26 Plus  //******************************************************************
Add comment 27 Plus  targetScope = 'subscription'
Add comment 28 Plus  
Add comment 29 Plus  resource resourceGroup 'Microsoft.Resources/resourceGroups@2022-09-01' = {
Add comment 30 Plus   name: azResourceGroupName
Add comment 31 Plus   location: azResourceGroupLocation
Add comment 32 Plus  }
Add comment 33 Plus  
Add comment 34 Plus  module dataFactory '../../../templates/bicep/adf.bicep' = {
Add comment 35 Plus   name: azDataFactoryName
Add comment 36 Plus   scope: resourceGroup
Add comment 37 Plus   params: {
Add comment 38 Plus   dataFactoryName: azDataFactoryName
Add comment 39 Plus   azDevopsRepoConfiguration: (environment == 'd') ? azDevopsRepoConfiguration : null
Add comment 40 Plus   }
Add comment 41 Plus  }
Add comment 42 Plus  
variables-d.yml
/devops/pipelines/coreinfra/variables/variables-d.yml
/devops/pipelines/coreinfra/variables/variables-d.yml
variables-p.yml
/devops/pipelines/coreinfra/variables/variables-p.yml
/devops/pipelines/coreinfra/variables/variables-p.yml
variables.yml
/devops/pipelines/coreinfra/variables/variables.yml
/devops/pipelines/coreinfra/variables/variables.yml
coreinfra-cd-infrascode.yml
/devops/pipelines/coreinfra/coreinfra-cd-infrascode.yml
/devops/pipelines/coreinfra/coreinfra-cd-infrascode.yml
pipeline1.json
/resources/adf/name_of_company-recenthistory-d-adf-01/pipeline/pipeline1.json
/resources/adf/name_of_company-recenthistory-d-adf-01/pipeline/pipeline1.json
package.json
/resources/adf/name_of_company-recenthistory-d-adf-01/package.json
/resources/adf/name_of_company-recenthistory-d-adf-01/package.json
publish_config.json
/resources/adf/name_of_company-recenthistory-d-adf-01/publish_config.json
/resources/adf/name_of_company-recenthistory-d-adf-01/publish_config.json
adf.bicep
/templates/bicep/adf.bicep
/templates/bicep/adf.bicep