Skip to content

Upgrade prompt is interactive and blocks automation workflows #17886

@timheuer

Description

@timheuer

Describe the bug

Users or agents with an older version of the az CLI can get into a blocking situation when executing a command as it follows-up with an upgrade prompt for the CLI

Command Name
az ad sp create-for-rbac

To Reproduce:

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

  • get a machine with a non-current version of the az CLI
  • az ad sp create-for-rbac --name {} --role {} --scopes {} --sdk-auth

Expected Behavior

Command executes and finished with no blocking interactivity

Actual Behavior

Command executes, but finishes with an offer to upgrade to the latest CLI, thus blocking anything that is expecting either an error state or a final exit code

Environment Summary

Windows-10-10.0.19041-SP0
Python 3.6.8
Installer: MSI

azure-cli 2.22.1

Additional Context

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions