Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Managed Identity with the azurerm_dev_center_project resource #28305

Open
1 task done
webstean opened this issue Dec 17, 2024 · 0 comments
Open
1 task done

Comments

@webstean
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave comments along the lines of "+1", "me too" or "any updates", they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.

Description

DevCenter projects really need a Managed Identity to be able to operate properly, so this needs to be added.
In the interim, you can use azapi
`resource "azapi_update_resource" "projects" {
for_each = azurerm_dev_center_project.projects

type = "Microsoft.DevCenter/projects@2024-10-01-preview"
name = each.value.name
parent_id = azurerm_dev_center.devcenter[var.default_region].id ## resource group
body = {
identity = {
type = "UserAssigned"
userAssignedIdentities = [
azurerm_user_assigned_identity.id-project[each.key].id,
]
}
}
`

New or Affected Resource(s)/Data Source(s)

azurerm_dev_center_project

Potential Terraform Configuration

resource "azurerm_dev_center_project" "projects" {

  name                       = "example"
  description                = "description"
  maximum_dev_boxes_per_user = 1

  resource_group_name = azurerm_dev_center.devcenter.resource_group_name
  location            = azurerm_dev_center.devcenter.location
  dev_center_id       = azurerm_dev_center.devcenter.id
  identity {
     type = "SystemAssigned, UserAssigned"
     identity_ids = [
        azurerm_user_assigned_identity.id-project[each.key].id
     ]
  }

  tags = azurerm_dev_center.devcenter.tags
}

References

Bicep documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants