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 Enabling per Project Level Catalog Sync #28361

Open
1 task done
raykao opened this issue Dec 20, 2024 · 0 comments
Open
1 task done

Support for Enabling per Project Level Catalog Sync #28361

raykao opened this issue Dec 20, 2024 · 0 comments

Comments

@raykao
Copy link
Contributor

raykao commented Dec 20, 2024

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

Add support to Dev Center Resource, to support/enable the per project level catalog sync ability, which would allow Projects to have their own catalogs rather than only inheriting from the Dev Center top level/global catalog.

Can currently be done via ```azapi`` provider:

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.DevCenter/devcenters@2024-10-01-preview"
  name = "string"
  identity = {
    type = "string"
    userAssignedIdentities = {
      {customized property} = {
      }
    }
  }
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = jsonencode({
    properties = {
      devBoxProvisioningSettings = {
        installAzureMonitorAgentEnableStatus = "string"
      }
      displayName = "string"
      encryption = {
        customerManagedKeyEncryption = {
          keyEncryptionKeyIdentity = {
            delegatedIdentityClientId = "string"
            identityType = "string"
            userAssignedIdentityResourceId = "string"
          }
          keyEncryptionKeyUrl = "string"
        }
      }
      networkSettings = {
        microsoftHostedNetworkEnableStatus = "string"
      }
      planId = "string"
      projectCatalogSettings = {
        catalogItemSyncEnableStatus = "string"
      }
      restrictedResourceTypes = [
        "string"
      ]
    }
  })
}

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

azurerm_dev_center

Potential Terraform Configuration

resource "azurerm_dev_center" "example" {
  location            = azurerm_resource_group.example.location
  name                = "example"
  resource_group_name = azurerm_resource_group.example.name

  # Boolean where default is false (current behaviour) - Note ARM API expects "Disabled"/"Enabled" as the values
  project_catalogs_enabled = true
}

References

Azure Dev Center Template Docs

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