Anúncio

Azure Function GAした!Visual Studio Tools for Azure Functions もプレビューだ!

2 de Feb de 2019
Anúncio

Mais conteúdo relacionado

Apresentações para você(20)

Similar a Azure Function GAした!Visual Studio Tools for Azure Functions もプレビューだ!(20)

Anúncio

Último(20)

Anúncio

Azure Function GAした!Visual Studio Tools for Azure Functions もプレビューだ!

  1. Azure Function GAした! Visual Studio Tools for Azure Functions も プレビューだ! Serverless Meetup Sapporo 2016/12/11 Yasuaki Matsuda
  2. 自己紹介 札幌在住、.NET系の開発がお仕事 JAZUG札幌支部のスタッフ 2016年1月 Microsoft MVP Award を受賞 カテゴリはMicrosoft Azure Blog:http://vnext-y-blog.azurewebsites.net/ Twitter:@DarkCrash3 Facebook:vnext.y GitHub:darkcrash Mvp:profile Copyright© 2015, JAZUG All Rights Reserved. 2
  3. きたあずの紹介 ■正式名称 Japan Azure User Group 札幌支部 ■活動概要 Cloudにちょっと興味のあるゆるふわな方から 実ビジネスで使用される方まで学べる勉強会を開催しています。 ■Webサイト http://kitaazu.azurewebsites.net/ Copyright© 2015, JAZUG All Rights Reserved. 3 きたあずちゃん (@kitaazu_chan)
  4. きたあず新スタッフ! 7人目!! 年明けに3周年! To be continue … Copyright© 2015, JAZUG All Rights Reserved. 4
  5. Azure Functions 概要 Copyright© 2015, JAZUG All Rights Reserved. 5
  6. Azure Functions 2016/11/15 GA! サーバーレス 課金は、実行・リソース 単位となる 実装が必要 テンプレートがある ツールはPreview Copyright© 2015, JAZUG All Rights Reserved. 6
  7. Demo Slackの特定チャンネルで、メッセージを送ったら返してくれる Copyright© 2015, JAZUG All Rights Reserved. 7
  8. Copyright© 2015, JAZUG All Rights Reserved. 8
  9. サーバーレスといってる部分 サーバーのインスタンスが常駐しない 何かのトリガーで実際に動く(プロセスが起動する) Http Webhook Timer Blob EventHub トリガー、入力、出力は管理される Functionsはその入出力に実装をするという感じ 起動に時間がかかるので、 応答速度を求めるものには向いていない Copyright© 2015, JAZUG All Rights Reserved. 9
  10. Azure Functions の価格(Preview時) Copyright© 2015, JAZUG All Rights Reserved. 10詳しくは公式を参照してね https://azure.microsoft.com/ja-jp/pricing/details/functions/
  11. Azure Functions の価格(GA) Copyright© 2015, JAZUG All Rights Reserved. 11詳しくは公式を参照してね https://azure.microsoft.com/ja-jp/pricing/details/functions/
  12. 実行時間の課金 Preview時は、128MB単位で予約する仕組みで超過した場合は エラーで失敗することも GAによる新たなプラン(Preview時のプランはなかったこと) 関数によって使用されたメモリは、128 MB 単位で測定されま す。最大メモリ サイズは 1,536 MB です。 Copyright© 2015, JAZUG All Rights Reserved. 12
  13. Functionを触ってみる Copyright© 2015, JAZUG All Rights Reserved. 13
  14. 試したいだけなら・・・ https://functions.azure.com/try 1時間で自動的に消える Microsoftアカウント Googleアカウント Facebookアカウント いずれかがあれば、作成可能 Copyright© 2015, JAZUG All Rights Reserved. 14
  15. Copyright© 2015, JAZUG All Rights Reserved. 15
  16. 何を作るか・・・? 迷ったら・・・・ Copyright© 2015, JAZUG All Rights Reserved. 16
  17. Azure Functions Challenge https://functionschallenge.azurewebsites.net/ 課題が出るので、Functionsを作ってURLで回答する フリーのアカウントでもできる クリアすると・・・バッジがもらえる!! 触れるきっかけとバッジで二度おいしい! Copyright© 2015, JAZUG All Rights Reserved. 17
  18. Functionの実装の前に GA時点の必要な構成 Copyright© 2015, JAZUG All Rights Reserved. 18
  19. Functionの構成するもの(ざっくり) Functionごとに設定 function.json • Trigger、Input、Outputの定義 Function本体 • 好きな言語で実装 アプリケーションごとに設定(複数のFunctionに影響) アプリケーション構成、ポータル上から設定可能 • コードと分離する、Storageや、他のサービスのAPIキー情報など host.json • ホストの構成を変更する。初期値のままならほぼ空白 https://github.com/Azure/azure-webjobs-sdk-script/wiki/host.json Copyright© 2015, JAZUG All Rights Reserved. 19
  20. Copyright© 2015, JAZUG All Rights Reserved. 20 TriggerInput Function Signature Output Application config 外部サービスのキーなど 外部サービス (Storage, Cognitive etc...) Function Body Trigger, Input, Output はfunction.jsonで決める
  21. Triggerのテンプレート Httpベースのトリガー 汎用 webhook GitHub webhook HTTPTrigger Azure サービスのトリガー BlobTrigger QueueTrigger EventHubTrigger ServiceBusQueueTrigger ServiceBusTopicTrigger タイマー TimerTrigger ManualTrigger そのほか試験段階のものも・・・ 構文は https://github.com/Azure/azure-webjobs-sdk-script/wiki/function.json Copyright© 2015, JAZUG All Rights Reserved. 21
  22. 入力のテンプレート Azure サービス Blob Table DocumentDB Mobile テーブルレコード Bot Framework 外部ファイル、外部テーブル ※言語によってプレビュー、そうでないもの、そもそもないもの がある Copyright© 2015, JAZUG All Rights Reserved. 22
  23. 出力のテンプレート Azure サービス イベントハブ Queue Storage Blob Storage Table Storage Service Bus DocumentDB Mobile テーブルレコード Notification Hub http Send Grid Twillo SMS Bot Framework 外部ファイル、外部テーブル(プレビュー) ※言語によってプレビュー、そうでないもの、そもそもないものがある Copyright© 2015, JAZUG All Rights Reserved. 23
  24. Demo Functions テンプレートを連携 Copyright© 2015, JAZUG All Rights Reserved. 24
  25. Visual Studio Tools for Azure Functions https://blogs.msdn.microsoft.com/webdev/2016/12/01/ Copyright© 2015, JAZUG All Rights Reserved. 25
  26. Azure Functions のローカル開発 https://buchizo.wordpress.com/2016/12/04/azure-functions- %E3%81%AE%E3%83%AD%E3%83%BC%E3%82%AB%E3%83% AB%E3%83%87%E3%83%90%E3%83%83%E3%82%B0/ ブチザッキ Copyright© 2015, JAZUG All Rights Reserved. 26
  27. リモートデバッグ http://vnext-y-blog.azurewebsites.net/archives/4261 Azure Functions をリモートデバッグしながら編集する on Visual Studio 2015 Copyright© 2015, JAZUG All Rights Reserved. 27
  28. Visual Studio Dev Essentials https://blogs.msdn.microsoft.com/visualstudio/2016/02/03/free -visual-studio-dev-essentials-program-feb-2016/ $300 in Azure Credits Xamarin University Access http://vnext-y-blog.azurewebsites.net/archives/2171 Visual Studio Dev Essentials – Azure Credits Copyright© 2015, JAZUG All Rights Reserved. 28
  29. 継続的な配置(Deploy) GitHub、VSTSなどから継続的な デプロイが可能 Copyright© 2015, JAZUG All Rights Reserved. 29
  30. Copyright© 2015, JAZUG All Rights Reserved. 30 https://azure.microsoft.com/ja-jp/services/bot-service/
  31. 似たものとして Functionsよりも前にあったもの・・・それは・・・ Copyright© 2015, JAZUG All Rights Reserved. 31
  32. Copyright© 2015, JAZUG All Rights Reserved. 32 https://azure.microsoft.com/ja-jp/services/logic-apps/
  33. Copyright© 2015, JAZUG All Rights Reserved. 33 https://azure.microsoft.com/ja-jp/pricing/details/logic-apps/
  34. Logic Apps での Azure Functions の使用 https://docs.microsoft.com/ja-jp/azure/app-service-logic/app- service-logic-azure-functions Logic Apps 用の関数を作成する ロジック アプリから Azure Functions を呼び出す 関数からロジック アプリをトリガーする Copyright© 2015, JAZUG All Rights Reserved. 34
  35. きたあず、JAZUGについて きたあずサイト https://kitaazu.azurewebsites.net/ きたあずFacebookグループ https://www.facebook.com/groups/jazugsapporo/ Jazug Facebook グループ https://www.facebook.com/groups/jazug/ Copyright© 2015, JAZUG All Rights Reserved. 35
  36. ご清聴ありがとうございました Copyright© 2015, JAZUG All Rights Reserved. 36
Anúncio