Azure Functionsの開発

Azure App Services

Florin Angelescu

Azure Cloud Architect

トリガーとは

$$

Function App Triggers

  • 関数の呼び出し方法を定義
  • 関数が応答できるイベント:
    • HTTPリクエスト
    • キューのメッセージ
    • ファイルのアップロード
  • 関数にはトリガーが1つ必要
Azure App Services

主なトリガーの種類

Function HTTP Trigger

Function Timer Trigger

Function Queue Trigger

Function File Trigger

Azure App Services

バインドとは

 

 

Function Bindings

  • 外部データやサービスへの接続を簡素化
  • 統合処理はバックグラウンドで実行
  • インフラ管理不要でコードをシンプルに維持
Azure App Services

入力バインドと出力バインド

 

Function Input Binding

  • Blobファイルやデータベースレコードを自動的に受信

 

Function Output Binding

  • Cosmos DB、Event Hubs、またはメールプロバイダー
Azure App Services

入力バインドと出力バインド

 

Function Bindings

Azure App Services

複数のバインド

Function Multiple Bindings

Function Multiple Bindings

Azure App Services

実際の使用例

 

Function Bindings

  • ユーザーが画像をアップロード:
    • Blobトリガーが関数を起動
  • 入力バインドが画像を関数に提供
  • 関数の処理例:
    • 画像のリサイズ
    • タグの追加
  • 出力バインドの処理例:
    • 更新した画像を保存
    • Cosmos DBにメタデータを記録
    • 通知を送信
Azure App Services

練習しましょう!

Azure App Services

Preparing Video For Download...