windows azure...

33
1 Windows Azure の機能アップデート概要 日本マイクロソフト株式会社 デベロッパー&プラットフォーム統括本部 プラットフォーム戦略アドバイザー 佐藤 直樹

Upload: others

Post on 28-Oct-2019

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Windows Azure の機能アップデート概要download.microsoft.com/download/F/7/1/F71C62D0-EF46-4231-A52C-3F6BE7D… · –Windows Azure アプリケーション開発の概要を理解する

1

Windows Azure の機能アップデート概要

日本マイクロソフト株式会社

デベロッパー&プラットフォーム統括本部

プラットフォーム戦略アドバイザー

佐藤 直樹

Page 2: Windows Azure の機能アップデート概要download.microsoft.com/download/F/7/1/F71C62D0-EF46-4231-A52C-3F6BE7D… · –Windows Azure アプリケーション開発の概要を理解する

2

セッションの目的とゴール

• セッションの目的 – Windows Azure アプリケーション開発の概要を理解する

– Windows Azure のロードマップと Azure SDK のアップデートを理解する

• セッションのゴール – Visual Studio を使った Windows Azure アプリケーション開発を実践できるようになる

– Windows Azure のロードマップを活用し、実プロジェクトにおいて Windows Azure 採用の検討、採用を行うことができるようになる

Page 3: Windows Azure の機能アップデート概要download.microsoft.com/download/F/7/1/F71C62D0-EF46-4231-A52C-3F6BE7D… · –Windows Azure アプリケーション開発の概要を理解する

3

Agenda

• はじめに

• Windows Azure 対応アプリケーションの開発 – 準備

– ローカル環境での開発

– クラウド環境でのデバッグのためのツール

• まとめ

Page 4: Windows Azure の機能アップデート概要download.microsoft.com/download/F/7/1/F71C62D0-EF46-4231-A52C-3F6BE7D… · –Windows Azure アプリケーション開発の概要を理解する

4

はじめに

Page 5: Windows Azure の機能アップデート概要download.microsoft.com/download/F/7/1/F71C62D0-EF46-4231-A52C-3F6BE7D… · –Windows Azure アプリケーション開発の概要を理解する

5

Windows Azure 概要 マイクロソフトのクラウド OS

• Windows Azure プラットフォームのコアとなるクラウド OS

Page 6: Windows Azure の機能アップデート概要download.microsoft.com/download/F/7/1/F71C62D0-EF46-4231-A52C-3F6BE7D… · –Windows Azure アプリケーション開発の概要を理解する

6

Windows Azure 概要

• PaaS 型パブリッククラウドサービス

• 用途に応じたロールモデルが提供され、環境が標準化

OS(Guest OS)

Web サーバー

フレームワーク

アプリケーション

OSサービス

仮想化/Host OS

ハードウェア

SaaS

HaaS IaaS

PaaS

アプリケーション

Windows Server 2008/R2

IIS

. NET Framework

OS Services

Hyper-V (Windows Server 2008/R2)

x64

Web ロール Worker ロー

VM ロール

Page 7: Windows Azure の機能アップデート概要download.microsoft.com/download/F/7/1/F71C62D0-EF46-4231-A52C-3F6BE7D… · –Windows Azure アプリケーション開発の概要を理解する

7

開発環境 Visual Studio へのプラグインで Azure 用の IDE へ

• Windows Azure Tools for Visual Studio – 最新版は Version 1.3 (2010 年 11 月リリース)

– Azure SDK + VS拡張機能

– Visual Studio 2010 に対応

– サービス発行の自動化

– .NET Framework 4 のサポート

– インテリトレース機能のサポート※ 1

– 日本語版あり

※ 1. 32 ビット版 Windows で使用する際には修正モジュールが必要

Page 8: Windows Azure の機能アップデート概要download.microsoft.com/download/F/7/1/F71C62D0-EF46-4231-A52C-3F6BE7D… · –Windows Azure アプリケーション開発の概要を理解する

8 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 1.10

Guest OS と .NET Framework の対応

• 2系統の Guest OS

– 1.x : Windows Server 2008

– 2.x : Windows Server 2008 R2

2.0 2.1 2.2

Page 9: Windows Azure の機能アップデート概要download.microsoft.com/download/F/7/1/F71C62D0-EF46-4231-A52C-3F6BE7D… · –Windows Azure アプリケーション開発の概要を理解する

9

関連ツール 開発や管理を便利にする周辺ツール

• Windows Azure – Windows Azure 開発ポータル -

http://windows.azure.com/ – Windows Azure MMC – Windows Azure Service Management CmdLets – myAzureStorage - https://www.myazurestorage.com/ 等

• SQL Azure – Windows Azure 開発ポータル -

http://windows.azure.com/ – SQL Server 2008 R2 Management Studio (SSMS)

Page 10: Windows Azure の機能アップデート概要download.microsoft.com/download/F/7/1/F71C62D0-EF46-4231-A52C-3F6BE7D… · –Windows Azure アプリケーション開発の概要を理解する

10

PHP、Java サポートの強化 Eclipse も Windows Azure の IDE に

• Windows Azureは、オープンな プラットフォーム

• PHPやJavaなどに対するSDK、 ドライバ、ツールを提供

• PHP – Windows Azure Tools for Eclipse V2 発表 (CTP リリース済み)

• Java – Windows Azure SDK for Java V2 発表 (CTP リリース済み)

– Windows Azure Tools for Eclipse for Java 発表 (2010 年内にCTP リリース)

– さらなる Java 対応の強化 (パフォーマンス改善など) を計画

Page 11: Windows Azure の機能アップデート概要download.microsoft.com/download/F/7/1/F71C62D0-EF46-4231-A52C-3F6BE7D… · –Windows Azure アプリケーション開発の概要を理解する

11

Windows Azure Platform アップデートの歴史

2008年10月 2010年6月 2009年11月

2010年2月

• Full Trust, PHP, Java, CDN CTP 等の対応

• VM ロール, Project Sydney, 価格と SLA の発表

• Project “Dallas” CTP

• Windows Azure アップデート

• .NET Framework 4

• OS Versioning

• CDN

• SQL Azure アップデート

• 50GB データベース

•空間データ サポート

• DAC サポート

Windows Azure Platform リリース

• Windows Azure Platform 発表

•最初の CTP リリース

SQL Azure 発表

2009年3月

Page 12: Windows Azure の機能アップデート概要download.microsoft.com/download/F/7/1/F71C62D0-EF46-4231-A52C-3F6BE7D… · –Windows Azure アプリケーション開発の概要を理解する

12

Windows Azure: 新機能アナウンス

Windows Azure

• 管理者モード &

スタートアップ タスク

• フル IIS サポート

• ネットワークの拡張

• リモート デスクトップ

• VM ロール

• Windows Azure Connect

• Extra Small インスタンス

• CDN の拡張

SQL Azure

• Database Manager for SQL

Azure

• SQL Azure Reporting

• SQL Azure Data Sync

• SQL Azure Federation

Windows Azure

AppFabric

• AppFabric Caching

• AppFabric Connect

(Integration)

• AppFabric Composition Model

• AppFabric Composite App

Service

黒:2010年内リリース、 緑:2010年 CTP/ベータ リリース予定、 茶:2011年 CTP/ベータ リリース予定

Page 13: Windows Azure の機能アップデート概要download.microsoft.com/download/F/7/1/F71C62D0-EF46-4231-A52C-3F6BE7D… · –Windows Azure アプリケーション開発の概要を理解する

13

Windows Azure のロードマップ (抜粋)

リモートデスクトップ リモートデスクトップによるサーバー管理

システム特権昇格 (管理者モード/スタートアップタスク)

IIS 設定などのために、一時的にシステム特権で設定スクリプト等のアプリケーションを動作させる機能

フル IIS ホスト可能な Web コア (HWC) 等ではなく IIS のフル機能

ロール間 コミュニケーション拡張

VLAN やポート定義や内部コミュニケーションで使用するポートを設定

WS2008 R2 サポート Guest OS のベースが Windows Server 2008 から Windows Server 2008 R2 に更新

Multiple Admin 単一の Windows Azure アカウントに対し複数の Live ID を管理アカウントとして設定

Windows Azure Connect オンプレミスとクラウドをセキュアに接続する機能

VM ロール クラウド上の仮想マシン

Page 14: Windows Azure の機能アップデート概要download.microsoft.com/download/F/7/1/F71C62D0-EF46-4231-A52C-3F6BE7D… · –Windows Azure アプリケーション開発の概要を理解する

14

Windows Azure ロードマップ 概念図

ロール間 コミュニケーション拡張

Page 15: Windows Azure の機能アップデート概要download.microsoft.com/download/F/7/1/F71C62D0-EF46-4231-A52C-3F6BE7D… · –Windows Azure アプリケーション開発の概要を理解する

15

Windows Azure 対応 アプリケーションの開発

Page 16: Windows Azure の機能アップデート概要download.microsoft.com/download/F/7/1/F71C62D0-EF46-4231-A52C-3F6BE7D… · –Windows Azure アプリケーション開発の概要を理解する

