Skip to content

Test bicep what if - #2

Closed
halyna1995 wants to merge 2 commits into
HackYourAssignment:mainfrom
halyna1995:test-bicep-what-if
Closed

Test bicep what if#2
halyna1995 wants to merge 2 commits into
HackYourAssignment:mainfrom
halyna1995:test-bicep-what-if

Conversation

@halyna1995

Copy link
Copy Markdown

What I built

  • Bicep entry template: main.bicep (params incl. environment, @secure(), module call, outputs)
  • Storage module: modules/storage.bicep (storage account + nested raw and curated containers, Environment tag)
  • Deploy evidence: docs/deploy_succeeded.txt, docs/what_if.txt, docs/portal_confirm.md
  • Teammate write-up: WRITEUP.md
  • AI usage: AI_ASSIST.md
  • (Optional) extras under docs/optional/

How to review

  • Bicep: read main.bicep and modules/storage.bicep (param / output / @secure() / module / both nested containers).
  • Evidence: docs/deploy_succeeded.txt shows Succeeded; docs/what_if.txt is real CLI output; docs/portal_confirm.md names the account, both containers, and the teardown line.
  • Write-ups: WRITEUP.md and AI_ASSIST.md.

How to run

From a clean clone, with Azure CLI signed into the HYF tenant:

az login --use-device-code --tenant 07a14c4e-d88c-42f7-83b3-13af7e57ff3d
export CLASS_RG=rg-hyf-students   # replace if your teacher gave a different name
az bicep version || az bicep install
bash .hyf/test.sh

Deploy (example: use your own globally unique storage name and never commit the secure value).
This is the post-Task-1 shape; drop environment=dev if you have not added that parameter yet,
because Azure rejects a parameter the template does not declare:

az deployment group create \
  --resource-group "$CLASS_RG" \
  --template-file main.bicep \
  --parameters storageName=<unique-name> environment=dev dbAdminPassword=not-a-real-secret

Prerequisite: you can write into $CLASS_RG with the HYF student IaC role.

What reviewers should see (expected results)

Fill in what your deploy actually produced:

  • Storage account name: <e.g. sthyfjane01>
  • Blob container names: <e.g. raw and curated>
  • provisioningState in docs/deploy_succeeded.txt: <e.g. Succeeded>
  • bash .hyf/test.sh score: <e.g. 100 / 100, pass=true>
  • Teardown: <e.g. deleted account (and nested container) after evidence captured>

Known limitations / out of scope

  • <e.g. optional Airbyte / AI enrichment not attempted>
  • Write "none" if everything in the assignment is done and working.

Self-check

  • bash .hyf/test.sh passes
  • Storage account and both nested blob containers (raw, curated) exist(ed) in $CLASS_RG
  • @secure() present; no credentials / .env / *.parameters.json committed
  • docs/what_if.txt is real CLI output (not a paraphrase)
  • Resources from this assignment were torn down, and docs/portal_confirm.md records it (or documents the blocked delete)

This workflow defines two jobs: 'what-if' for previewing deployments on pull requests and 'deploy' for applying deployments on pushes to the main branch.
@github-actions

github-actions Bot commented Aug 2, 2026

Copy link
Copy Markdown

📝 HackYourFuture auto grade

Assignment Score: 40 / 100 ❌

Status: ❌ Not passed
Minimum score to pass: 60
🧪 The auto grade is experimental and still being improved

Test Details

=== Week 14 Autograder ===
  ✓ PASS  found main.bicep
  ✓ PASS  found modules/storage.bicep
  ✓ PASS  found docs/deploy_succeeded.txt
  ✓ PASS  found docs/what_if.txt
  ✓ PASS  found docs/portal_confirm.md
  ✓ PASS  found WRITEUP.md
  ✓ PASS  found AI_ASSIST.md
  ✓ PASS  found README.md
  ✓ PASS  Level 1: required files (20/20 pts)
  ✓ PASS  main.bicep has an @secure() parameter
  ✓ PASS  main.bicep calls a module
  ✓ PASS  declares a storage account resource
  ✓ PASS  declares a nested blob container resource
  ✗ FAIL  main.bicep missing param environment (Task 1)
  ✗ FAIL  missing Environment tag wiring — pass tags from main into the module (Task 1)
  ✗ FAIL  need a second nested container named curated (keep raw; Task 2)
  ⚠ WARN  only 1 nested container resource(s) — Task 2 expects raw + curated (count >= 2)
  ✓ PASS  Level 2: Bicep baseline + extensions (20/35 pts)
  ✗ FAIL  docs/deploy_succeeded.txt still empty or missing Succeeded/provisioningState
  ✗ FAIL  docs/what_if.txt still looks like the scaffold placeholder
  ✗ FAIL  docs/portal_confirm.md is still the scaffold stub — write 2-3 sentences from the portal
  ✓ PASS  Level 3: deploy evidence (0/25 pts)
  ✗ FAIL  WRITEUP.md is still too short or still the scaffold stub
  ✗ FAIL  AI_ASSIST.md is still too short or still the scaffold stub
  ✓ PASS  Level 4: write-up + AI report (0/20 pts)

Score: 40 / 100  (passing: 60)  pass=false

@halyna1995 halyna1995 closed this Aug 2, 2026
@halyna1995
halyna1995 deleted the test-bicep-what-if branch August 2, 2026 12:51
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.

1 participant