Skip to content

Add dev container for Codespaces support#27

Merged
achandmsft merged 2 commits into
Azure-Samples:mainfrom
pamelafox:pamelachanges
May 29, 2026
Merged

Add dev container for Codespaces support#27
achandmsft merged 2 commits into
Azure-Samples:mainfrom
pamelafox:pamelachanges

Conversation

@pamelafox
Copy link
Copy Markdown
Collaborator

What

Add a dev container so the repo opens cleanly in GitHub Codespaces / VS Code Dev Containers with az, azd, and Python preinstalled.

Why

Lets new users try the starter kit without installing the Azure CLI, Azure Developer CLI, or Python toolchain locally — one click "Open in Codespaces" and azd up works.

How

Adds devcontainer.json based on the mcr.microsoft.com/devcontainers/python:3.13-bookworm image with:

  • azure-cli and azure-dev/azd dev container features
  • VS Code extensions: ms-azuretools.azure-dev, ms-azuretools.vscode-bicep, ms-python.python

Verification

Built and opened the dev container; az, azd, and python3 are on PATH. No infra or runtime code changed.

  • azd up succeeded end-to-end on a fresh env (Bicep)
  • azd up succeeded end-to-end on a fresh env (Terraform)
  • python src/hello_claude.py returned a live model response
  • N/A — docs-only / CI-only change

Checklist

  • Mirrored the change across both infra-bicep and infra-terraform (if applicable) — N/A, no IaC changes
  • No secrets / subscription IDs / tenant IDs / object IDs in commits, comments, or PR body
  • README updated if user-facing behavior changed — N/A
  • Conventional one logical change per PR

@pamelafox pamelafox requested a review from achandmsft as a code owner May 29, 2026 23:02
@achandmsft achandmsft merged commit 2a09bfc into Azure-Samples:main May 29, 2026
5 checks passed
achandmsft added a commit that referenced this pull request May 29, 2026
#30)

PR #27 added .devcontainer/devcontainer.json but didn't update the README. Add a top-of-readme badge row (GitHub Codespaces + VS Code Dev Containers), mention the dev container as a no-install alternative in Prerequisites, link to it from the Quickstart heading, and add a dedicated 'Quickstart in Codespaces' subsection with the full four-step flow (badge, az login --use-device-code, azd env new, azd up). Pure docs, no code changes.

Co-authored-by: Arun Sekhar <achand@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants