2015/03/21 NAWATech #4 Return of God
BizTalk in Microsoft Azure
Ahf(小尾 智之)
2015/03/21 NAWATech #4 Return of God
self introduction
VB 使い
WF メイニア
CLR/H スタッフ
てすとぶろぐ
http://blogahf.blogspot.jp/
@twit_ahf
Tomoyuki.Obi
@IT
エンジニアライフ
地方からの戯言
プロレス好き
DDT / BJW / K-DOJO
みちのくプロレス
2015/03/21 NAWATech #4 Return of God
agenda
• What is BizTalk
• How to Use BizTalk
2015/03/21 NAWATech #4 Return of God
What is BizTalk Server/Services
2015/03/21 NAWATech #4 Return of God
BizTalk Server / Services
 システム間でメッセージ(データ)を
やりとりする際に発生する処理を行う
 ファイル変換やAPI連携
 変換ルールをGUIから設定
 .NET 言語を利用して変換時などに固有処理
を追加できる
 Microsoft Azure 上で BizTalk Services
オンプレミスで BizTalk Server
2015/03/21 NAWATech #4 Return of God
Azure
BizTalk Services
Hybrid Connection
Many Resources
2015/03/21 NAWATech #4 Return of God
History
2000年:BizTalk Server 2000
2002年:BizTalk Server 2002
2004年:BizTalk Server 2004:.NET 1.0 対応
2006年:BizTalk Server 2006:.NET 2.0 対応
2007年:BizTalk Server 2006 R2:.NET 3.0 (WCF / WF)
2009年:BizTalk Server 2009:Hyper-V 上での動作サポート
2010年:BizTalk Server 2010:.NET 4 対応
2013年:BizTalk Server 2013
2013年:BizTalk Services(Microsoft Azure)
2014年:BizTalk Server 2013 R2
2015/03/21 NAWATech #4 Return of God
Server ≒ Services
https://msdn.microsoft.com/ja-jp/library/azure/hh749028.aspx
2015/03/21 NAWATech #4 Return of God
Server ≒ Services
https://msdn.microsoft.com/ja-jp/library/azure/hh749028.aspx
カスタムロジックの扱い
BizTalk Server
BizTalk Services
パイプラインに組み込み
ブリッジで呼び出し
2015/03/21 NAWATech #4 Return of God
Required for Develop
BizTalk Server
BizTalk Services
Visual Studio 2013 / C# / VB
Visual Studio 2012 / C#
現状では BizTalk Service 開発に Visual Studio 2013 は利用不可
.NET Framework 3.5.1 および 4.5 が必須!
2015/03/21 NAWATech #4 Return of God
VB 用の BizTalk Service プロジェクトはありません
Create a Project
2015/03/21 NAWATech #4 Return of God
Add a New File
2015/03/21 NAWATech #4 Return of God
ソース
ブリッジ
ターゲット
Bridge Config
2015/03/21 NAWATech #4 Return of God
Schema Edit
2015/03/21 NAWATech #4 Return of God
Map Edit
2015/03/21 NAWATech #4 Return of God
Map Edit
2015/03/21 NAWATech #4 Return of God
Bridge
検証
強化
変換
強化(変換後)
ス
テ
ー
ジ
データのチェック
項目の追加(演算)
レイアウト・項目の変換
項目の追加(演算)
XML OneWay
XML
Request-Reply
PassThrough
2015/03/21 NAWATech #4 Return of God
XML OneWay
PassThrough
2015/03/21 NAWATech #4 Return of God
XML
Request-Reply
2015/03/21 NAWATech #4 Return of God
Cutom Code
各 Stage にて呼び出す
Microsoft.BizTalk.Services.IMessageInspector
インターフェースを継承したクラスを呼び
出すことが可能
ステージ開始時と終了時に
呼び出すタイミングがある
https://msdn.microsoft.com/ja-jp/library/azure/dn232389.aspx
2015/03/21 NAWATech #4 Return of God
Hybrid Connection
• オンプレミスとクラウドを簡易に
接続させるための仕組
• BizTalk Services の一部なため
使い出が難しい
2015/03/21 NAWATech #4 Return of God
Create Hybrid Connection
現時点では動的
ポートには未対応
2015/03/21 NAWATech #4 Return of God
BizTalk Adapter
• 基幹業務(LOB = Line of Business)等と
連携を行う際に利用
– WCF による中継用サービスで LOB な
システムと接続
– Hybrid Connection との棲み分け
• アプリでローカルリソースと同様に利用するのが
Hybrid Connection
• 別途サービスを通してアクセスするのが
BizTalk Adapter
2015/03/21 NAWATech #4 Return of God
Price Cost
• BizTalk Services は設置した時点で課金
(利用してなくても課金される)
FREE DEVELOPER BASIC STANDARD PREMIUM
価格 - ¥9.18 / 1h
(月 6,834)
¥48.96 / 1h
(月 36,414)
¥298.86 / 1h
(月 222,360)
¥597.72 / 1h
(月 444,720)
スケール限度 - - 8 8 8
EDI Bridge(1U) - 25 25 125 500
Agreements(1U) - 10 50 250 1000
Adapter(1U) - 1 2 5 25
Hybrid Connection 5 / 5GB 5 / 5GB 10 / 50GB 50 / 250GB 100 / 500GB
高可用性 - - あり あり あり
2015/03/18 時点の価格
2015/03/21 NAWATech #4 Return of God
Azure ポータル
Three BizTalk Poral
2015/03/21 NAWATech #4 Return of God
ACL管理ポータル
2015/03/21 NAWATech #4 Return of God
BizTalk Service アプリをデプロイ
した後に構成する
BizTalk 管理ポータル
2015/03/21 NAWATech #4 Return of God
How to Use BizTalk
2015/03/21 NAWATech #4 Return of God
How to Use BizTalk Service
利用するデータ種別は
EDIFACT or AS2
利用するデータストア
はグローバル
SDK でコードによる
カスタマイズ
Hybrid Connetion か
BizTalkAdapter
BIzTalk ポータルからの
登録
VisualStudio で変換
マップの作成
VisualStudio でスキー
マファイルの作成
スキーマ、変換マップ
が作成済み
2015/03/21 NAWATech #4 Return of God
BizTalk Portal - Partner
BizTalk で利用する送受信元
(パートナー)を設定
2015/03/21 NAWATech #4 Return of God
BizTalk Portal - Agreements
BizTalk で利用するプロトコル
(アグリーメント)を設定
2015/03/21 NAWATech #4 Return of God
プロトコルの詳細設定
2015/03/21 NAWATech #4 Return of God
アグリーメントの詳細設定
2015/03/21 NAWATech #4 Return of God
受信についての設定
2015/03/21 NAWATech #4 Return of God
結果の送信についての設定
2015/03/21 NAWATech #4 Return of God
BizTalk Portal - Bridges
BizTalk で利用する
ブリッジ設定
2015/03/21 NAWATech #4 Return of God
ブリッジの詳細設定
2015/03/21 NAWATech #4 Return of God
BizTalk Portal -Resources
変換設定などの事前アップ
ロードしたリソース
2015/03/21 NAWATech #4 Return of God
BizTalk Portal - Tracking
BizTalk で処理したメッセージ
の追跡設定
2015/03/21 NAWATech #4 Return of God
BizTalk Portal - Settings
BizTalk で利用するアカウント
の設定
2015/03/21 NAWATech #4 Return of God
Backup
Azure 管理ポータルからの手動バックアップ
スケジューリングによる自動バックアップ
2015/03/21 NAWATech #4 Return of God
Backup Rule
• 同じ BizTalk Service 名には復元不可
• 同一以上のエディションに復元
• 復元後は「中断」状態
• 別データセンターにバックアップを
用意するのが基本
2015/03/21 NAWATech #4 Return of God
Summary
• BizTalk はデータ変換サービス/アプリ
• Visual Studio 上でマップの定義ができ
単純な処理ならコードは不要
• 環境を整えるのは面倒でも、一度整えれ
ば後は意外と楽・・・?
2015/03/21 NAWATech #4 Return of God
appendix
• SDK, EDI Schemas and Tools
http://www.microsoft.com/en-us/download/details.aspx?id=39087
• Sample
http://code.msdn.microsoft.com/windowsazure/
• Documentation
http://msdn.microsoft.com/en-us/library/windowsazure/hh689864.aspx
http://www.windowsazure.com/en-us/manage/services/biztalk-services/
• BizTalk Service Forums
http://social.msdn.microsoft.com/Forums/en-
US/azurebiztalksvcs/threads
• BizTalk Team Blog
http://blogs.msdn.com/b/biztalk_server_team_blog/

