본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

Teams Workflows 알림 서비스 (Notification Services — Teams Workflows)

원문 보기 위키 갱신

Teams Workflows 알림 서비스는 Microsoft Teams Workflows(Power Automate)를 사용해 메시지 알림을 보냅니다. 2026년 3월 31일에 폐지될 레거시 Office 365 Connectors 서비스의 권장 대체재예요. 표준·공유·비공개 채널을 모두 지원하고, 현대적인 Adaptive Card 형식으로 알림을 구성할 수 있습니다.

출처: Argo Rollouts 문서

본문

개요 (Overview)

Teams Workflows 알림 서비스는 Microsoft Teams Workflows(Power Automate)를 사용해 메시지 알림을 보냅니다. 이는 2026년 3월 31일에 폐지될 레거시 Office 365 Connectors 서비스의 권장 대체재입니다.

파라미터 (Parameters)

Teams Workflows 알림 서비스를 사용하려면 다음 설정을 지정해야 합니다:

  • recipientUrls — 웹훅 URL 맵. 예: channelName: https://api.powerautomate.com/webhook/...

지원되는 웹훅 URL 형식 (Supported Webhook URL Formats)

이 서비스는 다음 Microsoft Teams Workflows 웹훅 URL 패턴을 지원합니다:

  • https://api.powerautomate.com/...
  • https://api.powerplatform.com/...
  • https://flow.microsoft.com/...
  • 경로에 /powerautomate/를 포함하는 URLs

구성 (Configuration)

  • Teams를 열고 알림을 설정하려는 채널로 이동합니다.
  • 채널 이름 옆의 세 점을 클릭합니다.
  • Workflows를 선택합니다.
  • Manage를 클릭합니다.
  • New flow를 클릭합니다.
  • 검색 창에 Send webhook alerts to a channel을 쓰거나 템플릿 목록에서 선택합니다.
  • 팀과 채널을 선택합니다.
  • 웹훅 이름과 설정을 구성합니다.
  • 웹훅 URL을 복사합니다 (api.powerautomate.com, api.powerplatform.com 또는 flow.microsoft.com에서 온 것).
  • 이를 argo-rollouts-notification-secret에 저장하고 argo-rollouts-notification-configmap에 정의합니다.
apiVersion: v1
kind: ConfigMap
metadata:
  name: argo-rollouts-notification-configmap
data:
  service.teams-workflows: |
    recipientUrls:
      channelName: $channel-workflows-url
apiVersion: v1
kind: Secret
metadata:
  name: <secret-name>
stringData:
  channel-workflows-url: https://api.powerautomate.com/webhook/your-webhook-id
  • Teams Workflows 통합에 대한 구독을 생성합니다:
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  annotations:
    notifications.argoproj.io/subscribe.on-sync-succeeded.teams-workflows: channelName

채널 지원 (Channel Support)

  • ✅ 표준 Teams 채널 (Standard Teams channels)
  • ✅ 공유 채널 (Shared channels, 2025년 12월 기준)
  • ✅ 비공개 채널 (Private channels, 2025년 12월 기준)

Teams Workflows는 Office 365 Connectors보다 향상된 채널 지원을 제공하며, 표준 채널에 더해 공유 및 비공개 채널에도 게시할 수 있습니다.

Adaptive Card 형식 (Adaptive Card Format)

Teams Workflows 서비스는 Microsoft Teams를 위한 현대적이고 유연한 카드 형식인 Adaptive Cards만을 사용합니다. 모든 알림은 자동으로 Adaptive Card 형식으로 변환되고 필요한 메시지 봉투(message envelope)로 감싸집니다.

옵션 1: 템플릿 필드 사용 (권장, Recommended)

이 서비스는 템플릿 필드를 자동으로 Adaptive Card 형식으로 변환합니다. 가장 간단하고 유지 관리하기 쉬운 접근 방식입니다:

template.app-sync-succeeded: |
  teams-workflows:
    # ThemeColor supports Adaptive Card semantic colors: "Good", "Warning", "Attention", "Accent"
    # or hex colors like "#000080"
    themeColor: "Good"
    title: Application {{.app.metadata.name}} has been successfully synced
    text: Application {{.app.metadata.name}} has been successfully synced at {{.app.status.operationState.finishedAt}}.
    summary: "{{.app.metadata.name}} sync succeeded"
    facts: |
      [{
        "name": "Sync Status",
        "value": "{{.app.status.sync.status}}"
      }, {
        "name": "Repository",
        "value": "{{.app.spec.source.repoURL}}"
      }]
    sections: |
      [{
        "facts": [
          {
            "name": "Namespace",
            "value": "{{.app.metadata.namespace}}"
          },
          {
            "name": "Cluster",
            "value": "{{.app.spec.destination.server}}"
          }
        ]
      }]
    potentialAction: |-
      [{
        "@type": "OpenUri",
        "name": "View in Argo CD",
        "targets": [{
          "os": "default",
          "uri": "{{.context.argocdUrl}}/applications/{{.app.metadata.name}}"
        }]
      }]

