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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
TonyTonyKun
December 10, 2017
Technology
930
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
410
Azure Static Web Apps の自動ビルドがタイムアウトしやすくなった状況に対応した件/global-azure2026
thara0402
0
860
Azure Durable Functions で作った NL2SQL Agent の精度向上に取り組んだ話/jat08
thara0402
0
450
これでバッチリ!Azure マルチテナントアーキテクチャ設計のコツ/jat06
thara0402
0
790
Azure Load Testing を使って Azure Functions Flex Consumption の HTTP Trigger のパフォーマンスとコストを最適化してみよう/global-azure2025
thara0402
0
380
Prompty を使って生成 AI アプリケーション開発のプロンプトを管理する/jat03
thara0402
0
97
Azure OpenAI Service で意図せず PTU モデルをデプロイして高額請求されてしまった件/jat04
thara0402
0
110
「Durable Task Scheduler」をチョイ見せ!/jat05
thara0402
0
77
Azure App Service on Linux の Sidecar に Phi-3 を配置してインテリジェントなアプリケーションを作ってみよう/jazug-anniv14
thara0402
0
1.5k
Other Decks in Technology
See All in Technology
バイブコーディング時代のWebアプリ開発入門~Cloud Runで学ぶセキュアなビルドとデプロイ
waiwai2111
1
140
Deployment の 先にある AI Agent 基盤 - kagent vNext、Agent Substrate、Hermes から読み解く Agent Runtime の現在地 / k8s-matsuri-2-ai-agent-platform-amsy810
masayaaoyama
4
670
リアーキテクチャ後の障害ゼロを目指したShadow Testingの取り組み
nihonbuson
PRO
1
160
幾何アルゴリズムで なめらかなピン操作を / iOSDC Japan 2026 / smoothpin
kazumanagano
0
360
目の前の楽しいが人生を変える - コミュニティの螺旋の歩き方と楽しむコツ / change your life
soudai
PRO
5
650
AIエージェントの権限管理 3: Agentic RAG の Fine grained access control 編
ren8k
0
140
データ界隈LT祭 第1回LT登壇
taromatsui_cccmkhd
2
1.5k
Slack上でインフラをトラブルシュートする! Agentic Platform Engineeringの第一歩
teru0x1
5
1.8k
ユーザー価値を届け続けるためにウォンテッドリーが大切にしている文化
kotaminato
0
180
2026_devsumi_ozono.pdf
o3
3
530
現場で役立つ技術負債の効果的な返済方法
masuda220
PRO
9
4.7k
新機種発売前に見直そう!端末移行で再ログインが要るアプリ・要らないアプリは何が違うのか 〜シームレスに再開できる設計と実装〜
zozotech
PRO
0
210
Featured
See All Featured
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2.2k
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
760
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
35
2.8k
Designing Experiences People Love
moore
143
24k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.9k
Faster Mobile Websites
deanohume
310
32k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.6k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2.2k
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
470
A better future with KSS
kneath
240
18k
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
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
ご清聴ありがとうございました。