SlideShare ist ein Scribd-Unternehmen logo
1 von 36
Downloaden Sie, um offline zu lesen
ASP.NET MVC で
 Windows Azure の新機能
を余すところなく使ってみる!
      2012年9月29日
          #hokunet

             勇大地
はじめに


 Windows Azure 主要更新の紹介


 ASP.NET MVC を利用したシナリオ


まとめ

                         2
自己紹介
• 勇 大地(いさみ だいち)
 – Japan Windows Azure User Group コアメンバ(キリッ
 – 普段はスーツを着こなすリーマン(キリリッ
 – Microsoft MVP for Windows Azure 2010~
  ※Microsoft 様の社員ではありません
 – 「Windows Azure テクニカルハンドブック」執筆
  2012年6月更新で…(´;ω;`)ブワッ




                                              3
本日のゴール
• Windows Azure が大幅更新した概要を
  知って頂く

• ASP.NET MVC を利用したアプリ開発にて、
  何が better なシナリオかを理解いただく




                             4
Windows Azure への質問!
Q. ASP.NET 向けは PaaS じゃないの?

Q. .NET 4.5(常に最新版)が利用できる?

Q. 簡単なアプリを作ってもお金かかるの?

Q. 日本語 OS は利用できないんだよね?




                             5
Windows Azure の全体像
PaaS 型にとらわれない多様なサービスを提供
Marketplace      Business Analytics
                   Business             SQL            Data        Hadoop for
                Analytics in VMs      Reporting     Marketplace     BigData

Messaging                    Identity             Caching
               Service            Active
   Queues                                            Caching          CDN
                Bus              Directory

Computing                        Cloud            Delivery
                                Services
  VIRTUAL                                            Media           Mobile
               Web Sites        (Web Role
 MACHINES                      Worker Role)         Services        Services

Networking                              Data Management
    Virtual                 Traffic             SQL                   Blob
              Connect                                     Tables
   Network                 Manager            Database               Storage

                                                               新規      更新       6
Windows Azure のフォーカス
            VIRTUAL    Cloud
オンプレミス                            Web Sites
            MACHINES   Services
アプリケーション    アプリケーション   アプリケーション   アプリケーション


  データ         データ         データ       データ


ファイヤウォール    ファイヤウォール   ファイヤウォール


ネットワーク、    仮想ネットワーク、   仮想ネットワーク
   OS         OS


  仮想化


 ハードウェア


           アプリケーション フォーカス
                                              7
Windows Azure のフォーカス
            VIRTUAL    Cloud
オンプレミス                            Web Sites
            MACHINES   Services
アプリケーション    アプリケーション   アプリケーション   アプリケーション


  データ         データ         データ       データ


ファイヤウォール    ファイヤウォール   ファイヤウォール


ネットワーク、    仮想ネットワーク、   仮想ネットワーク
   OS         OS


  仮想化


 ハードウェア


           アプリケーション フォーカス
                                              8
Windows Azure への質問!
Q. ASP.NET 向けは PaaS じゃないの?
    → IaaS も可能です!
Q. .NET 4.5(常に最新版)が利用できる?
    → IaaS なら可能ですが、注意が必要!
Q. 簡単なアプリを作ってもお金かかるの?
    → Web サイトの free を利用すれば OK
Q. 日本語 OS は利用できないんだよね?
    → IaaS なら可能です!



                                9
はじめに


 Windows Azure 主要更新の紹介


 ASP.NET MVC を利用したシナリオ


まとめ

                         10
Windows Azure の主要な更新
VIRTUAL MACHINES           Web サイト
•   管理ポータル HTML5 化         • Node.js, PHP, ASP.NET を利用
•   IaaS 環境の利用が可能            した開発
•   Linux が選択可能            • Git, FTP, TFS でデプロイ
•   VHD を利用した高いポータビ        • 10 サイトまで無料
    リティ


SDK の拡充                    仮想ネットワーク
• Python, Node.js, PHP,    • クラウド上にユーザ指定のサブ
  Java, .NET 向けに提供           ネットを作成
• Windows, Mac, Linux をサ   • VPN でオンプレミスと接続し、
  ポート                        企業ネットワークの延長として
• GitHub でソース公開              利用可能


                                                         11
Windows Azure の主要な更新
VIRTUAL MACHINES              Web サイト
•   管理ポータル HTML5 化            • Node.js, PHP, ASP.NET を利用
•   IaaS 環境の利用が可能               した開発
•   Linux が選択可能               • Git, FTP, TFS でデプロイ
•   VHD を利用した高いポータビ           • 10 サイトまで無料
    リティ
                             まずは
SDK の拡充
                            VIRTUAL
                              仮想ネットワーク
• Python, Node.js, PHP,    MACHINES
                              • クラウド上にユーザ指定のサブ
  Java, .NET 向けに提供              ネットを作成
• Windows, Mac, Linux をサ      • VPN でオンプレミスと接続し、
  ポート                           企業ネットワークの延長として
• GitHub でソース公開                 利用可能


                                                            12
管理ポータルの刷新
HTML5 で作成された操作性の高い管理ポータル




  iPad        Galaxy SⅡ
                           13
Windows Server 2012 が選択可能
Linux、Windows Server 2012 対応
                        .NET Framework
                         4.5 が利用可能




         自分が作成したイメージを利用可能に
                                         14
VIRTUAL MACHINES の特徴
• 日本語 OS に設定可能
• .NET Framework 4.5 利用可能
• データの永続化、追加ディスク
 Blob に VHD 形式で保存
 Blob に追加 VHD として保存
• L4 ロードバランサ提供
 Endpoint 追加時にロードバランス指定可能


                            15
日本語 OS に設定可能
仮想マシン作成後、言語パックをインストールする
ことで日本語 OS に設定できる




                          16
.NET Framework 4.5 利用可能
1.   Windows Server 2012 のインスタンス作成
2.   ポート 80 番を開放
3.   リモートデスクトップで接続
4.   「役割と機能の追加」で IIS, .NET 4.5 を追加




                                     17
VHD を利用した高い移植性
VHD(Hyper-V) のイメージを介した高い移植性
1. 独自イメージの作成


                      3. オンプレミスに移行

2. BLOB 上から VHD を取得




  クラウド

                  オンプレミスにも容易に移行
                                     18
Linux, Mac 版の管理コマンド
Linux 版の管理コマンド




          もちろん Windows 版も
                            19
VIERTUAL MACHINES の操作




demo ...

                        20
Windows Azure の主要な更新
VIRTUAL MACHINES            Web サイト
•   管理ポータル HTML5 化          • Node.js, PHP, ASP.NET を利用
•   IaaS 環境の利用が可能             した開発
•   Linux が選択可能             • Git, FTP, TFS でデプロイ
•   VHD を利用した高いポータビ         • 10 サイトまで無料
    リティ
                             次は
SDK の拡充                      仮想ネットワーク
                           Web サイト
• Python, Node.js, PHP,     • クラウド上にユーザ指定のサブ
  Java, .NET 向けに提供            ネットを作成
• Windows, Mac, Linux をサ    • VPN でオンプレミスと接続し、
  ポート                         企業ネットワークの延長として
• GitHub でソース公開               利用可能


                                                          21
Windows Azure Web サイト
       • サイト作成は数十秒で完了
       • 10 サイト無料でスモール
         スタート
       • 容易なスケールアウトと
         占有インスタンスへの移行
       • Git, TFS, FTP でデプロイ
         可能
       • CMS ベースのサイト構築も
         容易
Web サイトの使用料金
     項目                   Free                Shared               Reserved
                                                          ¥7.00 (S) ~ ¥27.98 (L) /時
                                      ¥1.14/時間
                                                          間 (Preview)
価格                無料                  (Preview)
                                                          ¥10.49 (S) ~ ¥41.96 (L) /時
                                      ¥1.75/時間 (GA)
                                                          間 (GA)
最大サイト数            10                  100                 100
最大インスタンス
                  3                   3                   3
数
ストレージ             1GB*1               1GB*1               10GB*1
RDB (MySQL)       20MB*1              20MB*1              20MB*1
データ転送 (受信) 無料                         無料                  無料
                                      5GB/月まで無料           5GB/月まで無料
データ転送 (送信) 最大 165MB/日
                                      以降は標準従量課金           以降は標準従量課金
CPU 利用時間          60分/日まで             240分/日まで            専用

ドメイン              azurewebsites.net            無料で利用可能
                                      azurewebsites.net
                                                  azurewebsites.net
                                      カスタム*2              カスタム*2

*1 : 全サイト共有
*2 : CNAME, A レ
コード
Web サイト の操作




demo ...

              24
Web サイトと Web ロールの違い

機能が大きく異なるので注意                  Web     Web
                                   V.S
                               サイト     ロール

他サービスの利用(キャッシュ等)                ●          ●
   ASP.NET, PHP, Node.js 利用     ●          ●
                    GIT, FTP    ●
             ネットワーク分離                      ●
         VPN/Connect                       ●
      リモートデスクトップ                           ●
 アプリケーションのインストール                           ●
ランタイム、フレームワークの追加                           ●
                   ※ Web ロールは Cloud Services の一部
                                                   25
はじめに


 Windows Azure 主要更新の紹介


 ASP.NET MVC を利用したシナリオ


まとめ

                         26
他の 変態 Azure MVP は…

             全部 Worker Role
@kamebuchi    で良いじゃん

   Worker Role が有れば
     何でもできるよ
                                     @harutama


             ※ Worker Role は Cloud Services の一部
                                                  27
実際なんでもできますが…

                 日本語 PDF 作成
                 (フォントインストール)
             そういう

            問題ではない

Web サーバ構築
(nginx インストール)


                                28
各サービスの利用シナリオ
                     • 簡易なサイトを作成して公開したい
                     • まずは無料で初めて勉強したい場合
  Web サイト            • 既存 Web サイト (ASP 等)からの移行
   (Web Sites)

                     • 管理者権限を必要とする場合
                     • Caching 等の他のクラウドサービス
クラウド サービス              と連携が必要な場合
 (Cloud Services)    • N 層アプリケーション構築が必要

                     •   日本語 OS が必要な場合
                     •   GUI インストールが必要な場合
  仮想マシン              •   Office, PDF の帳票を生成したい場合
(Virtual Machines)   •   ネットワーク分離や VPN が必要
                         ※ Worker Role のやりすぎは変態向け   29
フロントエンドに
      Cloud Services
                         SQL
                       データベース
           帳票作成に
            IaaS

                       ストレージ

  フロントは                データ層
どう振り分ける?




       オンプレミス
      (AD, DB, DNS)
                                30
(解)MVC4 を利用した振り分け
  ASP.NET MVC4 のディスプレイモードを利用
DisplayModeProvider.Instance.Modes.Insert(0, new
DefaultDisplayMode("SP")
 {
    ContextCondition = (ctx =>
      ctx.Request.UserAgent.IndexOf("iPhone",
StringComparison.OrdinalIgnoreCase) >= 0 ||
      ctx.Request.UserAgent.IndexOf("Android",
StringComparison.OrdinalIgnoreCase) >= 0 )
});




                                                   31
はじめに


 Windows Azure 主要更新の紹介


 ASP.NET MVC を利用したシナリオ


まとめ

                         32
まとめ
                     無料でも
 PaaS 分野だけでなく
                     半永続的に
   IaaS 分野も強化
                      使える

IaaS/PaaS を組   ASP.NET MVC を利用
 み合わせていい        して柔軟なアーキテ
   とこどりを        クチャ設計が可能



                                 33
御清聴ありがとうございました
                 34
35
(参考)旧 Azure の アーキテクチャ
インター
ネット
                    Web
                   Web      Endpoint
       Endpoint    Web
                   ロール
                  ロール
                  ロール
                                  Worker
                                  Worker
                                 Worker
                                  ロール
                                 ロール
   LB

                   Worker        ロール
                   Worker
                  Worker
                   ロール
                  ロール
       Endpoint   ロール


        ストレージ・サービス              SQL Azure
                                            36

Weitere ähnliche Inhalte

Empfohlen

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Empfohlen (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

ASP.NET MVC でWindwos Azure の新機能を余すところなく使ってみる!

  • 1. ASP.NET MVC で Windows Azure の新機能 を余すところなく使ってみる! 2012年9月29日 #hokunet 勇大地
  • 2. はじめに Windows Azure 主要更新の紹介 ASP.NET MVC を利用したシナリオ まとめ 2
  • 3. 自己紹介 • 勇 大地(いさみ だいち) – Japan Windows Azure User Group コアメンバ(キリッ – 普段はスーツを着こなすリーマン(キリリッ – Microsoft MVP for Windows Azure 2010~ ※Microsoft 様の社員ではありません – 「Windows Azure テクニカルハンドブック」執筆 2012年6月更新で…(´;ω;`)ブワッ 3
  • 4. 本日のゴール • Windows Azure が大幅更新した概要を 知って頂く • ASP.NET MVC を利用したアプリ開発にて、 何が better なシナリオかを理解いただく 4
  • 5. Windows Azure への質問! Q. ASP.NET 向けは PaaS じゃないの? Q. .NET 4.5(常に最新版)が利用できる? Q. 簡単なアプリを作ってもお金かかるの? Q. 日本語 OS は利用できないんだよね? 5
  • 6. Windows Azure の全体像 PaaS 型にとらわれない多様なサービスを提供 Marketplace Business Analytics Business SQL Data Hadoop for Analytics in VMs Reporting Marketplace BigData Messaging Identity Caching Service Active Queues Caching CDN Bus Directory Computing Cloud Delivery Services VIRTUAL Media Mobile Web Sites (Web Role MACHINES Worker Role) Services Services Networking Data Management Virtual Traffic SQL Blob Connect Tables Network Manager Database Storage 新規 更新 6
  • 7. Windows Azure のフォーカス VIRTUAL Cloud オンプレミス Web Sites MACHINES Services アプリケーション アプリケーション アプリケーション アプリケーション データ データ データ データ ファイヤウォール ファイヤウォール ファイヤウォール ネットワーク、 仮想ネットワーク、 仮想ネットワーク OS OS 仮想化 ハードウェア アプリケーション フォーカス 7
  • 8. Windows Azure のフォーカス VIRTUAL Cloud オンプレミス Web Sites MACHINES Services アプリケーション アプリケーション アプリケーション アプリケーション データ データ データ データ ファイヤウォール ファイヤウォール ファイヤウォール ネットワーク、 仮想ネットワーク、 仮想ネットワーク OS OS 仮想化 ハードウェア アプリケーション フォーカス 8
  • 9. Windows Azure への質問! Q. ASP.NET 向けは PaaS じゃないの? → IaaS も可能です! Q. .NET 4.5(常に最新版)が利用できる? → IaaS なら可能ですが、注意が必要! Q. 簡単なアプリを作ってもお金かかるの? → Web サイトの free を利用すれば OK Q. 日本語 OS は利用できないんだよね? → IaaS なら可能です! 9
  • 10. はじめに Windows Azure 主要更新の紹介 ASP.NET MVC を利用したシナリオ まとめ 10
  • 11. Windows Azure の主要な更新 VIRTUAL MACHINES Web サイト • 管理ポータル HTML5 化 • Node.js, PHP, ASP.NET を利用 • IaaS 環境の利用が可能 した開発 • Linux が選択可能 • Git, FTP, TFS でデプロイ • VHD を利用した高いポータビ • 10 サイトまで無料 リティ SDK の拡充 仮想ネットワーク • Python, Node.js, PHP, • クラウド上にユーザ指定のサブ Java, .NET 向けに提供 ネットを作成 • Windows, Mac, Linux をサ • VPN でオンプレミスと接続し、 ポート 企業ネットワークの延長として • GitHub でソース公開 利用可能 11
  • 12. Windows Azure の主要な更新 VIRTUAL MACHINES Web サイト • 管理ポータル HTML5 化 • Node.js, PHP, ASP.NET を利用 • IaaS 環境の利用が可能 した開発 • Linux が選択可能 • Git, FTP, TFS でデプロイ • VHD を利用した高いポータビ • 10 サイトまで無料 リティ まずは SDK の拡充 VIRTUAL 仮想ネットワーク • Python, Node.js, PHP, MACHINES • クラウド上にユーザ指定のサブ Java, .NET 向けに提供 ネットを作成 • Windows, Mac, Linux をサ • VPN でオンプレミスと接続し、 ポート 企業ネットワークの延長として • GitHub でソース公開 利用可能 12
  • 14. Windows Server 2012 が選択可能 Linux、Windows Server 2012 対応 .NET Framework 4.5 が利用可能 自分が作成したイメージを利用可能に 14
  • 15. VIRTUAL MACHINES の特徴 • 日本語 OS に設定可能 • .NET Framework 4.5 利用可能 • データの永続化、追加ディスク Blob に VHD 形式で保存 Blob に追加 VHD として保存 • L4 ロードバランサ提供 Endpoint 追加時にロードバランス指定可能 15
  • 17. .NET Framework 4.5 利用可能 1. Windows Server 2012 のインスタンス作成 2. ポート 80 番を開放 3. リモートデスクトップで接続 4. 「役割と機能の追加」で IIS, .NET 4.5 を追加 17
  • 18. VHD を利用した高い移植性 VHD(Hyper-V) のイメージを介した高い移植性 1. 独自イメージの作成 3. オンプレミスに移行 2. BLOB 上から VHD を取得 クラウド オンプレミスにも容易に移行 18
  • 19. Linux, Mac 版の管理コマンド Linux 版の管理コマンド もちろん Windows 版も 19
  • 21. Windows Azure の主要な更新 VIRTUAL MACHINES Web サイト • 管理ポータル HTML5 化 • Node.js, PHP, ASP.NET を利用 • IaaS 環境の利用が可能 した開発 • Linux が選択可能 • Git, FTP, TFS でデプロイ • VHD を利用した高いポータビ • 10 サイトまで無料 リティ 次は SDK の拡充 仮想ネットワーク Web サイト • Python, Node.js, PHP, • クラウド上にユーザ指定のサブ Java, .NET 向けに提供 ネットを作成 • Windows, Mac, Linux をサ • VPN でオンプレミスと接続し、 ポート 企業ネットワークの延長として • GitHub でソース公開 利用可能 21
  • 22. Windows Azure Web サイト • サイト作成は数十秒で完了 • 10 サイト無料でスモール スタート • 容易なスケールアウトと 占有インスタンスへの移行 • Git, TFS, FTP でデプロイ 可能 • CMS ベースのサイト構築も 容易
  • 23. Web サイトの使用料金 項目 Free Shared Reserved ¥7.00 (S) ~ ¥27.98 (L) /時 ¥1.14/時間 間 (Preview) 価格 無料 (Preview) ¥10.49 (S) ~ ¥41.96 (L) /時 ¥1.75/時間 (GA) 間 (GA) 最大サイト数 10 100 100 最大インスタンス 3 3 3 数 ストレージ 1GB*1 1GB*1 10GB*1 RDB (MySQL) 20MB*1 20MB*1 20MB*1 データ転送 (受信) 無料 無料 無料 5GB/月まで無料 5GB/月まで無料 データ転送 (送信) 最大 165MB/日 以降は標準従量課金 以降は標準従量課金 CPU 利用時間 60分/日まで 240分/日まで 専用 ドメイン azurewebsites.net 無料で利用可能 azurewebsites.net azurewebsites.net カスタム*2 カスタム*2 *1 : 全サイト共有 *2 : CNAME, A レ コード
  • 25. Web サイトと Web ロールの違い 機能が大きく異なるので注意 Web Web V.S サイト ロール 他サービスの利用(キャッシュ等) ● ● ASP.NET, PHP, Node.js 利用 ● ● GIT, FTP ● ネットワーク分離 ● VPN/Connect ● リモートデスクトップ ● アプリケーションのインストール ● ランタイム、フレームワークの追加 ● ※ Web ロールは Cloud Services の一部 25
  • 26. はじめに Windows Azure 主要更新の紹介 ASP.NET MVC を利用したシナリオ まとめ 26
  • 27. 他の 変態 Azure MVP は… 全部 Worker Role @kamebuchi で良いじゃん Worker Role が有れば 何でもできるよ @harutama ※ Worker Role は Cloud Services の一部 27
  • 28. 実際なんでもできますが… 日本語 PDF 作成 (フォントインストール) そういう 問題ではない Web サーバ構築 (nginx インストール) 28
  • 29. 各サービスの利用シナリオ • 簡易なサイトを作成して公開したい • まずは無料で初めて勉強したい場合 Web サイト • 既存 Web サイト (ASP 等)からの移行 (Web Sites) • 管理者権限を必要とする場合 • Caching 等の他のクラウドサービス クラウド サービス と連携が必要な場合 (Cloud Services) • N 層アプリケーション構築が必要 • 日本語 OS が必要な場合 • GUI インストールが必要な場合 仮想マシン • Office, PDF の帳票を生成したい場合 (Virtual Machines) • ネットワーク分離や VPN が必要 ※ Worker Role のやりすぎは変態向け 29
  • 30. フロントエンドに Cloud Services SQL データベース 帳票作成に IaaS ストレージ フロントは データ層 どう振り分ける? オンプレミス (AD, DB, DNS) 30
  • 31. (解)MVC4 を利用した振り分け ASP.NET MVC4 のディスプレイモードを利用 DisplayModeProvider.Instance.Modes.Insert(0, new DefaultDisplayMode("SP") { ContextCondition = (ctx => ctx.Request.UserAgent.IndexOf("iPhone", StringComparison.OrdinalIgnoreCase) >= 0 || ctx.Request.UserAgent.IndexOf("Android", StringComparison.OrdinalIgnoreCase) >= 0 ) }); 31
  • 32. はじめに Windows Azure 主要更新の紹介 ASP.NET MVC を利用したシナリオ まとめ 32
  • 33. まとめ 無料でも PaaS 分野だけでなく 半永続的に IaaS 分野も強化 使える IaaS/PaaS を組 ASP.NET MVC を利用 み合わせていい して柔軟なアーキテ とこどりを クチャ設計が可能 33
  • 35. 35
  • 36. (参考)旧 Azure の アーキテクチャ インター ネット Web Web Endpoint Endpoint Web ロール ロール ロール Worker Worker Worker ロール ロール LB Worker ロール Worker Worker ロール ロール Endpoint ロール ストレージ・サービス SQL Azure 36