동작 방식은 다음과 같습니다:

  • title → 크고 굵은 TextBlock으로 변환
  • text → 일반 TextBlock으로 변환
  • facts → FactSet 요소로 변환
  • sections → 섹션 내의 facts가 추출되어 FactSet 요소로 변환
  • potentialAction → OpenUri 액션이 Action.OpenUrl로 변환
  • themeColor → title TextBlock에 적용 ("Good", "Warning", "Attention", "Accent" 같은 시맨틱 색상 또는 hex 색상 지원)

옵션 2: 커스텀 Adaptive Card JSON

완전한 제어와 고급 기능을 위해 완전한 Adaptive Card JSON 템플릿을 제공할 수 있습니다:

template.app-sync-succeeded: |
  teams-workflows:
    adaptiveCard: |
      {
        "type": "AdaptiveCard",
        "version": "1.4",
        "body": [
          {
            "type": "TextBlock",
            "text": "Application {{.app.metadata.name}} synced successfully",
            "size": "Large",
            "weight": "Bolder",
            "color": "Good"
          },
          {
            "type": "TextBlock",
            "text": "Application {{.app.metadata.name}} has been successfully synced at {{.app.status.operationState.finishedAt}}.",
            "wrap": true
          },
          {
            "type": "FactSet",
            "facts": [
              {
                "title": "Sync Status",
                "value": "{{.app.status.sync.status}}"
              },
              {
                "title": "Repository",
                "value": "{{.app.spec.source.repoURL}}"
              }
            ]
          }
        ],
        "actions": [
          {
            "type": "Action.OpenUrl",
            "title": "View in Argo CD",
            "url": "{{.context.argocdUrl}}/applications/{{.app.metadata.name}}"
          }
        ]
      }

참고: adaptiveCard를 사용할 때는 AdaptiveCard JSON 구조만 제공하면 됩니다(전체 메시지 봉투는 불필요). 서비스가 Teams Workflows에 필요한 message + attachments 형식으로 자동으로 감쌉니다.

중요: adaptiveCard를 제공하면 다른 모든 템플릿 필드(title, text, facts 등)보다 우선합니다.

템플릿 필드 (Template Fields)

Teams Workflows 서비스는 다음 템플릿 필드를 지원하며, 자동으로 Adaptive Card 형식으로 변환됩니다:

표준 필드 (Standard Fields)

  • title — 메시지 제목 (크고 굵은 TextBlock으로 변환)
  • text — 메시지 텍스트 내용 (TextBlock으로 변환)
  • summary — 요약 텍스트 (현재 Adaptive Cards에서는 사용되지 않지만 호환성을 위해 보존됨)
  • themeColor — title의 색상. 다음을 지원:
    • 시맨틱 색상: "Good"(녹색), "Warning"(노란색), "Attention"(빨간색), "Accent"(파란색)
    • Hex 색상: "#000080", "#FF0000" 등
  • facts — fact 키-값 쌍의 JSON 배열 (FactSet로 변환)
facts: |
  [{
    "name": "Status",
    "value": "{{.app.status.sync.status}}"
  }]
  • sections — facts를 포함하는 섹션의 JSON 배열 (facts가 추출되어 FactSet로 변환)
sections: |
  [{
    "facts": [{
      "name": "Namespace",
      "value": "{{.app.metadata.namespace}}"
    }]
  }]
  • potentialAction — 액션 버튼의 JSON 배열 (OpenUri 액션이 Action.OpenUrl로 변환)
potentialAction: |-
  [{
    "@type": "OpenUri",
    "name": "View Details",
    "targets": [{
      "os": "default",
      "uri": "{{.context.argocdUrl}}/applications/{{.app.metadata.name}}"
    }]
  }]

고급 필드 (Advanced Fields)

  • adaptiveCard — 완전한 Adaptive Card JSON 템플릿 (다른 모든 필드보다 우선)
    • 메시지 봉투가 아닌 AdaptiveCard 구조만 제공
    • 완전한 Adaptive Card 1.4 사양 지원
    • 모든 Adaptive Card 기능(컨테이너, 열, 이미지 등) 접근 가능
  • template — 원시 JSON 템플릿 (레거시, 대신 adaptiveCard 사용)

필드 변환 세부사항 (Field Conversion Details)

템플릿 필드 (Template Field) Adaptive Card 요소 (Element) 참고 (Notes)
title TextBlock with size: "Large", weight: "Bolder" ThemeColor가 이 요소에 적용됨
text TextBlock with wrap: true text가 비어 있으면 n.Message 사용
facts FactSet 각 fact가 title/value 쌍이 됨
sections[].facts FactSet 섹션에서 facts 추출
potentialAction[OpenUri] Action.OpenUrl OpenUri 액션만 변환
themeColor title TextBlock.color에 적용 시맨틱 및 hex 색상 지원

