Plugin
power-automate
Plugin Version
2.5.0
Bug Description
FlowAgent authenticates via the Azure CLI (az account get-access-token) but rides the shared default ~/.azure profile and does not honour the AZURE_CONFIG_DIR environment variable. Two consequences:
- No per-tenant isolation. Teams that isolate multiple client tenants by pointing
AZURE_CONFIG_DIR at separate profile directories (a common multi-tenant pattern) cannot scope FlowAgent to a specific tenant — it always uses whatever the shared default profile last logged into.
- No in-session recovery from a stale token. When the cached token is stale/invalid, FlowAgent operations fail with
EnvironmentAccessDenied and there is no reconnect/reauth tool exposed to refresh it — the only remedy found was restarting the whole session.
Expected
- Honour
AZURE_CONFIG_DIR so the caller can scope FlowAgent to an isolated Azure CLI profile.
- Expose a reconnect/reauth tool (or auto-refresh) so a stale token can be recovered without a full restart.
Environment
Windows; multiple Azure CLI profiles via AZURE_CONFIG_DIR.
Plugin
power-automate
Plugin Version
2.5.0
Bug Description
FlowAgent authenticates via the Azure CLI (
az account get-access-token) but rides the shared default~/.azureprofile and does not honour theAZURE_CONFIG_DIRenvironment variable. Two consequences:AZURE_CONFIG_DIRat separate profile directories (a common multi-tenant pattern) cannot scope FlowAgent to a specific tenant — it always uses whatever the shared default profile last logged into.EnvironmentAccessDeniedand there is no reconnect/reauth tool exposed to refresh it — the only remedy found was restarting the whole session.Expected
AZURE_CONFIG_DIRso the caller can scope FlowAgent to an isolated Azure CLI profile.Environment
Windows; multiple Azure CLI profiles via
AZURE_CONFIG_DIR.