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
480
Azure Static Web Apps の自動ビルドがタイムアウトしやすくなった状況に対応した件/global-azure2026
thara0402
0
890
Azure Durable Functions で作った NL2SQL Agent の精度向上に取り組んだ話/jat08
thara0402
0
460
これでバッチリ!Azure マルチテナントアーキテクチャ設計のコツ/jat06
thara0402
0
810
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
120
「Durable Task Scheduler」をチョイ見せ!/jat05
thara0402
0
81
Azure App Service on Linux の Sidecar に Phi-3 を配置してインテリジェントなアプリケーションを作ってみよう/jazug-anniv14
thara0402
0
1.6k
Other Decks in Technology
See All in Technology
M5Stackで作る BLEマウス GPSログの世界
tomokusaba
PRO
0
440
Railsで挑む大量データ永続化 〜600億件を永続化するための設計とボトルネックとの戦い〜
occhi
1
760
実体験から学ぶ分析エージェントの開発と運⽤
recruitengineers
PRO
8
2.4k
実践!Cloud Run ハンズオン!! / Cloud Run handson
y0hgi
2
300
Local CI × GitHub Actions
gogutan
3
230
Code for Security プロジェクト紹介 2026年10月
yu23ki14
0
110
10年後、Engineering 行為を剥奪されるとして、わたしたちは、どう、何を創ればいいだろうか。 / If Engineering Is Taken Away in 10 Years, How and What Should We Create?
bitkey
PRO
1
200
ブラウザとサーバーから考えるAI時代のフロントエンド監視
shogo4131
3
1k
エンタメ企業のM&Aを支えるデータ基盤 ― 統合から店舗のリアルタイム分析まで / Data Engineering Summit 2026
genda
0
190
AI コーディングと人間の認知スループット / CTO Night & Day 2026 Morning Session / AI Coding and Human Cognitive Throughput
prog893
5
1.3k
Running Kotlin + Quarkus with Lambda
nealle
1
4k
FinOps Agentが生んだ技術負債:コスト自動調査の落とし穴と解消までの道のり
oasis1994liveforever
2
140
Featured
See All Featured
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
320
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
50
10k
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.6k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.5k
Ten Tips & Tricks for a 🌱 transition
stuffmc
1
270
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
YesSQL, Process and Tooling at Scale
rocio
174
15k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
290
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
430
Un-Boring Meetings
codingconduct
0
460
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
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
ご清聴ありがとうございました。