Set Azure CLI environment variables and execute.
- Run command with specified profile's configuration.
- Export configuration environment variables.
Login and save configuration to my-profle:
% azenv -p my-profile az login --tenant xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Run a command with my-profle:
% azenv -p my-profile az account show
Use profile in current shell session with my-profile:
% eval $(azenv -p my-profile)
MIT