Microsoft Teams | Dagster Integrations
Back to integrations
Dagster + Microsoft Teams

Dagster + Microsoft Teams

Keep your team up to speed with Teams messages.

About this integration

By configuring this resource, you can post messages to MS Teams from any Dagster op or asset.

Installation

pip install dagster-msteams

Example

# Read the docs on Resources to learn more: https://docs.dagster.io/deployment/resources
from dagster_msteams import Card, MSTeamsResource
from dagster import EnvVar, op, job
import os


@op
def my_op(msteams: MSTeamsResource):
    card = Card()
    card.add_attachment(text_message="Hello there!")
    msteams.get_client().post_message(payload=card.payload)

@job(resource_defs={
    "msteams": MSTeamsResource(
        hook_url=EnvVar("TEAMS_WEBHOOK_URL")
    )
})
def my_job():
    my_op()

About Microsoft Teams

Microsoft Teams is a business communication platform. Teams offers workspace chat and videoconferencing, file storage, and application integration.