You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| <aname="input_key_vault_name"></a> [key\_vault\_name](#input\_key\_vault\_name)| Name of the Key Vault to store the Azure DevOps PAT |`string`| n/a | yes |
89
+
| <aname="input_location"></a> [location](#input\_location)| Azure region for resources |`string`|`"West Europe"`| no |
90
+
| <aname="input_resource_group_name"></a> [resource\_group\_name](#input\_resource\_group\_name)| Resource group name for the Key Vault |`string`| n/a | yes |
91
+
| <aname="input_scope"></a> [scope](#input\_scope)| Azure scope for role definitions (subscription or management group) |`string`| n/a | yes |
92
+
| <aname="input_service_principal_name"></a> [service\_principal\_name](#input\_service\_principal\_name)| Name for the Azure DevOps service principal |`string`|`"azure-devops-terraform"`| no |
| <aname="output_key_vault_id"></a> [key\_vault\_id](#output\_key\_vault\_id)| ID of the Key Vault for storing Azure DevOps PAT |
100
+
| <aname="output_key_vault_name"></a> [key\_vault\_name](#output\_key\_vault\_name)| Name of the Key Vault for storing Azure DevOps PAT |
101
+
| <aname="output_key_vault_uri"></a> [key\_vault\_uri](#output\_key\_vault\_uri)| URI of the Key Vault for storing Azure DevOps PAT |
102
+
| <aname="output_resource_group_name"></a> [resource\_group\_name](#output\_resource\_group\_name)| Name of the resource group containing the Key Vault |
103
+
| <aname="output_service_principal_client_id"></a> [service\_principal\_client\_id](#output\_service\_principal\_client\_id)| Client ID of the Azure DevOps service principal |
104
+
| <aname="output_service_principal_object_id"></a> [service\_principal\_object\_id](#output\_service\_principal\_object\_id)| Object ID of the Azure DevOps service principal |
| <a name="input_branch_name"></a> [branch\_name](#input\_branch\_name) | Default branch for the pipeline | `string` | `"refs/heads/main"` | no |
216
+
| <a name="input_key_vault_name"></a> [key\_vault\_name](#input\_key\_vault\_name) | Name of the Key Vault containing the Azure DevOps PAT | `string` | n/a | yes |
217
+
| <a name="input_pat_secret_name"></a> [pat\_secret\_name](#input\_pat\_secret\_name) | Name of the secret in Key Vault that contains the Azure DevOps PAT | `string` | `"azdo-pat"` | no |
218
+
| <a name="input_pipeline_name"></a> [pipeline\_name](#input\_pipeline\_name) | Name of the pipeline to create | `string` | n/a | yes |
219
+
| <a name="input_pipeline_variables"></a> [pipeline\_variables](#input\_pipeline\_variables) | List of pipeline variables to create | <pre>list(object({<br> name = string<br> value = string<br> is_secret = optional(bool, false)<br> allow_override = optional(bool, true)<br> }))</pre> | `[]` | no |
220
+
| <a name="input_project_id"></a> [project\_id](#input\_project\_id) | Azure DevOps Project ID where the pipeline will be created | `string` | n/a | yes |
221
+
| <a name="input_repository_id"></a> [repository\_id](#input\_repository\_id) | Repository ID or name where the pipeline YAML file is located | `string` | n/a | yes |
222
+
| <a name="input_repository_type"></a> [repository\_type](#input\_repository\_type) | Type of repository. Options: TfsGit, GitHub, GitHubEnterprise, Bitbucket | `string` | `"TfsGit"` | no |
223
+
| <a name="input_resource_group_name"></a> [resource\_group\_name](#input\_resource\_group\_name) | Name of the resource group containing the Key Vault | `string` | n/a | yes |
224
+
| <a name="input_variable_group_ids"></a> [variable\_group\_ids](#input\_variable\_group\_ids) | List of variable group IDs to link to this pipeline | `list(number)` | `[]` | no |
225
+
| <a name="input_yaml_path"></a> [yaml\_path](#input\_yaml\_path) | Path to the YAML pipeline definition file in the repository | `string` | `"azure-pipelines.yml"` | no |
226
+
227
+
## Outputs
228
+
229
+
| Name | Description |
230
+
|------|-------------|
231
+
| <a name="output_pipeline_id"></a> [pipeline\_id](#output\_pipeline\_id) | ID of the created pipeline |
232
+
| <a name="output_pipeline_name"></a> [pipeline\_name](#output\_pipeline\_name) | Name of the created pipeline |
233
+
| <a name="output_pipeline_revision"></a> [pipeline\_revision](#output\_pipeline\_revision) | Revision number of the pipeline |
234
+
| <a name="output_project_id"></a> [project\_id](#output\_project\_id) | Project ID where the pipeline was created |
235
+
| <a name="output_repository_id"></a> [repository\_id](#output\_repository\_id) | Repository ID linked to the pipeline |
236
+
| <a name="output_yaml_path"></a> [yaml\_path](#output\_yaml\_path) | Path to the YAML pipeline definition |
| <aname="input_key_vault_name"></a> [key\_vault\_name](#input\_key\_vault\_name)| Name of the Key Vault to store the Azure DevOps PAT |`string`| n/a | yes |
89
+
| <aname="input_location"></a> [location](#input\_location)| Azure region for resources |`string`|`"West Europe"`| no |
90
+
| <aname="input_resource_group_name"></a> [resource\_group\_name](#input\_resource\_group\_name)| Resource group name for the Key Vault |`string`| n/a | yes |
91
+
| <aname="input_scope"></a> [scope](#input\_scope)| Azure scope for role definitions (subscription or management group) |`string`| n/a | yes |
92
+
| <aname="input_service_principal_name"></a> [service\_principal\_name](#input\_service\_principal\_name)| Name for the Azure DevOps service principal |`string`|`"azure-devops-terraform"`| no |
| <aname="output_key_vault_id"></a> [key\_vault\_id](#output\_key\_vault\_id)| ID of the Key Vault for storing Azure DevOps PAT |
100
+
| <aname="output_key_vault_name"></a> [key\_vault\_name](#output\_key\_vault\_name)| Name of the Key Vault for storing Azure DevOps PAT |
101
+
| <aname="output_key_vault_uri"></a> [key\_vault\_uri](#output\_key\_vault\_uri)| URI of the Key Vault for storing Azure DevOps PAT |
102
+
| <aname="output_resource_group_name"></a> [resource\_group\_name](#output\_resource\_group\_name)| Name of the resource group containing the Key Vault |
103
+
| <aname="output_service_principal_client_id"></a> [service\_principal\_client\_id](#output\_service\_principal\_client\_id)| Client ID of the Azure DevOps service principal |
104
+
| <aname="output_service_principal_object_id"></a> [service\_principal\_object\_id](#output\_service\_principal\_object\_id)| Object ID of the Azure DevOps service principal |
|[azurerm_key_vault.devops](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/key_vault)| data source |
118
+
|[azurerm_key_vault_secret.azure_devops_pat](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/key_vault_secret)| data source |
119
+
120
+
## Inputs
121
+
122
+
| Name | Description | Type | Default | Required |
| <aname="input_enable_branch_policies"></a> [enable\_branch\_policies](#input\_enable\_branch\_policies)| Enable branch protection policies on the default branch |`bool`|`true`| no |
126
+
| <aname="input_init_type"></a> [init\_type](#input\_init\_type)| Type of repository initialization. Options: Clean, Import, Uninitialized |`string`|`"Clean"`| no |
127
+
| <aname="input_key_vault_name"></a> [key\_vault\_name](#input\_key\_vault\_name)| Name of the Key Vault containing the Azure DevOps PAT |`string`| n/a | yes |
128
+
| <aname="input_minimum_reviewers"></a> [minimum\_reviewers](#input\_minimum\_reviewers)| Minimum number of reviewers required for pull requests |`number`|`2`| no |
129
+
| <aname="input_pat_secret_name"></a> [pat\_secret\_name](#input\_pat\_secret\_name)| Name of the secret in Key Vault that contains the Azure DevOps PAT |`string`|`"azdo-pat"`| no |
130
+
| <aname="input_project_id"></a> [project\_id](#input\_project\_id)| Azure DevOps Project ID where the repository will be created |`string`| n/a | yes |
131
+
| <aname="input_repository_name"></a> [repository\_name](#input\_repository\_name)| Name of the Git repository to create |`string`| n/a | yes |
132
+
| <aname="input_resource_group_name"></a> [resource\_group\_name](#input\_resource\_group\_name)| Name of the resource group containing the Key Vault |`string`| n/a | yes |
133
+
134
+
## Outputs
135
+
136
+
| Name | Description |
137
+
|------|-------------|
138
+
| <aname="output_branch_policies_enabled"></a> [branch\_policies\_enabled](#output\_branch\_policies\_enabled)| Whether branch policies are enabled |
139
+
| <aname="output_default_branch"></a> [default\_branch](#output\_default\_branch)| Default branch of the repository |
140
+
| <aname="output_repository_id"></a> [repository\_id](#output\_repository\_id)| ID of the created repository |
141
+
| <aname="output_repository_name"></a> [repository\_name](#output\_repository\_name)| Name of the created repository |
142
+
| <aname="output_repository_url"></a> [repository\_url](#output\_repository\_url)| URL of the created repository |
143
+
| <aname="output_ssh_url"></a> [ssh\_url](#output\_ssh\_url)| SSH URL of the repository |
144
+
| <aname="output_web_url"></a> [web\_url](#output\_web\_url)| Web URL of the repository |
0 commit comments