16

開発環境の準備 Windows Azure Tools for Visual Studio が提供するシームレス

• [発行] メニューをワンクリックすると、アプリケーションがクラウドに配置 – 発行用パッケージの作成から Windows Azure 環境への配置を自動化

– 資格情報とサブスクリプション ID による認証

Page 17: Windows Azure の機能アップデート概要download.microsoft.com/download/F/7/1/F71C62D0-EF46-4231-A52C-3F6BE7D… · –Windows Azure アプリケーション開発の概要を理解する

17

発行前の準備

• あらかじめ用意する情報 – Windows Azure 管理ポータル機能に接続するための資格情報

• 発行時に必要な情報 – 使用する資格情報 – 発行先 (Production と Staging)

– 発行で使用するストレージサービス

– ラベルの指定 – IntelliTrace の指定 – リモートデスクトップ

.CER

Page 18: Windows Azure の機能アップデート概要download.microsoft.com/download/F/7/1/F71C62D0-EF46-4231-A52C-3F6BE7D… · –Windows Azure アプリケーション開発の概要を理解する

18

資格情報の作成手順 (1)

• [発行] ダイアログで資格情報の追加を選択し、その後のワークフローを実行する

資格情報の作成画面 資格情報 (証明書) を作成 (ローカルに作成される)

資格情報の保存場所 (パス) をコピー

証明書をクラウドにアップロード

Page 19: Windows Azure の機能アップデート概要download.microsoft.com/download/F/7/1/F71C62D0-EF46-4231-A52C-3F6BE7D… · –Windows Azure アプリケーション開発の概要を理解する

19

資格情報の作成手順 (2)

ポータルからサブスクリプション ID をコピーして入力

参考: アップロードした証明書情報

参考: ローカルに保持している証明書情報

Page 20: Windows Azure の機能アップデート概要download.microsoft.com/download/F/7/1/F71C62D0-EF46-4231-A52C-3F6BE7D… · –Windows Azure アプリケーション開発の概要を理解する

20

プロジェクトの作成

• 用意された Visual Studio のテンプレートから作成 – Windows Azure クラウドサービス

クラウド配置に必要な情報、コンフィギュレーション情報を保持

使用するロールを選択

Page 21: Windows Azure の機能アップデート概要download.microsoft.com/download/F/7/1/F71C62D0-EF46-4231-A52C-3F6BE7D… · –Windows Azure アプリケーション開発の概要を理解する

21

ロールの設定

• ロール プロジェクトのプロパティ – VM サイズ

– インスタンス数

– 変数設定

– エンド ポイント

– ローカル ストレージ

– 証明書

パフォーマンスと課金にかかわる重要な設定

Page 22: Windows Azure の機能アップデート概要download.microsoft.com/download/F/7/1/F71C62D0-EF46-4231-A52C-3F6BE7D… · –Windows Azure アプリケーション開発の概要を理解する

22

ローカルでの実行とデバッグ

• [F5] キーでデバッグ開始 – 開発のエミュレーション環境が起動する

Compute Emulator

Storage Emulator

Page 23: Windows Azure の機能アップデート概要download.microsoft.com/download/F/7/1/F71C62D0-EF46-4231-A52C-3F6BE7D… · –Windows Azure アプリケーション開発の概要を理解する

23

2 つのエミュレーション UI

• Compute Emulation UI –稼働中の Role インスタンスの稼働状況、ログの確認、操作

• Storage Emulation UI –テーブル、Blob、キュー、ドライブの稼働状況の確認、操作

Page 24: Windows Azure の機能アップデート概要download.microsoft.com/download/F/7/1/F71C62D0-EF46-4231-A52C-3F6BE7D… · –Windows Azure アプリケーション開発の概要を理解する

24

マルチ IIS サイトと仮想アプリケーション

• フル IIS を Web ロールのホスティングとして利用 – ホスト可能な Web コア (HWC) での WaWorkerHost.exe ではない

• Web ロールのサービス定義ファイル (csdef) に構成を記述

• デバッガから手動でプロセスにアタッチ

Azure Tool 1.2

Azure Tool (New)

Page 25: Windows Azure の機能アップデート概要download.microsoft.com/download/F/7/1/F71C62D0-EF46-4231-A52C-3F6BE7D… · –Windows Azure アプリケーション開発の概要を理解する

25

システム定義ファイル (csdef)

<WebRole name="WebRole1">

<Sites>

<Site name="Web">

<VirtualApplication name="mail" physicalDirectory="C:\Users\jnak\Desktop\Scratch\WebSite"/>

<Bindings>

<Binding name="HttpIn" endpointName="HttpIn" />

