Skip to main content
Slides for Azure Webinar: Functions and Logic App - Basic
Azureのコンピュートオプション
Azure 仮想マシン
VM Scale sets
Azure Container Service
(ACS/AKS)
Azure App Service
Service Fabric
Azure Batch
生産性
Azure Functions
Logic Apps
Event Grid
...?
Azure Functions
イベント・データ駆動
の関数実行サービス
コードの実行を発火させる
データの入出力用コードを単純化する機能
TriggerとBindingを使ってAzure やその他のサービスで発生したイベントに応
答するコードを記述
https://docs.microsoft.com/ja-jp/azure/azure-functions/functions-reference
https://github.com/Azure/Azure-Functions
Azure WebJobs SDK script → azure-functions-host
Azure WebJobs SDK
Azure WebJobs SDK extensions
Azure Functions CLI
Azure Functions Portal
Azure Functions templates
Azure Functions samples
https://docs.microsoft.com/en-us/azure/azure-functions/functions-versions
• プロダクション利用はVersion1で
• Version2はプレビューで、プロダクション非推奨
https://docs.microsoft.com/en-us/azure/azure-functions/functions-versions
Understanding Serverless Cold Start
Azure Functions Cold Start Workaround
https://docs.microsoft.com/en-us/azure/azure-functions/functions-run-local
https://docs.microsoft.com/en-us/azure/azure-functions/functions-continuous-
deployment
https://docs.microsoft.com/en-us/azure/azure-functions/functions-infrastructure-as-
code
https://docs.microsoft.com/en-us/azure/azure-functions/functions-run-local
モダンな方法 → ローカル開発・テスト
https://docs.microsoft.com/en-us/azure/azure-functions/functions-run-local
Functions App作成時の連携設定
後からApp Insightsと連携設定
Logic App
繋げる&オーケストレートする
(しかもコードレスで)
Visual Studio で Azure Logic Apps を作成してデプロイする
デプロイメントのコード化 + 自動デプロイメントが可能となる
Logic Appサンプルテンプレート集
https://github.com/Azure/logicapps/tree/master/templa
tes
https://docs.microsoft.com/ja-jp/azure/logic-apps/logic-apps-use-logic-app-features
https://docs.microsoft.com/ja-jp/azure/logic-apps/logic-apps-switch-case
https://docs.microsoft.com/ja-jp/azure/logic-apps/logic-apps-loops-and-scopes
https://docs.microsoft.com/ja-jp/azure/logic-apps/logic-apps-exception-handling
https://docs.microsoft.com/ja-jp/azure/logic-apps/logic-apps-scenario-error-and-exception-handling
参考: Connect Twitter to Power BI and Beyond with Logic Apps
https://azure.microsoft.com/hu-hu/resources/videos/connect-twitter-to-power-bi-and-beyond-with-logic-apps/
参考: Azure Event Grid と Logic Apps で仮想マシンの変更を監視する
https://docs.microsoft.com/ja-jp/azure/event-grid/monitor-virtual-machine-changes-event-grid-logic-app
Event Grid
Logic App
Slack
リソースグループイベントスキーマ
operationNameが次の値かどうかで判断
Microsoft.Compute/virtualMachines/write
https://docs.microsoft.com/azure/activ
e-directory/role-based-access-control-
resource-provider-operations
See you at
Azure Functions&Logic Appではじめる
サーバレスアプリケーション開発 - 応用編 - !!