Skip to content

Add lstk az start-interception and stop-interception commands#336

Merged
carole-lavillonniere merged 4 commits into
mainfrom
cosy-761-add-lstk-az-start-interception-and-stop-interception
Jun 24, 2026
Merged

Add lstk az start-interception and stop-interception commands#336
carole-lavillonniere merged 4 commits into
mainfrom
cosy-761-add-lstk-az-start-interception-and-stop-interception

Conversation

@carole-lavillonniere

@carole-lavillonniere carole-lavillonniere commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

Motivation

lstk az previously only ran the Azure CLI against an isolated AZURE_CONFIG_DIR, leaving global ~/.azure untouched. The Azure team and TGTM discussion agreed lstk az should also offer azlocal's global pattern so existing az scripts run unmodified against LocalStack — and let the user choose.

Changes

  • Add lstk az start-interception — registers and activates the LocalStack cloud in the user's global ~/.azure so plain az (any terminal/script) targets the LocalStack Azure emulator. Independent of lstk setup azure; does not touch global telemetry/survey prefs.
az-start az-to-ls
  • Add lstk az stop-interception — switches the active cloud back to AzureCloud (override with --cloud <name>, validated against the live az cloud list) and re-enables instance discovery. Guarded: only changes the cloud when LocalStack is still active, otherwise it reports and no-ops so it never clobbers an unrelated selection.
az-stop az-top-fails

Closes COSY-761

@carole-lavillonniere carole-lavillonniere added semver: minor docs: needed Pull request requires documentation updates labels Jun 23, 2026
@carole-lavillonniere carole-lavillonniere marked this pull request as ready for review June 23, 2026 11:40

@anisaoshafi anisaoshafi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and LGTM 🚀

@carole-lavillonniere carole-lavillonniere merged commit 22e2d3a into main Jun 24, 2026
13 checks passed
@carole-lavillonniere carole-lavillonniere deleted the cosy-761-add-lstk-az-start-interception-and-stop-interception branch June 24, 2026 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs: needed Pull request requires documentation updates semver: minor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants