diff --git a/dvc/config_schema.py b/dvc/config_schema.py index 9dea7b1e0..dfa2a0ac2 100644 --- a/dvc/config_schema.py +++ b/dvc/config_schema.py @@ -189,6 +189,7 @@ SCHEMA = { "tenant_id": str, "client_id": str, "client_secret": str, + "allow_anonymous_login": bool, **REMOTE_COMMON, }, "oss": { diff --git a/dvc/fs/azure.py b/dvc/fs/azure.py index acdf06fe1..4004e258b 100644 --- a/dvc/fs/azure.py +++ b/dvc/fs/azure.py @@ -147,7 +147,7 @@ class AzureFileSystem(ObjectFSWrapper): if ( login_info["account_name"] and not any_secondary - and not config.get("allow_anonymous_login") + and not config.get("allow_anonymous_login", False) ): login_info["credential"] = DefaultAzureCredential( exclude_interactive_browser_credential=False