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 creating devbox resources #23367

Closed
1 task done
webstean opened this issue Sep 24, 2023 · 9 comments · Fixed by #26291
Closed
1 task done

Support for creating devbox resources #23367

webstean opened this issue Sep 24, 2023 · 9 comments · Fixed by #26291

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 "+1" or "me too" comments, 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

Support for creating:-

devbox devcenteres
devbox projects
devbox definitions
devbox environment
devbox catalogs

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

azurerm_devbox

Potential Terraform Configuration

resource "azurerm_resource_group" "example" {

  name     = "devbox-example"
  location = "australiaeast"
  tags = { environment = "dev" }
}

resource "azurerm_devbox_devcenter" "example" {
  name                = "devcenter-example"
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name
  identity {
    type = "SystemAssigned"
  }
  tags = { environment = "dev" }
}

resource "azurerm_devbox_project" "example" {
  name                = "devproject-example"
  description         = "devproject example"   
  resource_group_name = azurerm_resource_group.example.name
  devcenter_id        = azurerm_devbox_devcenter.id
  dev_box_limits_enabled = true
  dev_box_per_developer = 2
  tags = { environment = "dev" }
}

resource "azurerm_devbox_definition" "example" {
  name                = "devproject-example"
  resource_group_name = azurerm_resource_group.example.name

  image {
    image               = "Windows 11 Enterprise + Developer Optimizations 22H2"
    version             = "latest"
    publisher           = "microsoft/visualstudio"
  }
  compute = "8 vCPU, 32GB RAM"
  storage = 256 GB SSD"
  hibernation_enable = true
}

resource "azurerm_devbox_environment" "example" {
  name                = "development-example"
  tags = { environment = "dev" }
}

resource "azurerm_devbox_catalog" "example" {
  name                = "catalog-example"

  repository_url = "https://github.com/example/example"
  source_control_type = "GitHub"
  branch              = "main"
  folder_path           = "devbox"
  secret_url            = "https://demp-devcenter--keyvault.vault.azure.net/secrets/secrets/pat"
}

References

No response

@rcskosir
Copy link
Contributor

@webstean Thank you for taking the time to open this feature request!

@damienaicheh
Copy link

Hi @rcskosir I saw that the Dev Center was added to the provider with the #22592 issue which is really great, do you have an idea about when this related feature will be completed? Thanks!

@webstean
Copy link
Author

Added with #22592
devbox devcenteres
devbox projects

To be done:-
devbox definitions
devbox environment
devbox catalogs

would be a great start :-)

@damienaicheh

This comment was marked as off-topic.

@dan-dimitrov

This comment was marked as off-topic.

@dan-dimitrov
Copy link

@stephybun it appears that only environment type is supported.
We're still missing support for the following it appears...

  • devbox devcenteres
  • devbox projects
  • devbox definitions
  • devbox environment
  • devbox catalogs

@stephybun
Copy link
Member

I believe these will all be available in the next release:

Available now:
dev center: #23538
projects: #23538
catalogs: #24833

Available in next minor release:
definitions: #26307
environment: #26291

@dan-dimitrov
Copy link

Thank you for confirming @stephybun :)

Copy link

github-actions bot commented Aug 9, 2024

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants