hditano commented on issue #48533: URL: https://github.com/apache/airflow/issues/48533#issuecomment-2788593927
> Based off of the following being line 298, not line 305, going to guess version is outdated. `File "/home/airflow/.local/lib/python3.12/site-packages/airflow/providers/microsoft/azure/hooks/msgraph.py", line 298, in get_conn auth_provider = AzureIdentityAuthenticationProvider(` I thought it was the latest one. Im basing my code on https://airflow.apache.org/docs/apache-airflow-providers-microsoft-azure/stable/connections/msgraph.html ``` from airflow import DAG from airflow.providers.microsoft.azure.operators.msgraph import MSGraphAsyncOperator from airflow.providers.http.operators.http import HttpOperator from datetime import datetime with DAG( dag_id="graph_email_production", start_date=datetime(2025,4,7), schedule_interval=None ) as dag: send_email = MSGraphAsyncOperator( task_id="send_email", conn_id="azure_graph_email", method="POST", url="/v1.0/users/[email protected]/sendMail", data={ "message": { "subject": "Test from Airflow - {{ ds }}", "body": { "contentType": "HTML", "content": """ <h1>Airflow Notification</h1> <p>Execution time: {{ ts }}</p> """ }, "toRecipients": [{ "emailAddress": {"address": "[email protected]"} }] } } ) ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
