Skip to content

az login timeout? #6017

@jongio

Description

@jongio

I'm writing a script that needs to handle az login expiration. To test it, I have to be able to tell az login to expire after a certain amount of time. I don't want to az logout. I want the az to be cached, just expired.

Is there a way to do that or hack something to mimic that behavior?


Environment summary

Install Method (e.g. pip, interactive script, apt-get, Docker, MSI, edge build) / CLI version (az --version) / OS version / Shell Type (e.g. bash, cmd.exe, Bash on Windows)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions