Skip to content

Commit

Permalink
If applied, this commit adds devops terraform module that takes creat…
Browse files Browse the repository at this point in the history
…es azure devops project and repository.

    Signed-off-by: Dipti Pai <[email protected]>
  • Loading branch information
dipti-pai committed Aug 27, 2024
1 parent 019a68c commit a811922
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion tf-modules/azure/devops/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,27 @@
# DevOps Module

Configuration in this directory creates an Azure DevOps Project and repository.
Configuration in this directory creates an Azure DevOps Project and repository.

## Usage

Legacy shared modules with their own provider configurations are not compatible
with new features like for_each, count and depends_on as described
[here](https://developer.hashicorp.com/terraform/language/modules/develop/providers#legacy-shared-modules-with-provider-configurations).
To use these features by passing provider configuration to the legacy module,
create version.tf file with the following content -

```hcl
terraform {
required_providers {
azuredevops = {
source = "microsoft/azuredevops"
}
}
}
```

In main.tf, create the provider configuration and pass it to the devops module.

```hcl
provider "azuredevops" {
org_service_url = "https://dev.azure.com/azuredevops_org"
Expand All @@ -20,3 +38,5 @@ module "devops" {
repository_name = local.repo_name
}
```


0 comments on commit a811922

Please sign in to comment.