Skip to content

az login need to re-login multiple times a day #16641

@velvia

Description

@velvia

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name
az login

I have heard from many that az login is supposed to keep you logged in for many days or weeks. However, myself and another colleague, we have to login at the start of each day we are doing things using az CLI or scripts that use it, and sometimes multiple times a day. Do you know why that is?

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • Put any pre-requisite steps here...
  • az login

Repeat other az commands and see that az login is required at beginning of every day, at minimum.

Expected Behavior

az login has keep alive token and keeps you logged in for a long time, at least a week

Environment Summary

macOS-10.15.7-x86_64-i386-64bit
Python 3.8.6
Installer: HOMEBREW

azure-cli 2.14.0 *

Additional Context

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions