Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/azure-cli-core/azure/cli/core/_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -793,13 +793,16 @@ def find_using_common_tenant(self, username, credential=None):
"Use 'az login --allow-no-subscriptions' to have tenant level access.")
for t in empty_tenants:
logger.warning("%s", t.tenant_id_name)
logger.warning('')

# Show warning for MFA tenants
if mfa_tenants:
logger.warning("The following tenants require Multi-Factor Authentication (MFA). "
"Use 'az login --tenant TENANT_ID' to explicitly login to a tenant.")
for t in mfa_tenants:
logger.warning("%s", t.tenant_id_name)
logger.warning('')

return all_subscriptions

def find_using_specific_tenant(self, tenant, credential):
Expand Down