Skip to content
This repository was archived by the owner on Apr 6, 2026. It is now read-only.

Reimplemented Dev Center - Dev Box Definitions using AzAPI#17

Merged
arnaudlh merged 10 commits intomicrosoft:mainfrom
raffertyuy:main
Jun 17, 2025
Merged

Reimplemented Dev Center - Dev Box Definitions using AzAPI#17
arnaudlh merged 10 commits intomicrosoft:mainfrom
raffertyuy:main

Conversation

@raffertyuy
Copy link
Copy Markdown
Contributor

Reimplemented Devbox definitions using azapi. In addition, made the following improvements for copilot prompts:

Also added .github/prompt-snippets/commit-message.md. To use, add the following in vscode settings

  "github.copilot.chat.commitMessageGeneration.instructions": [
    { "file": "./.github/prompt-snippets/commit-message.md"}
  ],
  "github.copilot.chat.pullRequestDescriptionGeneration.instructions": [
    { "file": "./.github/prompt-snippets/commit-message.md"}
  ]

Rafferty Uy added 3 commits May 30, 2025 13:56
- Added .vscode/mcp.json to configure Terraform and Azure MCP servers.
- Updated .gitignore to include .vscode/mcp.json for version control.
@raffertyuy raffertyuy requested review from arnaudlh and Copilot May 30, 2025 16:08
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR reimplements the Dev Center DevBox Definition module to use the AzAPI provider (v2.4.0) and adds richer variable validation, image–reference preprocessing, expanded outputs, and updated documentation/examples. It also moves DevBox prompts into .github/prompts, adds an MCP config in .vscode/mcp.json, and supplies a commit‐message snippet for Copilot.

  • Swapped azurerm_dev_center_dev_box_definition for azapi_resource and added data.azapi_client_config + locals to resolve subscription IDs.
  • Enhanced variables.tf with strong typing and multiple validation blocks.
  • Expanded outputs in output.tf and updated module README/examples to reflect new inputs.

Reviewed Changes

Copilot reviewed 27 out of 27 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
modules/dev_center_dev_box_definition/variables.tf Added object‐typing and validation rules for inputs
modules/dev_center_dev_box_definition/module.tf Replaced resource with azapi_resource, added locals logic
modules/dev_center_dev_box_definition/README.md Updated usage examples; documented new features
.vscode/mcp.json Added VS Code MCP server configuration
.github/prompt-snippets/commit-message.md Added commit‐message instructions for Copilot

Comment thread modules/dev_center_dev_box_definition/README.md
Comment thread modules/dev_center_dev_box_definition/module.tf Outdated
Comment thread modules/dev_center_dev_box_definition/module.tf
raffertyuy and others added 6 commits May 31, 2025 00:13
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Collaborator

@arnaudlh arnaudlh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was there a reason for schema validation to be disabled?

response_export_values = ["properties.provisioningState", "properties.imageReference", "properties.sku"]

# Disable schema validation as the provider validation is overly strict for preview APIs
schema_validation_enabled = false
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
schema_validation_enabled = false
schema_validation_enabled = true

}
}
# Linux development environment
ubuntu_development = {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe comment out while preview?

@arnaudlh arnaudlh self-assigned this Jun 17, 2025
@arnaudlh arnaudlh merged commit 602fa30 into microsoft:main Jun 17, 2025
16 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants