Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Azure Functions で、SendGrid の Event Webhook からの通...
Search
TonyTonyKun
December 10, 2017
Technology
940
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Azure Functions で、SendGrid の Event Webhook からの通知を受け取ってみる
Build 2016 報告会の LT 資料です。
TonyTonyKun
December 10, 2017
More Decks by TonyTonyKun
See All by TonyTonyKun
Azure Durable Functions で作った NL2SQL Agent の精度向上に取り組んだ話/aidevday2026
thara0402
0
470
Azure Static Web Apps の自動ビルドがタイムアウトしやすくなった状況に対応した件/global-azure2026
thara0402
0
880
Azure Durable Functions で作った NL2SQL Agent の精度向上に取り組んだ話/jat08
thara0402
0
450
これでバッチリ!Azure マルチテナントアーキテクチャ設計のコツ/jat06
thara0402
0
800
Azure Load Testing を使って Azure Functions Flex Consumption の HTTP Trigger のパフォーマンスとコストを最適化してみよう/global-azure2025
thara0402
0
390
Prompty を使って生成 AI アプリケーション開発のプロンプトを管理する/jat03
thara0402
0
100
Azure OpenAI Service で意図せず PTU モデルをデプロイして高額請求されてしまった件/jat04
thara0402
0
110
「Durable Task Scheduler」をチョイ見せ!/jat05
thara0402
0
80
Azure App Service on Linux の Sidecar に Phi-3 を配置してインテリジェントなアプリケーションを作ってみよう/jazug-anniv14
thara0402
0
1.6k
Other Decks in Technology
See All in Technology
データ品質を壊しながらSnowflakeのAIに分析させてみた
kawanago
0
520
HolmesGPTで始めるSREエージェント入門!プラットフォームの障害調査はAIにお任せ 〜
leveragestech
PRO
0
150
全社共通データ基盤をつくる。ソニーのDatabricks活用とデータガバナンス設計の裏側
sony
0
430
Claude起点の仕様駆動開発
tanakaseiya
0
390
Kernel testing frameworks
ennael
PRO
0
110
IR Today: Theory, Practice, and Agents
dtunkelang
0
350
IoTデバイスを繋げるプロトコルMatterをAndroidで使用する方法
harutiro
0
120
自分で立ててみるLLMサービス
y_sera15
0
120
LLM機能を自作して分かるSnowflake Cortex AIの強み
nayuts
0
300
検証フェーズはAIの回答を判断するための学習機会
toru_kubota
2
500
AI時代のAPI開発を加速する品質ガードレール / API Quality Guardrails in the AI Era
yokawasa
0
150
Snowflake Horizon Catalog と Apache Iceberg で作る オープンなデータ基盤
kitagawaz
0
440
Featured
See All Featured
Google's AI Overviews - The New Search
badams
0
1.6k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
31k
Optimising Largest Contentful Paint
csswizardry
37
4k
A Soul's Torment
seathinner
8
3.7k
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
520
Reality Check: Gamification 10 Years Later
codingconduct
0
2.3k
Bash Introduction
62gerente
615
220k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
390
Between Models and Reality
mayunak
4
480
Claude Code のすすめ
schroneko
67
230k
Designing Experiences People Love
moore
143
24k
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.6k
Transcript
Azure Functions で、 SendGrid の Event Webhook からの 通知を受け取ってみる
⾃⼰紹介 • 名前 • Twitter : @TonyTonyKun(トニー) • 仕事 •
C# で業務アプリケーションを開発しています。 • Azure をベースに ASP.NET を使うことが多いです。 • Blog • ROMANCE DAWN for the new world • http://gooner.hateblo.jp/
SendGrid とは? • Azure から使える便利なメール配信サービス しかし、送信したはずのメールが届かないことも・・・
Event Webhook でログを解析する • メールを送信する際に発⽣するイベントを指定した URL にPOSTすることができる • アドレスが間違っていて届かない •
受信メールサーバーでブロックされている • 配信が遅延している • でも、使うにはそれなりの⼿間がかかる • POST された通知を受け取る API を実装する • イベントの JSON データをストレージに転送するコードを書く • クラウドの Web サーバーにデプロイする
そこで、Azure Functions
Azure Functions を作る 初期値の「Generic JSON」だと、SendGrid から の通知を受け取れない。 必ず、「Not a Webhook」に変更する必要あり!
Azure DocumentDB に Output する ここから Azure DocumentDB を作成して、 接続⽂字列の設定を追加できる。
Azure Functions のコードを編集する SendGrid から POST された JSON データを Output
の Bindings にセットする。
SendGrid の Event Webhook を設定する Event Webhook から POST する
URL に、 Azure Functions の URL を設定する。 ※ SendGrind のポータルサイト
Demo
Azure DocumentDB に転送されたデータ 無効なメールアドレスのため、メールの送信に 失敗したことがわかります。
まとめ • いま、Azure Functions がアツい! • API の実装とか、デプロイとか必要なし • Trigger
が発⽕したときだけ実⾏されるので、コス ト的にもうれしい 使ってみて要望があれば、フィードバックしましょう https://feedback.azure.com/forums/355860-azure-functions
ご清聴ありがとうございました。