azswap
0.0.2
Minimum PowerShell version
5.1
Installation Options
Owners
Copyright
(c) Joe Pitts. MIT licence.
Package Details
Author(s)
- Joe Pitts
Tags
Azure AzureCLI az AZURE_CONFIG_DIR tenant profile multi-tenant login Windows Linux MacOS
Functions
PSEditions
Dependencies
This module has no dependencies.
Release Notes
0.0.2
- azswap list -AsJson prints every profile as JSON (name, active, path, tenant, signed-in and expected account, mismatch flag, default subscription, sign-in method). Offline: it never calls az.
- The agent skill in skill/az-profiles is now generic: it reads azswap list -AsJson and works without editing.
0.0.1 - first public release.
- azswap <profile> switches the shell's AZURE_CONFIG_DIR and signs in to the profile's tenant when the token has expired.
- azswap new, login, list and help; tab completion for commands and profile names.
- Each profile remembers its sign-in method (device code or -Interactive browser/WAM sign-in).
- -Account records the account a profile must use; azswap warns on a mismatch and list marks it with '!'.
- azswap run <profile> -- <command> runs one executable under a profile and refuses to run as the wrong account.
- azswap import adopts existing ~/.azure-* folders, or splits ~/.azure into a profile per account (-FromDefault).
- Never signs in from non-interactive hosts (redirected input, CI, -NonInteractive) or with -NoLogin; fails with the command to run instead.
- Windows PowerShell 5.1 and PowerShell 7 on Windows, Linux and macOS.
FileList
- azswap.nuspec
- azswap.psm1
- azswap.psd1
Version History
| Version | Downloads | Last updated |
|---|---|---|
| 0.0.2 (current version) | 5 | 10/7/2026 |
| 0.0.1 | 4 | 10/7/2026 |