Office 365 Connectors에서 마이그레이션 (Migration from Office 365 Connectors)

현재 teams 서비스를 Office 365 Connectors와 함께 사용하고 있다면 다음 단계로 마이그레이션하세요:

  • 위 구성 단계를 사용해 새 Workflows 웹훅을 생성합니다.
  • 서비스 구성을 업데이트합니다:
    • service.teams를 service.teams-workflows로 변경
    • 웹훅 URL을 새 Workflows 웹훅 URL로 업데이트
  • 템플릿을 업데이트합니다:
    • 템플릿의 teams:를 teams-workflows:로 변경
    • 기존 템플릿 필드(title, text, facts, sections, potentialAction)가 자동으로 Adaptive Card 형식으로 변환됩니다.
    • 템플릿 구조 변경은 필요 없습니다 — 변환은 자동입니다.
  • 구독을 업데이트합니다:
# Old
notifications.argoproj.io/subscribe.on-sync-succeeded.teams: channelName

# New
notifications.argoproj.io/subscribe.on-sync-succeeded.teams-workflows: channelName
  • 테스트 및 검증:
    • 테스트 알림을 보내 정상 동작을 확인
    • 검증이 끝나면 이전 Office 365 Connector 구성을 제거

참고: 기존 템플릿은 수정 없이 동작합니다. 서비스가 템플릿 필드를 자동으로 Adaptive Card 형식으로 변환하므로, 템플릿을 변경하지 않아도 현대적인 카드의 이점을 얻을 수 있습니다.

Office 365 Connectors와의 차이 (Differences from Office 365 Connectors)

기능 (Feature) Office 365 Connectors Teams Workflows
서비스 이름 (Service Name) teams teams-workflows
표준 채널 (Standard Channels) ✅ ✅
공유 채널 (Shared Channels) ❌ ✅ (Dec 2025+)
비공개 채널 (Private Channels) ❌ ✅ (Dec 2025+)
카드 형식 (Card Format) messageCard (legacy) Adaptive Cards (modern)
템플릿 변환 (Template Conversion) N/A 템플릿 필드에서 자동 변환
폐지 날짜 (Retirement Date) 2026년 3월 31일 Active

Adaptive Card 기능 (Adaptive Card Features)

Teams Workflows 서비스는 Adaptive Cards를 활용하며, 이는 다음을 제공합니다:

  • 풍부한 콘텐츠 (Rich Content): 텍스트, 이미지, fact set 등 지원
  • 유연한 레이아웃 (Flexible Layout): 컨테이너, 열, 어댑티브 레이아웃
  • 대화형 요소 (Interactive Elements): 액션 버튼, 입력 필드 등
  • 시맨틱 색상 (Semantic Colors): 내장 색상 체계 (Good, Warning, Attention, Accent)
  • 크로스 플랫폼 (Cross-Platform): Teams, Outlook 및 기타 Microsoft 365 앱에서 동작

예제: 고급 Adaptive Card 템플릿 (Example: Advanced Adaptive Card Template)

복잡한 알림을 위해 완전한 Adaptive Card 사양을 사용할 수 있습니다:

template.app-sync-succeeded-advanced: |
  teams-workflows:
    adaptiveCard: |
      {
        "type": "AdaptiveCard",
        "version": "1.4",
        "body": [
          {
            "type": "Container",
            "items": [
              {
                "type": "ColumnSet",
                "columns": [
                  {
                    "type": "Column",
                    "width": "auto",
                    "items": [
                      {
                        "type": "Image",
                        "url": "https://example.com/success-icon.png",
                        "size": "Small"
                      }
                    ]
                  },
                  {
                    "type": "Column",
                    "width": "stretch",
                    "items": [
                      {
                        "type": "TextBlock",
                        "text": "Application {{.app.metadata.name}}",
                        "weight": "Bolder",
                        "size": "Large"
                      },
                      {
                        "type": "TextBlock",
                        "text": "Successfully synced",
                        "spacing": "None",
                        "isSubtle": true
                      }
                    ]
                  }
                ]
              },
              {
                "type": "FactSet",
                "facts": [
                  {
                    "title": "Status",
                    "value": "{{.app.status.sync.status}}"
                  },
                  {
                    "title": "Repository",
                    "value": "{{.app.spec.source.repoURL}}"
                  }
                ]
              }
            ]
          }
        ],
        "actions": [
          {
            "type": "Action.OpenUrl",
            "title": "View in Argo CD",
            "url": "{{.context.argocdUrl}}/applications/{{.app.metadata.name}}"
          }
        ]
      }

더 알아보기 (Learn more)

  • Argo Rollouts 알림 시스템의 트리거와 템플릿 개념
  • Office 365 Connectors에서 Teams Workflows로 마이그레이션
  • Slack, Nats 등 다른 알림 서비스 연동
  • Adaptive Card 1.4 사양과 커스텀 카드 디자인