Nawa tech 20150321

  • 1.
    2015/03/21 NAWATech #4Return of God BizTalk in Microsoft Azure Ahf(小尾 智之)
  • 2.
    2015/03/21 NAWATech #4Return of God self introduction VB 使い WF メイニア CLR/H スタッフ てすとぶろぐ http://blogahf.blogspot.jp/ @twit_ahf Tomoyuki.Obi @IT エンジニアライフ 地方からの戯言 プロレス好き DDT / BJW / K-DOJO みちのくプロレス
  • 3.
    2015/03/21 NAWATech #4Return of God agenda • What is BizTalk • How to Use BizTalk
  • 4.
    2015/03/21 NAWATech #4Return of God What is BizTalk Server/Services
  • 5.
    2015/03/21 NAWATech #4Return of God BizTalk Server / Services  システム間でメッセージ(データ)を やりとりする際に発生する処理を行う  ファイル変換やAPI連携  変換ルールをGUIから設定  .NET 言語を利用して変換時などに固有処理 を追加できる  Microsoft Azure 上で BizTalk Services オンプレミスで BizTalk Server
  • 6.
    2015/03/21 NAWATech #4Return of God Azure BizTalk Services Hybrid Connection Many Resources
  • 7.
    2015/03/21 NAWATech #4Return of God History 2000年:BizTalk Server 2000 2002年:BizTalk Server 2002 2004年:BizTalk Server 2004:.NET 1.0 対応 2006年:BizTalk Server 2006:.NET 2.0 対応 2007年:BizTalk Server 2006 R2:.NET 3.0 (WCF / WF) 2009年:BizTalk Server 2009:Hyper-V 上での動作サポート 2010年:BizTalk Server 2010:.NET 4 対応 2013年:BizTalk Server 2013 2013年:BizTalk Services(Microsoft Azure) 2014年:BizTalk Server 2013 R2
  • 8.
    2015/03/21 NAWATech #4Return of God Server ≒ Services https://msdn.microsoft.com/ja-jp/library/azure/hh749028.aspx
  • 9.
    2015/03/21 NAWATech #4Return of God Server ≒ Services https://msdn.microsoft.com/ja-jp/library/azure/hh749028.aspx カスタムロジックの扱い BizTalk Server BizTalk Services パイプラインに組み込み ブリッジで呼び出し
  • 10.
    2015/03/21 NAWATech #4Return of God Required for Develop BizTalk Server BizTalk Services Visual Studio 2013 / C# / VB Visual Studio 2012 / C# 現状では BizTalk Service 開発に Visual Studio 2013 は利用不可 .NET Framework 3.5.1 および 4.5 が必須!
  • 11.
    2015/03/21 NAWATech #4Return of God VB 用の BizTalk Service プロジェクトはありません Create a Project
  • 12.
    2015/03/21 NAWATech #4Return of God Add a New File
  • 13.
    2015/03/21 NAWATech #4Return of God ソース ブリッジ ターゲット Bridge Config
  • 14.
    2015/03/21 NAWATech #4Return of God Schema Edit
  • 15.
    2015/03/21 NAWATech #4Return of God Map Edit
  • 16.
    2015/03/21 NAWATech #4Return of God Map Edit
  • 17.
    2015/03/21 NAWATech #4Return of God Bridge 検証 強化 変換 強化(変換後) ス テ ー ジ データのチェック 項目の追加(演算) レイアウト・項目の変換 項目の追加(演算) XML OneWay XML Request-Reply PassThrough
  • 18.
    2015/03/21 NAWATech #4Return of God XML OneWay PassThrough
  • 19.
    2015/03/21 NAWATech #4Return of God XML Request-Reply
  • 20.
    2015/03/21 NAWATech #4Return of God Cutom Code 各 Stage にて呼び出す Microsoft.BizTalk.Services.IMessageInspector インターフェースを継承したクラスを呼び 出すことが可能 ステージ開始時と終了時に 呼び出すタイミングがある https://msdn.microsoft.com/ja-jp/library/azure/dn232389.aspx
  • 21.
    2015/03/21 NAWATech #4Return of God Hybrid Connection • オンプレミスとクラウドを簡易に 接続させるための仕組 • BizTalk Services の一部なため 使い出が難しい
  • 22.
    2015/03/21 NAWATech #4Return of God Create Hybrid Connection 現時点では動的 ポートには未対応
  • 23.
    2015/03/21 NAWATech #4Return of God BizTalk Adapter • 基幹業務(LOB = Line of Business)等と 連携を行う際に利用 – WCF による中継用サービスで LOB な システムと接続 – Hybrid Connection との棲み分け • アプリでローカルリソースと同様に利用するのが Hybrid Connection • 別途サービスを通してアクセスするのが BizTalk Adapter
  • 24.
    2015/03/21 NAWATech #4Return of God Price Cost • BizTalk Services は設置した時点で課金 (利用してなくても課金される) FREE DEVELOPER BASIC STANDARD PREMIUM 価格 - ¥9.18 / 1h (月 6,834) ¥48.96 / 1h (月 36,414) ¥298.86 / 1h (月 222,360) ¥597.72 / 1h (月 444,720) スケール限度 - - 8 8 8 EDI Bridge(1U) - 25 25 125 500 Agreements(1U) - 10 50 250 1000 Adapter(1U) - 1 2 5 25 Hybrid Connection 5 / 5GB 5 / 5GB 10 / 50GB 50 / 250GB 100 / 500GB 高可用性 - - あり あり あり 2015/03/18 時点の価格
  • 25.
    2015/03/21 NAWATech #4Return of God Azure ポータル Three BizTalk Poral
  • 26.
    2015/03/21 NAWATech #4Return of God ACL管理ポータル
  • 27.
    2015/03/21 NAWATech #4Return of God BizTalk Service アプリをデプロイ した後に構成する BizTalk 管理ポータル
  • 28.
    2015/03/21 NAWATech #4Return of God How to Use BizTalk
  • 29.
    2015/03/21 NAWATech #4Return of God How to Use BizTalk Service 利用するデータ種別は EDIFACT or AS2 利用するデータストア はグローバル SDK でコードによる カスタマイズ Hybrid Connetion か BizTalkAdapter BIzTalk ポータルからの 登録 VisualStudio で変換 マップの作成 VisualStudio でスキー マファイルの作成 スキーマ、変換マップ が作成済み
  • 30.
    2015/03/21 NAWATech #4Return of God BizTalk Portal - Partner BizTalk で利用する送受信元 (パートナー)を設定
  • 31.
    2015/03/21 NAWATech #4Return of God BizTalk Portal - Agreements BizTalk で利用するプロトコル (アグリーメント)を設定
  • 32.
    2015/03/21 NAWATech #4Return of God プロトコルの詳細設定
  • 33.
    2015/03/21 NAWATech #4Return of God アグリーメントの詳細設定
  • 34.
    2015/03/21 NAWATech #4Return of God 受信についての設定
  • 35.
    2015/03/21 NAWATech #4Return of God 結果の送信についての設定
  • 36.
    2015/03/21 NAWATech #4Return of God BizTalk Portal - Bridges BizTalk で利用する ブリッジ設定
  • 37.
    2015/03/21 NAWATech #4Return of God ブリッジの詳細設定
  • 38.
    2015/03/21 NAWATech #4Return of God BizTalk Portal -Resources 変換設定などの事前アップ ロードしたリソース
  • 39.
    2015/03/21 NAWATech #4Return of God BizTalk Portal - Tracking BizTalk で処理したメッセージ の追跡設定
  • 40.
    2015/03/21 NAWATech #4Return of God BizTalk Portal - Settings BizTalk で利用するアカウント の設定
  • 41.
    2015/03/21 NAWATech #4Return of God Backup Azure 管理ポータルからの手動バックアップ スケジューリングによる自動バックアップ
  • 42.
    2015/03/21 NAWATech #4Return of God Backup Rule • 同じ BizTalk Service 名には復元不可 • 同一以上のエディションに復元 • 復元後は「中断」状態 • 別データセンターにバックアップを 用意するのが基本
  • 43.
    2015/03/21 NAWATech #4Return of God Summary • BizTalk はデータ変換サービス/アプリ • Visual Studio 上でマップの定義ができ 単純な処理ならコードは不要 • 環境を整えるのは面倒でも、一度整えれ ば後は意外と楽・・・?
  • 44.
    2015/03/21 NAWATech #4Return of God appendix • SDK, EDI Schemas and Tools http://www.microsoft.com/en-us/download/details.aspx?id=39087 • Sample http://code.msdn.microsoft.com/windowsazure/ • Documentation http://msdn.microsoft.com/en-us/library/windowsazure/hh689864.aspx http://www.windowsazure.com/en-us/manage/services/biztalk-services/ • BizTalk Service Forums http://social.msdn.microsoft.com/Forums/en- US/azurebiztalksvcs/threads • BizTalk Team Blog http://blogs.msdn.com/b/biztalk_server_team_blog/