</Bindings>

</Site>

<Site name="PDC" physicalDirectory="C:\Users\jnak\Desktop\Scratch\SecondWebSite">

<Bindings>

<Binding name="HttpIn" endpointName="HttpIn" hostHeader="pdctest" />

</Bindings>

</Site>

Page 26: Windows Azure の機能アップデート概要download.microsoft.com/download/F/7/1/F71C62D0-EF46-4231-A52C-3F6BE7D… · –Windows Azure アプリケーション開発の概要を理解する

26

システム定義ファイル (csdef)

<WebRole name="WebRole1">

<Sites>

<Site name="Web">

<VirtualApplication name="mail" physicalDirectory="C:\Users\jnak\Desktop\Scratch\WebSite"/>

<Bindings>

<Binding name="HttpIn" endpointName="HttpIn" />

</Bindings>

</Site>

<Site name="PDC" physicalDirectory="C:\Users\jnak\Desktop\Scratch\SecondWebSite">

<Bindings>

<Binding name="HttpIn" endpointName="HttpIn" hostHeader="pdctest" />

</Bindings>

</Site> ホストヘッダーに関する情報を hosts ファイルに記述 例: 127.0.0.1 pdctest

Page 27: Windows Azure の機能アップデート概要download.microsoft.com/download/F/7/1/F71C62D0-EF46-4231-A52C-3F6BE7D… · –Windows Azure アプリケーション開発の概要を理解する

27

リモートデスクトップ

• クラウド内のデバッグや障害調査を容易 – Web ロール、Woker ロール、VM ロール

• 運用環境でのカスタマイズは要注意 – OS 更新時、ハードウェア障害発生時の変更に反映されない

.PFX

Page 28: Windows Azure の機能アップデート概要download.microsoft.com/download/F/7/1/F71C62D0-EF46-4231-A52C-3F6BE7D… · –Windows Azure アプリケーション開発の概要を理解する

28

IntelliTrace

• クラウド内でのヒストリカルなデバッグ

• Windows Azure コンピューティング エクスプローラーよりインスタンスの IntelliTrace ログを取得および表示

Page 29: Windows Azure の機能アップデート概要download.microsoft.com/download/F/7/1/F71C62D0-EF46-4231-A52C-3F6BE7D… · –Windows Azure アプリケーション開発の概要を理解する

29

Diagnostics

• ロールのプロパティで Diagnostics の設定情報を登録

public override bool OnStart() { DiagnosticMonitorConfiguration dmc = DiagnosticMonitor.GetDefaultInitialConfiguration(); dmc.DiagnosticInfrastructureLogs.ScheduledTransferPeriod = TimeSpan.FromMinutes(1); DiagnosticMonitor.Start("Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString", dmc); return base.OnStart(); }

Page 30: Windows Azure の機能アップデート概要download.microsoft.com/download/F/7/1/F71C62D0-EF46-4231-A52C-3F6BE7D… · –Windows Azure アプリケーション開発の概要を理解する

30

まとめ

Page 31: Windows Azure の機能アップデート概要download.microsoft.com/download/F/7/1/F71C62D0-EF46-4231-A52C-3F6BE7D… · –Windows Azure アプリケーション開発の概要を理解する

31

まとめ

• PaaS 型クラウドサービス Windows Azure Platform

• シームレスなクラウド対応のアプリケーション開発

• Visual Studio 2010 が開発者のエクスペリエンスを最大化

• 実シナリオに沿って Windows Azure の機能を強化

Page 32: Windows Azure の機能アップデート概要download.microsoft.com/download/F/7/1/F71C62D0-EF46-4231-A52C-3F6BE7D… · –Windows Azure アプリケーション開発の概要を理解する

32

リファレンス

Windows Azure デベロッパーセンター

– http://msdn.microsoft.com/ja-jp/windowsazure/

Windows Azure 開発ポータル

– http://windows.azure.com/

Microsoft Online Services カスタマー ポータル (MOCP)

– https://mocp.microsoftonline.com/

Windows Azure ロードマップ (英語)

– http://www.microsoft.com/presspass/presskits/cloud/docs/MSPDCFS.docx

Azure の稼働状況確認サイト(英語)

– http://www.microsoft.com/windowsazure/support/status/servicedashboard.aspx

Page 33: Windows Azure の機能アップデート概要download.microsoft.com/download/F/7/1/F71C62D0-EF46-4231-A52C-3F6BE7D… · –Windows Azure アプリケーション開発の概要を理解する

33

© 2011 Microsoft Corporation. All rights reserved. Microsoft, Windows and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.

The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of

Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.