I tried to run azure-cli on databricks (i am using Credential passthrough and my account needs MFA ) and do the following code:
az storage container list --account-name "account_name" --auth-mode login --query "[].name" --output tsv
However, it outputs the following error:
To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code CP4XQ7YMD to authenticate.
ERROR: AADSTS70016: OAuth 2.0 device flow error. Authorization is pending. Continue polling.
Trace ID: a950d1bc-d7c0-43c6-8f92-09f108756c02
Correlation ID: 62d21988-966e-46ec-a300-fe7101c1e64e
Timestamp: 2022-10-12 09:31:45Z
Interactive authentication is needed. Please run:
az login
any other way I can list all the containers in a storage account?