Azure / Azure/bicep

Add support for azure devops resources (project/repo/build)

Open
#7,274 1 comment 22 reactions 0 assignees View on GitHub
enhancement story: extensibility
Dominant language
Bicep
Stars
3.6k
Forks
830
Avg merge
1d 21m
Merged PRs (30d)
79

Description

Issues:
Im working on automating creation of CI/CD environments in AzureDevops and looking at using Terraform's [azuredevops](https://registry.terraform.io/providers/microsoft/azuredevops/latest/docs) provider. This is a great solution but has limitation; For example there isn't support to create pipelines. Bicep supports azure devops pipelines, but nothing else (as far as I can tell). To accomplish what I want I'll have to use a mix of tools (Terraform/Bicep/REST API) and it will be complicated.

Proposed Solution:
Add arm template and bicep support to cover AzureDevops resource creation (Projects, Git Repo, Build, Pipelines). This will simplify similar solutions by consolidating work into one tool (bicep).

------====Example config====--------
```bicep
resource my_project 'Microsoft.DevOps/project' {
name: 'My Awesome Project'
description: 'All of my awesomee things'
}

resource my_git_repo 'Microsoft.DevOps/repository' {
project_id: my_project.id
name: 'My Awesome Repo'
initialization: {
init_type: 'Clean'
}
}

resource my_build_def 'Microsoft.DevOps/build_definition' {
project_id: my_project.id
name: 'My Awesome Build Pipeline'
path: '\\'

repository: {
repo_type: 'TfsGit'
repo_id: my_git_repo.id
branch_name: my_git_repo.default_branch
yml_path: 'azure-pipelines.yml'
}
}
```

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are named in the issue. Start by surveying how Bicep models existing Azure resources and reviewing the Azure DevOps resources proposed here; done means support for creating projects, Git repositories, build definitions, and pipelines through ARM/Bicep.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
cloud, devops
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.