Azure / azure-cli

Azure Command-Line Interface
MIT License
4.01k stars 2.98k forks source link

az role assignment list retuns "subscription could not be found" in tenant without subscription #19063

Open starbuck3000 opened 3 years ago

starbuck3000 commented 3 years ago

The CLI command "az role assignment list" returns the following error: "The subscription '$tenantid' could not be found."

Command Name az role assignment list

Errors:

The subscription '$tenandid' could not be found.

To Reproduce:

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

Expected Behavior

Environment Summary

Linux-5.4.0-80-generic-x86_64-with-glibc2.29
Python 3.8.10
Shell: bash

azure-cli 2.0.81

Extensions:
azure-devops 0.17.0

Additional Context

yonzhan commented 3 years ago

@jiasli for awareness

QuickScoP3s commented 2 years ago

+1 I have the same issue with az role assignment create