Repository navigation
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… table Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…y, expiry sweep, keys Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Member
Author
|
Superseded by a smaller pack: #29. This one added an expiry sweep and key handling that were not needed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
First of six PRs for the
azure-labspack (an alternative to Azure Lab Services, simulated with standard Azure VMs; not Microsoft's service). Design:docs/azure-labs-plan.md.What this adds
labagent launch azure-labswith two steps:preflightandnetwork.preflight:azlogin, subscription allow-list (LABAGENT_ALLOWED_AZURE_SUBSCRIPTIONS, empty means refuse), size allow-list, student cap, vCPU quota by family and region (peak of the template phase and the class phase).network: tagged resource grouprg-labagent-azure-labs-<name>, VNet, gateway subnet (443 only), student subnet (22 and 3389 only from the gateway subnet), through an ARM template.labagent destroy azure-labs: deletes only resources that carry this lab's tags, dependants first, then the group only if labagent created it and it is empty. An untagged or differently tagged resource is reported and never deleted.labagent sweep-azure plan | apply --plan F --hash H: expired labs only, plan hash, 24 hour plan age, re-checks tags at apply time, skips images groups.labagent launch --pubkey FILE(orLABAGENT_PUBKEY),labagent secrets keygen | decrypt, and a per-pack passwordkindin the envelope. Passwords are not created yet; the key is required once the publish step lands (PR 3).azCLI. Secrets never go on a command line: ARM parameters use a 0600 temp file that is deleted after. Errors are redacted.Tests
tests/test_azure_labs.py(42 tests, fakeaz).docs/azure-labs-plan.md.az vm list-skusfilters on the client). The pack says so.Resources this PR creates on Azure: one resource group, one VNet, two NSGs. No compute, no public IP.
🤖 Generated with Claude Code