Upload
tomoyuki-obi
View
268
Download
0
Embed Size (px)
Citation preview
Self Introduction
Attribute1: VB / LogicApps-Flow-PowerApps
@twit_ahf
Attribute2: 提督 / 殿 / メガネ / クマ / プロレス / もっふり
tomoyuki.obi http://el.jibun.atmarkit.co.jp/ahf/
Community: LogicFlow-ja / CLR/H
Microsoft MVP for Microsoft Azure(2017.03 ~)
LogicApps 従量課金プラン
LogicApps AppService プラン
https://azure.microsoft.com/ja-jp/pricing/details/logic-apps/
Flow とは課金単位が異なる
LogicApps 仕様と制限
最大実行継続時間 90 日
ストレージリテンション期間 90 日
最小繰り返し時間 1 秒
最大繰り返し間隔 500 日
ForEach レコード数 100,000
Loop Until 回数 5,000
SplitOn 最大数 100,000
ForEach 並列処理数 20
アクション実行数(5分間) 100,000
同時呼出し数 2,500
エンドポイント同時受信数 1,000
エンドポイント読み取り可能呼出し数 60,000
エンドポイント起動可能呼出し数 45,000
ワークフローでのアクション数 250
ワークフロー内部でのネスト数 5
1リージョンでのワークフロー数 1,000
ワークフローごとのトリガ数 10
一つの式での最大文字数 8,192
アクション/トリガ名の文字数 80
コメントの文字数 256
パラメーター数 50
Microsoft Flow 料金プラン
1 ユーザー 25 LogicFlow が定義可能(リクエスト送付で拡張可能)https://flow.microsoft.com/ja-jp/pricing/
Enterprise Integration
SNS
Office365 / Dynamics365
Data Connect
Web Service
Azure Service
Online Storage
NotificationStandard Connecter
Cognitive Service
Button
Approval Batch
Enterprise Integration
SNS
Office365 / Dynamics365
Data Connect
Web Service
Azure Service
Online Storage
NotificationStandard Connecter
Cognitive Service
Button
Approval Batch
LogicApps Only
Enterprise Integration
SNS
Office365 / Dynamics365
Data Connect
Web Service
Azure Service
Online Storage
NotificationStandard Connecter
Cognitive Service
Button
Approval Batch
Flow Only
LogicFlow 基本コネクタ
スケジュール
OpenAPI(Swagger) 定義されたAPI 呼出
HTTPS リクエスト
RSSFTP/SFTP
HTTP/HTTPS
WebHook
Mail(SendGrid)
SMTP
変数
制御HTTP レスポンス
データ操作
PowerApps
プッシュ通知
Flow Button
HTML-テキスト変換
PowerApps用プッシュ通知
inputArguments.Select(Function(x)
Return New With {Key x.orgArg1,
Key x.orgArg2,
Key Sum(x.orgArg3)}
End Function).ToArray
選択/ Selecct
配列オブジェクトの再定義
関数 / Workflow Functions
Referencing functions
Collection functions
String functions
Logical functions
Conversion functions
Math functions
Date functions
Workflow functionsデザイナ上でインテリセンス等サポートはない
https://docs.microsoft.com/ja-jp/azure/logic-apps/logic-apps-workflow-definition-language
CodeView および関数ダイアログ上でサポートあり
Workflow Functions の書き方
最初の関数のみ @ をつける必要がある
文字列は ‘ でのみ囲める
デザイナー上で記載する場合は「詳細設定」LogicApps なら CodeView で記載するのを活用
@triggerOutputs() 関数にて呼出時に付与されていたクエリパラメータを取得できる
HTTP Request トリガにおけるクエリパラメータ
@triggerOutputs()['queries']['test1']などでパラメータを利用可能
Request コネクタの問題点
SAS 付 URL のためアクセスできれば誰でも利用可能
生成される URL がいかにも Azure な URL
LogicFlow 自体にユーザー認証の仕組みは提供されていない
ユーザー認証がない
利用条件の表示や匿名ユーザー対応などFunction Apps Proxy より細かい対応が可能
API Management でのユーザー認証
OAuth2.0 や OpenID を利用して外部プロバイダでの認証も可能
Function Apps Proxy のカスタムドメイン設定
SSL も利用可能http://blogahf.blogspot.jp/2017/07/azure-function-apps-proxies-ssl.html
OpenAPI
API Apps での OpenAPI(Swagger)設定によりダイアログでの表示などカスタマイズ可能
メソッドなどへ属性を付与してデザイナ上の表示を指定T-Rex ライブラリも利用可能(https://github.com/nihaue/TRex)
[HttpPost, Route]
[Metadata("Create Message", "Creates a new message absolutely nowhere")]
[SwaggerResponse(HttpStatusCode.OK, Type = typeof(SampleOutputMessage))]
public async Task<IHttpActionResult> Post([FromBody]
[Metadata("Sample Input", "A sample input message")]
SampleInputMessage sampleInput)
{
return await SampleOutputMessage.FromInputAsync(sampleInput);
}
参考)https://flow.microsoft.com/ja-jp/documentation/customapi-how-to-swagger/
Hybrid Connection
(ServiceBus – Relay)
OnPremiss Data Gateway
(ServiceBus – Queue)
OnPremiss DataGateway
対象コネクタ
DataGateway はメッセージをポーリングする方式でやり取りを行う(リアルタイム性は若干落ちる)
•ルートフォルダ:接続先 PC でのローカルパス(共有はかけなくても大丈夫)•認証タイプ:Windows 認証•ユーザー名:(マシン名)¥(アカウント) を入力AD アカウントではないので注意!•パスワード:パスワードを入力•ゲートウェイ:インストールしたゲートウェイを選択
DataGateway 利用ポート
TCP 443 (既定値) / 5671 / 5672 / 9350 ~ 9354
データ送信のみで受信は必要ない
HTTPS を強要する場合は config ファイルの書き換えかインストーラから設定
https://msdn.microsoft.com/ja-jp/library/hh169248(v=nav.90).aspx
SQL Database コネクタによる取得
SQL 文を直接記載することはできないがOdata Expression による記述が可能
LogicApps の高可用性対応
API Management リダイレクト先の調整
ServiceBus メッセージング形式の構築
Hot-Cold 的に構築動作中のリージョンで障害発生時にCOLD 側へ切り替えさせる(ARM 操作で可能)
常に全てのリージョンで動作するよう構築LogicApps の課金としては変化なし(トリガで対象データなしは無課金)
LogicApps Ludicrous Mode
高パフォーマンス用 LogicApps
16ユニット以上の構成
高スケール対応が可能
LogicApps 上に仕込みは済んでいるのでそう遠くない時期に公開予定
Appendix
• LogicFlow-ja( https://www.facebook.com/groups/logicflowja/ )
• LogicFlow を扱っている Blog– nrjlog ( http://zuvuyalink.net/nrjlog/ )– てすとぶろぐ ( http://blogahf.blogspot.jp/ )
• Azure LogicApps( https://blogs.msdn.microsoft.com/logicapps/ )
• Flow – Blog(https://flow.microsoft.com/en-us/blog/)
• PowerApps – Blog(https://powerapps.microsoft.com/en-us/blog/)
• Twitter Hashtag– LogicApps → #LogicApps
– Flow → #MicrosoftFlow