Skip to content

feat(codespace): add Azure CLI devcontainer and az login guide#3

Merged
lassebenni merged 2 commits into
mainfrom
feat/az-cli-codespace
May 13, 2026
Merged

feat(codespace): add Azure CLI devcontainer and az login guide#3
lassebenni merged 2 commits into
mainfrom
feat/az-cli-codespace

Conversation

@lassebenni
Copy link
Copy Markdown
Collaborator

Summary

  • Adds .devcontainer/devcontainer.json — installs the Azure CLI via the devcontainers feature registry, plus Python, Pylance, and Ruff extensions with format-on-save enabled
  • Adds AZURE_LOGIN.md — step-by-step device-code login walkthrough (az login --use-device-code) with troubleshooting for common errors (wrong tenant, missing RBAC role, expired code)

Students who click "Open in Codespaces" can now complete Task 3 (Blob Storage upload) without any local setup from Week 1. The assignment instructions reference AZURE_LOGIN.md directly.

Test plan

  • Open a Codespace from this branch and run az --version — should print a version number
  • Run az login --use-device-code — should prompt with a device code URL
  • Run Task 3a upload commands — should succeed against sthyfstudentsdemo
  • Confirm Ruff and Python extensions are active in the Codespace editor

🤖 Generated with Claude Code

Students opening the assignment in GitHub Codespaces now get the Azure CLI
pre-installed via the devcontainer features spec. AZURE_LOGIN.md provides
a step-by-step device-code login walkthrough and troubleshooting tips for
Task 3 (Blob Storage upload), removing the dependency on Week 1 local setup.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown

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

Adds Codespaces support for Week 2 by provisioning Azure CLI in the devcontainer and providing a step-by-step Azure login guide intended to help students complete Task 3 (Blob Storage upload) without local setup.

Changes:

  • Added AZURE_LOGIN.md with az login --use-device-code walkthrough and troubleshooting tips.
  • Updated .devcontainer/devcontainer.json to install Azure CLI via devcontainer features and configure Python/Ruff VS Code extensions + format-on-save.
  • Simplified postCreateCommand to install Task 1 Python dependencies.

Reviewed changes

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

File Description
AZURE_LOGIN.md New documentation for authenticating to Azure (device code flow + troubleshooting).
.devcontainer/devcontainer.json Adds Azure CLI feature and updates editor/dev setup for Codespaces.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .devcontainer/devcontainer.json Outdated
Comment thread AZURE_LOGIN.md
- Match python3 -m pip convention used in README and .hyf/test.sh
- Add AZURE_LOGIN.md reference to Task 3 row in README so students
  landing directly in the repo can find the login instructions
@lassebenni lassebenni merged commit 940becd into main May 13, 2026
@lassebenni lassebenni deleted the feat/az-cli-codespace branch May 13, 2026 19:24
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