def from_aad_token(
        cls,
        endpoint: str,
        document_db_name: str = DEFAULT_DOCUMENT_DATABASE,
        document_container_name: str = DEFAULT_DOCUMENT_CONTAINER,
        cosmos_container_properties: Dict[str, Any] = None,
        cosmos_database_properties: Dict[str, Any] = None,
    ) -> "AzureCosmosNoSqlDocumentStore":
        """Creates an instance of AzureCosmosNoSqlDocumentStore using an aad token."""
        azure_cosmos_nosql_kvstore = AzureCosmosNoSqlKVStore.from_aad_token(
            endpoint,
            document_db_name,
            document_container_name,
            cosmos_container_properties,
            cosmos_database_properties,
        )
        namespace = document_db_name + "." + document_container_name
        return cls(azure_cosmos_nosql_kvstore, namespace)
Creates an instance of AzureCosmosNoSqlDocumentStore using an aad token.
llama-index-integrations/storage/docstore/llama-index-storage-docstore-azurecosmosnosql/llama_index/storage/docstore/azurecosmosnosql/base.py