feat: default azlin new to private/bastion (no public IP)#966
Merged
Conversation
VMs created with 'azlin new' are now private by default and route through Azure Bastion, matching the Python CLI behavior. - Add --public flag to opt into public IP creation - --no-bastion also opts into public IP (unchanged behavior) - --private is kept as a hidden backward-compat flag (now a no-op) - Update validation: --private conflicts with --public/--no-bastion Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Add pr-966-bastion-default.yaml scenario: validates --public flag, --private hidden compat, help text, and bastion-only default - Update new-command-parity.yaml: check --public instead of --private (--private is now hidden) - Fix parity_tests.rs: workspace default is /home/azureuser, not /home/user (pre-existing CI failure on main) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Remove references to --private flag (now hidden/default behavior). Document --public as the opt-out flag for bastion routing. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This was referenced Apr 13, 2026
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.
Summary
VMs created with
azlin neware now private by default and route through Azure Bastion, matching the Python CLI behavior.Changes
azlin newcreates VMs without a public IP (bastion-routed)--publicflag to opt into public IP creation--no-bastionalso opts into public IP (unchanged behavior)--privatekept as hidden backward-compat flag (now the default, so it is a no-op)--privateconflicts with--public/--no-bastiontest_code_has_workspace_flag_with_defaultparity test failureAlso done (operational)
azlin list --no-cacheshowing10.0.0.6 (Bast)Merge readiness
QA-team evidence
tests/agentic-scenarios/pr-966-bastion-default.yaml,tests/agentic-scenarios/new-command-parity.yamlgadugi-test validate -f tests/agentic-scenarios/pr-966-bastion-default.yamlgadugi-test run -d tests/agentic-scenarios -s pr-966-bastion-defaultrust/target/debug/azlin)gadugi-test run -d tests/agentic-scenarios -s new-command-parity(4/4 steps, ALL 22 FLAGS PRESENT)Documentation
docs/how-to/forward-credentials.md— removed--privateexample, documented bastion-by-defaultdocs/reference/credential-forwarding.md— updated flag table (--private→--public)Quality-audit
--privateas a user-facing flag indocs/how-to/forward-credentials.md:55anddocs/reference/credential-forwarding.md:10. Both fixed in commit ea895bc.--privatereferences in docs. No unrelated changes.CI
gh pr checks 966test_code_has_workspace_flag_with_defaultparity test (expected/home/userbut actual default is/home/azureuser); fixed in this PRScope
rust/crates/azlin-cli/src/lib.rs,rust/crates/azlin-cli/src/parity_tests.rs,rust/crates/azlin/src/cmd_vm.rs,rust/crates/azlin/src/cmd_vm_ops.rs,docs/how-to/forward-credentials.md,docs/reference/credential-forwarding.md,tests/agentic-scenarios/pr-966-bastion-default.yaml,tests/agentic-scenarios/new-command-parity.yamlVerdict