{"record":{"id":"be03cbf8a5ddf0b7","repo":"BerriAI/litellm","slug":"tenant-id-client-id-and-client-secret-must-be-pr","errorCode":null,"errorMessage":"tenant_id, client_id, and client_secret must be provided","messagePattern":"tenant_id, client_id, and client_secret must be provided","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"litellm/llms/azure/common_utils.py","lineNumber":122,"sourceCode":"\n    if client_id.startswith(\"os.environ/\"):\n        _client_id = get_secret_str(client_id)\n    else:\n        _client_id = client_id\n\n    if client_secret.startswith(\"os.environ/\"):\n        _client_secret = get_secret_str(client_secret)\n    else:\n        _client_secret = client_secret\n\n    verbose_logger.debug(\n        \"tenant_id=%s, client_id=%s, client_secret=[set=%s]\",\n        _tenant_id,\n        _client_id,\n        _client_secret is not None,\n    )\n    if _tenant_id is None or _client_id is None or _client_secret is None:\n        raise ValueError(\"tenant_id, client_id, and client_secret must be provided\")\n    credential: Final = ClientSecretCredential(_tenant_id, _client_id, _client_secret)\n\n    token_provider: Final = get_bearer_token_provider(credential, scope)\n\n    verbose_logger.debug(\"token_provider %s\", token_provider)\n\n    return token_provider\n\n\ndef get_azure_ad_token_from_username_password(\n    client_id: str,\n    azure_username: str,\n    azure_password: str,\n    scope: str = \"https://cognitiveservices.azure.com/.default\",\n) -> Callable[[], str]:\n    \"\"\"\n    Get Azure AD token provider from `client_id`, `azure_username`, and `azure_password`\n","sourceCodeStart":104,"sourceCodeEnd":140,"githubUrl":"https://github.com/BerriAI/litellm/blob/6c2dcb801bf2b75c18f1bb24140e7cf57465cc4d/litellm/llms/azure/common_utils.py#L104-L140","documentation":"Error \"tenant_id, client_id, and client_secret must be provided\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/llms/azure/common_utils.py:122 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Provide tenant_id, client_id, and client_secret for Azure AD authentication."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6c2dcb801bf2b75c18f1bb24140e7cf57465cc4d","analyzedAt":"2026-08-15T07:12:03.035Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}