{"id":26400933,"url":"https://github.com/libre-devops/terraform-azurerm-dev-center","last_synced_at":"2025-07-29T10:08:31.254Z","repository":{"id":281415294,"uuid":"863777004","full_name":"libre-devops/terraform-azurerm-dev-center","owner":"libre-devops","description":"A module used to deploy Azure Dev Center","archived":false,"fork":false,"pushed_at":"2025-03-08T22:56:05.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-30T15:44:31.505Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/libre-devops.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-26T22:31:03.000Z","updated_at":"2025-03-08T22:56:07.000Z","dependencies_parsed_at":"2025-03-08T23:26:03.291Z","dependency_job_id":null,"html_url":"https://github.com/libre-devops/terraform-azurerm-dev-center","commit_stats":null,"previous_names":["libre-devops/terraform-azurerm-dev-center"],"tags_count":2,"template":false,"template_full_name":"libre-devops/terraform-module-template","purl":"pkg:github/libre-devops/terraform-azurerm-dev-center","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libre-devops%2Fterraform-azurerm-dev-center","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libre-devops%2Fterraform-azurerm-dev-center/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libre-devops%2Fterraform-azurerm-dev-center/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libre-devops%2Fterraform-azurerm-dev-center/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/libre-devops","download_url":"https://codeload.github.com/libre-devops/terraform-azurerm-dev-center/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libre-devops%2Fterraform-azurerm-dev-center/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267668670,"owners_count":24124966,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-17T14:38:13.537Z","updated_at":"2025-07-29T10:08:31.215Z","avatar_url":"https://github.com/libre-devops.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"```hcl\n# Dev Center Resource\nresource \"azurerm_dev_center\" \"dev_centers\" {\n  for_each            = { for dc in var.dev_centers : dc.name =\u003e dc }\n  location            = each.value.location\n  name                = each.value.name\n  resource_group_name = each.value.rg_name\n  tags                = each.value.tags\n\n  dynamic \"identity\" {\n    for_each = each.value.identity_type == \"SystemAssigned\" ? [each.value.identity_type] : []\n    content {\n      type = each.value.identity_type\n    }\n  }\n\n  dynamic \"identity\" {\n    for_each = each.value.identity_type == \"SystemAssigned, UserAssigned\" ? [each.value.identity_type] : []\n    content {\n      type         = each.value.identity_type\n      identity_ids = try(each.value.identity_ids, [])\n    }\n  }\n\n  dynamic \"identity\" {\n    for_each = each.value.identity_type == \"UserAssigned\" ? [each.value.identity_type] : []\n    content {\n      type         = each.value.identity_type\n      identity_ids = length(try(each.value.identity_ids, [])) \u003e 0 ? each.value.identity_ids : []\n    }\n  }\n}\n\n# Network Connection Resource\nresource \"azurerm_dev_center_network_connection\" \"network_connections\" {\n  for_each = { for dc in var.dev_centers : dc.name =\u003e dc if contains(keys(dc), \"network_connection\") \u0026\u0026 dc.network_connection != null }\n\n  name                = each.value.network_connection.name != null ? each.value.network_connection.name : \"netcon-${each.key}\"\n  resource_group_name = azurerm_dev_center.dev_centers[each.key].resource_group_name\n  location            = azurerm_dev_center.dev_centers[each.key].location\n  domain_join_type    = each.value.network_connection.domain_join_type\n  subnet_id           = each.value.network_connection.subnet_id\n\n  # Optional attributes\n  domain_name       = try(each.value.network_connection.domain_name, null)\n  domain_password   = try(each.value.network_connection.domain_password, null)\n  domain_username   = try(each.value.network_connection.domain_username, null)\n  organization_unit = try(each.value.network_connection.organization_unit, null)\n\n  tags = azurerm_dev_center.dev_centers[each.key].tags\n}\n\n\nresource \"azurerm_dev_center_project\" \"projects\" {\n  for_each = {\n    for dc in var.dev_centers : dc.name =\u003e dc\n    if lookup(dc, \"create_project\", false) == true\n  }\n\n  dev_center_id              = azurerm_dev_center.dev_centers[each.key].id\n  location                   = azurerm_dev_center.dev_centers[each.key].location\n  name                       = each.value.project.name != null ? each.value.project.name : \"proj-${each.key}\"\n  resource_group_name        = azurerm_dev_center.dev_centers[each.key].resource_group_name\n  description                = try(each.value.project.description, \"Default project description for ${each.key}\")\n  maximum_dev_boxes_per_user = try(each.value.project.maximum_dev_boxes_per_user, null)\n  tags                       = try(each.value.project.tags, azurerm_dev_center.dev_centers[each.key].tags)\n}\n```\n## Requirements\n\nNo requirements.\n\n## Providers\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"provider_azurerm\"\u003e\u003c/a\u003e [azurerm](#provider\\_azurerm) | n/a |\n\n## Modules\n\nNo modules.\n\n## Resources\n\n| Name | Type |\n|------|------|\n| [azurerm_dev_center.dev_centers](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/dev_center) | resource |\n| [azurerm_dev_center_network_connection.network_connections](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/dev_center_network_connection) | resource |\n| [azurerm_dev_center_project.projects](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/dev_center_project) | resource |\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| \u003ca name=\"input_dev_centers\"\u003e\u003c/a\u003e [dev\\_centers](#input\\_dev\\_centers) | List of Dev Centers to create, along with optional compute gallery configuration | \u003cpre\u003elist(object({\u003cbr/\u003e    name          = string\u003cbr/\u003e    location      = optional(string, \"uksouth\")\u003cbr/\u003e    rg_name       = string\u003cbr/\u003e    tags          = optional(map(string))\u003cbr/\u003e    identity_type = optional(string)\u003cbr/\u003e    identity_ids  = optional(list(string))\u003cbr/\u003e\u003cbr/\u003e    # Network connection related fields\u003cbr/\u003e    network_connection = optional(object({\u003cbr/\u003e      name              = optional(string)\u003cbr/\u003e      domain_join_type  = optional(string, \"AzureADJoin\")\u003cbr/\u003e      subnet_id         = string\u003cbr/\u003e      domain_name       = optional(string)\u003cbr/\u003e      domain_password   = optional(string)\u003cbr/\u003e      domain_username   = optional(string)\u003cbr/\u003e      organization_unit = optional(string)\u003cbr/\u003e      tags              = optional(map(string))\u003cbr/\u003e    }))\u003cbr/\u003e\u003cbr/\u003e    create_project = optional(bool, false) # Flag to create a Dev Center project\u003cbr/\u003e    project = optional(object({\u003cbr/\u003e      name                       = optional(string)\u003cbr/\u003e      description                = optional(string)\u003cbr/\u003e      maximum_dev_boxes_per_user = optional(number, 0)\u003cbr/\u003e      tags                       = optional(map(string))\u003cbr/\u003e    }))\u003cbr/\u003e  }))\u003c/pre\u003e | n/a | yes |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| \u003ca name=\"output_dev_center_identities\"\u003e\u003c/a\u003e [dev\\_center\\_identities](#output\\_dev\\_center\\_identities) | The identities of the Dev Centers |\n| \u003ca name=\"output_dev_center_ids\"\u003e\u003c/a\u003e [dev\\_center\\_ids](#output\\_dev\\_center\\_ids) | The IDs of the Dev Centers |\n| \u003ca name=\"output_dev_center_names\"\u003e\u003c/a\u003e [dev\\_center\\_names](#output\\_dev\\_center\\_names) | The default name of the Dev Centers |\n| \u003ca name=\"output_dev_center_network_connection_ids\"\u003e\u003c/a\u003e [dev\\_center\\_network\\_connection\\_ids](#output\\_dev\\_center\\_network\\_connection\\_ids) | The IDs of the Dev Center Network Connections |\n| \u003ca name=\"output_dev_center_project_id\"\u003e\u003c/a\u003e [dev\\_center\\_project\\_id](#output\\_dev\\_center\\_project\\_id) | The ID of the created Dev Center Project |\n| \u003ca name=\"output_dev_center_project_location\"\u003e\u003c/a\u003e [dev\\_center\\_project\\_location](#output\\_dev\\_center\\_project\\_location) | The location of the created Dev Center Project |\n| \u003ca name=\"output_dev_center_project_max_dev_boxes\"\u003e\u003c/a\u003e [dev\\_center\\_project\\_max\\_dev\\_boxes](#output\\_dev\\_center\\_project\\_max\\_dev\\_boxes) | The maximum dev boxes per user for the created Dev Center Project |\n| \u003ca name=\"output_dev_center_project_name\"\u003e\u003c/a\u003e [dev\\_center\\_project\\_name](#output\\_dev\\_center\\_project\\_name) | The name of the created Dev Center Project |\n| \u003ca name=\"output_dev_center_project_resource_group\"\u003e\u003c/a\u003e [dev\\_center\\_project\\_resource\\_group](#output\\_dev\\_center\\_project\\_resource\\_group) | The resource group of the created Dev Center Project |\n| \u003ca name=\"output_dev_center_project_uri\"\u003e\u003c/a\u003e [dev\\_center\\_project\\_uri](#output\\_dev\\_center\\_project\\_uri) | The URI of the created Dev Center Project |\n| \u003ca name=\"output_dev_center_tags\"\u003e\u003c/a\u003e [dev\\_center\\_tags](#output\\_dev\\_center\\_tags) | The tags of the Dev Centers |\n| \u003ca name=\"output_dev_center_uri\"\u003e\u003c/a\u003e [dev\\_center\\_uri](#output\\_dev\\_center\\_uri) | The URI of the Dev Centers |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibre-devops%2Fterraform-azurerm-dev-center","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flibre-devops%2Fterraform-azurerm-dev-center","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibre-devops%2Fterraform-azurerm-dev-center/lists"}