SlideShare a Scribd company logo
Ashvini Shahane
Head – Strategic Services Unit
Synergetics IT Services India Pvt. Ltd.
Setting up the cloud
Getting started with the Windows Azure
Tools
Building a new Cloud Service
  Edit, build, debug
Migrating an existing ASP.NET Web
Application
Deploying to Windows Azure
Faster and more user friendly
portal for Windows Azure Platform
services
More visibility and control
Supports multiple service
administrators (co-admins)
Enable and connect to Windows
Azure instances using Remote
Desktop
Built on the Windows Azure
Service Management APIs
Setting up the Hosted Service and the
Storage accounts
New Redesigned Portal
  Improved workflows – fewer clicks and less
  waiting
  Management console
User Management – NEW
  Add Co-Admin to an account
SQL Azure account
  Creating the server
  Creating the database
Setting up the cloud
Getting started with the Windows Azure
Tools
Add-in for Visual Studio 2008 and Visual Studio
2010.
   Support building Cloud Services that use .NET 3.5
   SP1, .NET 4
   Installable via the Web Platform Installer (2008
   only) – http://microsoft.com/web
   Download from http://windowsazure.com
Free download. Works with (the free) Visual
Web Developer Express 2008 & 2010
SQL Azure
   Support in SQL Server 2008 R2 Management
   Studio
   Visual Studio 2010 Server Explorer
Getting started with the Windows Azure
Tools
Building a new Cloud Service
  Edit, build, debug
SDK     Portal         Hosted
                         Service




                         Storage




Develop   Deploy   Run
Role




       Code   Configuration
Developing and deploying windows azure applications
Inherits RoleEntryPoint
OnStart() Method
   Called by Fabric on startup, allows you to perform
   initialization tasks.
   Reports Busy status to load balancer until you return
   true.
Run() Method
   Main logic is here – can do anything, typically infinite
   loop. Should never exit.
OnStop() Method
   Called when role is to be shutdown, graceful exit.
   30 Seconds to tidy up
Developing and deploying windows azure applications
Defines the shape of each role
Internal and External Endpoints
Configuration setting definitions

 <WebRole name="WebRole1">
   <InputEndpoints>
    <InputEndpoint name="HttpIn" protocol="http" port="80" />
   </InputEndpoints>
   <ConfigurationSettings>
        <Setting name="DiagnosticsConnectionString" />
        <Setting name="HelloMessage"/>
   </ConfigurationSettings>
  </WebRole>
Defines the scale of each role
Instance count
Configuration values

 <Role name="WebRole1">
   <Instances count="1" />
   <ConfigurationSettings>
     <Setting name="DiagnosticsConnectionString"
 value="UseDevelopmentStorage=true" />
     <Setting name="HelloMessage" value="Hello World!" />
   </ConfigurationSettings>
  </Role>
Port 80                        Port 8090
          WA-GUEST-OS-1.3      Http
Http




                  200px

                  200px



     S                    XL                     M

                                           StatusSvc
                                           HTTP
Building a New Windows Azure Cloud
Service

DEMO
Getting started with the Windows Azure
Tools
Core Windows Azure concepts
Building a new Cloud Service
  Edit, build, debug
Migrating an existing ASP.NET Web
Application
Windows Azure Tools for Visual Studio pre-
defined role templates
  ASP.NET WebForms Role
  ASP.NET MVC 2 Role
Developing and deploying windows azure applications
Migrating an existing ASP.NET Application

DEMO
What about the data?
What about Session State?
What about data and output caching?
How will authentication be handled?
How can I connect back to on premise
server applications?
SQL Azure Database Management

DEMO
Load balancer round-robins requests in
multi instance roles
Follow web farm best practices
  Do not store state on individual instances
  Do not assume subsequent requests will hit the
  same instance
    Don‟t forget things like dynamically generated
    images loaded by a page
A distributed, in-memory cache for
applications running in Windows Azure
Simple administration; end-user doesn‟t
bother with configuration, deployment, or
management
Highlight scalable solution with low latency
and high throughput
Based on Windows Server AppFabric
Caching
Currently available in AppFabric LABS
Portal as a CTP
Memory




Network




 Disk
Caching Service in Action

DEMO
ASP.NET providers for session state and
page output caching
Cache any managed object
   No object size limits
   No serialization costs for local caching
Easily integrates into existing applications
Windows Azure Load Balancer uses round-robin allocation.
Session state must persist to client or storage on every
request
Persist to Storage via Session State Provider
   Windows Azure AppFabric Caching
   SQL Azure
   Windows Azure Storage
   Custom
Persist to Client
   Use cookies
Using Windows Azure AppFabric Caching
as the session store
In-memory, distributed cache
Based on Windows Server AppFabric
Caching
Used the Microsoft.Web.DistributedCache
assembly found in the SDK
Currently available in AppFabric LABS
Portal as CTP
Developing and deploying windows azure applications
Use SQL Azure as backing store
Round trip to database twice per request
  Read at request start
  Write at request end
Scale out across multiple DBs
  Use session state partitioning
SQL Azure is competitive on cost basis
Sample ASP.NET Providers
(Session, Membership, Role etc…)
Sample Code
http://code.msdn.microsoft.com/windowsazu
resamples
Uses Blob + Table Storage
Several storage transactions per request

 Sample Provider should be treated as a
          starting point only.
Forms Authentication Migration
  SQL Azure as Membership Store
    Only change connection string
  Azure Table Storage as Membership Store
    Need to use TableStorageMembershipProvider and
    TableStorageRoleProvider.


Claims based authentication
  Windows Azure AppFabric Access Control
  Service
Used to authenticate and authorize users
Integration Single Sign On and centralized
authorization into your web applications
Standards-based identity providers
  Enterprise directories (e.g. Active Directory
  Federation Server v2.0)
  Web identities (e.g. Windows Live ID, Google,
  Yahoo!, and Facebook)
V1 available in production
Developing and deploying windows azure applications
Simplify and automate                                                 Provide abstraction for
      complex authorization                                                 federated claims-based
      schema requests.                                                      authentication.




                              Easily establish secure trust relationship.



Data and Applications                                                       Applications or Users
Developing and deploying windows azure applications
•   Secure network connectivity
    between on-premises and
    cloud                              Windows Azure
    • Supports standard IP protocols

•   Example use cases:
    • Enterprise app migrated to
      Windows Azure that requires
      access to on-premise SQL
      Server
    • Windows Azure app domain-
      joined to corporate Active
      Directory
    • Remote administration and
      trouble-shooting of Windows
      Azure Roles
                                            Enterprise

•   Simple setup and
•   To use Connect with a WA service, enable one or more of its
    Roles
    • For Web & Worker Role, include the Connect plug-in as part of Service
      Model (.csdef file)
    • For VM role, install the Connect agent in VHD image using the Connect
      VM install package
    • Connect agent will automatically be deployed for each new role
      instance that starts up

•   Connect agent configuration managed through the
    ServiceConfiguration (.cscfg) file
    • One required setting - “ActivationToken”
        o Unique per-subscription token, accessed from Admin UI
    • Optional settings for managing AD domain-join and service availability
•   Local computers are enabled for connectivity by installing & activating the
    Connect agent
    • Web-based installation link
         o Retrieved from admin UI
         o Contains per-subscription activation token embedded in URL
    • Standalone install package
         o Reads activation token from registry key
         o Enables installation using existing S/W distribution tools
•   Connect agent tray icon & client UI
    • View activation state & connectivity status
    • Refresh network policy
•   Connect agent automatically manages network connectivity
    •   Sets up virtual network adapter
    •   “Auto-connects” to Connect relay service as needed
    •   Configures IPSec policy based on network policy
    •   Enables DNS name resolution
    •   Automatically syncs latest network policies
•   Connect network policy managed through Windows Azure
    admin portal
    • Managed on a per-subscription basis
•   Local computers are organized into Groups
    • E.g. “SQL Servers”, “My Laptops”, “Project Foo”
    • A computer can only belong to a single group at a time
    • Newly activated computers are „unassigned‟ by default
•   WA Roles can be connected to Groups
    • Enables network connectivity between all Role instances (VM‟s) and
      local computers in the Group
    • WA Connect does not control connectivity between Roles or Role
      instances (done through existing mechanisms)
•   Groups can be connected to other Groups
    • Enables network connectivity between computers in each group
    • In addition, a Group can be „interconnected‟ - enables connectivity
      within a group
    • Useful for ad-hoc & roaming scenarios
Windows Azure

              Role A                     Role B

           Instance3
             Instance2              Instance3
                                      Instance2
               Instance                 Instance




                       My Servers                  My Laptops



SERVER1

                                     DEV_LAPTOP1
          SERVER2       SERVER3                DEV_LAPTOP2
Getting started with the Windows Azure
Tools
Core Windows Azure concepts
Building a new Cloud Service
  Edit, build, debug
Migrating an existing ASP.NET Web
Application
Deploying to Windows Azure
Create a new deployment:
  Visual Studio
  Windows Azure Portal
  Command line and Powershell

Built using the Service Management REST
API
Hosted Service and Storage Account
created through the portal
Deploying to Windows Azure using Visual
Studio 2010

DEMO
Deploy via T-SQL scripts

Support for SQL Server Data-Tier Applications
(DAC) feature
   DACPAC is unit of deployment
   Cloud or on-premise is a deployment time choice

Create Logical Server in same region as Windows
Azure Affinity Group for code-near architecture

   Support existing and new forms of deployment
If using Windows Azure Storage / SQL
Server
   Move only storage to the cloud first
   Test with on premise application
   Move the application to cloud
Any non-framework dll‟s
   Set “Copy Local” property to true
   Included in the application package
All configurable settings
   Add to the ServiceConfiguration.cscfg file
Update the service configuration file
OS update
Upgrade a role or all roles
  Reuse existing instances
Deploy and VIP Swap or “DNS Swap”
Delete and Deploy
Getting started with the Windows Azure
Tools
Building a new Cloud Service
  Edit, build, debug
Migrating an existing ASP.NET Web
Application
Deploying to Windows Azure
Email: AshviniShahane@Synergetics-india.com
Web: http://www.synergetics-india.com




THANK YOU

More Related Content

What's hot (20)

PDF
Windows Azure Overview
Stefano Paluello
 
PDF
Windows Azure Platform - The Color of Cloud Computing
George Kanellopoulos
 
PPTX
Windows Azure: Lessons From the Field
Michael Collier
 
PPTX
Prodware wa college - marcel meijer
Freelance Consultant / Manager / co-CTO
 
PDF
MS TechDays 2011 - Cloud Computing with the Windows Azure Platform
Spiffy
 
PPT
.NetCampus Windows Azure Mobile
antimo musone
 
PDF
Microsoft PaaS Cloud Windows Azure Platform
Esri
 
PPTX
Eclipse & die Microsoft cloud
Patric Boscolo
 
PPTX
What’s New with SSIS in ADF
Sandy Winarko
 
PPTX
Embrace and Extend - First-Class Activity and 3rd Party Ecosystem for SSIS in...
Sandy Winarko
 
PPTX
Above the cloud: Big Data and BI
Denny Lee
 
PPTX
Windows Azure for Developers - Service Management
Michael Collier
 
PPTX
V mware v realize orchestrator 6.0 knowledge transfer kit
solarisyougood
 
PPTX
DV03 Smooth Migration to Windows Azure
Ronald Widha
 
PDF
Windows Azure Platform Technical Deep Dive - Chris Auld (Intergen)
Spiffy
 
PDF
Oracle Public Cloud: Oracle Java Cloud Service, by Nino Guarnacci
Codemotion
 
PPTX
NIC 2013 - Configure and Deploy Private Cloud
Kristian Nese
 
PPTX
Windows Phone 7 and Windows Azure – A Match Made in the Cloud
Michael Collier
 
PPTX
Developing applications with windows azure
Sundararajan Subramanian
 
PPTX
Enter The Matrix Securing Azure’s Assets
BizTalk360
 
Windows Azure Overview
Stefano Paluello
 
Windows Azure Platform - The Color of Cloud Computing
George Kanellopoulos
 
Windows Azure: Lessons From the Field
Michael Collier
 
Prodware wa college - marcel meijer
Freelance Consultant / Manager / co-CTO
 
MS TechDays 2011 - Cloud Computing with the Windows Azure Platform
Spiffy
 
.NetCampus Windows Azure Mobile
antimo musone
 
Microsoft PaaS Cloud Windows Azure Platform
Esri
 
Eclipse & die Microsoft cloud
Patric Boscolo
 
What’s New with SSIS in ADF
Sandy Winarko
 
Embrace and Extend - First-Class Activity and 3rd Party Ecosystem for SSIS in...
Sandy Winarko
 
Above the cloud: Big Data and BI
Denny Lee
 
Windows Azure for Developers - Service Management
Michael Collier
 
V mware v realize orchestrator 6.0 knowledge transfer kit
solarisyougood
 
DV03 Smooth Migration to Windows Azure
Ronald Widha
 
Windows Azure Platform Technical Deep Dive - Chris Auld (Intergen)
Spiffy
 
Oracle Public Cloud: Oracle Java Cloud Service, by Nino Guarnacci
Codemotion
 
NIC 2013 - Configure and Deploy Private Cloud
Kristian Nese
 
Windows Phone 7 and Windows Azure – A Match Made in the Cloud
Michael Collier
 
Developing applications with windows azure
Sundararajan Subramanian
 
Enter The Matrix Securing Azure’s Assets
BizTalk360
 

Similar to Developing and deploying windows azure applications (20)

PPTX
What's New for the Windows Azure Developer? Lots!!
Michael Collier
 
PDF
C fowler intro-azure
sdeconf
 
PPTX
Azure for SharePoint Developers - Workshop - Part 3: Web Services
Bob German
 
PPTX
Global Windows Azure Bootcamp - San Diego
Michele Leroux Bustamante
 
PDF
Introduction to Windows Azure
Ravi Ranjan Karn
 
PPTX
Sudheer d desertcodecamp_11_05_2011
SudheerD
 
PPTX
Azure presentation nnug dec 2010
Ethos Technologies
 
PPTX
Cloud computing
Anuradha Namal
 
PPTX
Azure Umbraco workshop
Orbit One - We create coherence
 
PPTX
Microsoft Partner Roadshow - To the Cloud
Nigel Watson
 
PPTX
Sudheer d socalcodecamp_10_16_2011
SudheerD
 
PPTX
Overview of Azure and Cloud Computing
Abhishek Sur
 
PDF
Download full ebook of Azure in Action 1st Edition Chris Hay instant download...
adobaherrami8
 
PPTX
Azure in Developer Perspective
rizaon
 
PPT
Microsoft Azure a cloud computing platform
Aayush Mohanka
 
PPTX
2. Windows Azure
GaryYoung
 
PPTX
Microsoft Azure
Mohab El-Shishtawy
 
PDF
Major Cloud Providers - Azure.pdf new doc
VaradhaB
 
PPTX
ECS19 - Mustafa Toroman, Sasa Kranjac - SOUP TO NUTS: MICROSOFT AZURE POWERCLASS
European Collaboration Summit
 
PDF
Windows Azure Platform
Abayomi Ayoola
 
What's New for the Windows Azure Developer? Lots!!
Michael Collier
 
C fowler intro-azure
sdeconf
 
Azure for SharePoint Developers - Workshop - Part 3: Web Services
Bob German
 
Global Windows Azure Bootcamp - San Diego
Michele Leroux Bustamante
 
Introduction to Windows Azure
Ravi Ranjan Karn
 
Sudheer d desertcodecamp_11_05_2011
SudheerD
 
Azure presentation nnug dec 2010
Ethos Technologies
 
Cloud computing
Anuradha Namal
 
Azure Umbraco workshop
Orbit One - We create coherence
 
Microsoft Partner Roadshow - To the Cloud
Nigel Watson
 
Sudheer d socalcodecamp_10_16_2011
SudheerD
 
Overview of Azure and Cloud Computing
Abhishek Sur
 
Download full ebook of Azure in Action 1st Edition Chris Hay instant download...
adobaherrami8
 
Azure in Developer Perspective
rizaon
 
Microsoft Azure a cloud computing platform
Aayush Mohanka
 
2. Windows Azure
GaryYoung
 
Microsoft Azure
Mohab El-Shishtawy
 
Major Cloud Providers - Azure.pdf new doc
VaradhaB
 
ECS19 - Mustafa Toroman, Sasa Kranjac - SOUP TO NUTS: MICROSOFT AZURE POWERCLASS
European Collaboration Summit
 
Windows Azure Platform
Abayomi Ayoola
 
Ad

Recently uploaded (20)

PDF
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
PDF
Staying Human in a Machine- Accelerated World
Catalin Jora
 
PPTX
Digital Circuits, important subject in CS
contactparinay1
 
PDF
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
PDF
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
PDF
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PPTX
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
DOCX
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
ICONIQ State of AI Report 2025 - The Builder's Playbook
Razin Mustafiz
 
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
Staying Human in a Machine- Accelerated World
Catalin Jora
 
Digital Circuits, important subject in CS
contactparinay1
 
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
ICONIQ State of AI Report 2025 - The Builder's Playbook
Razin Mustafiz
 
Ad

Developing and deploying windows azure applications

  • 1. Ashvini Shahane Head – Strategic Services Unit Synergetics IT Services India Pvt. Ltd.
  • 2. Setting up the cloud Getting started with the Windows Azure Tools Building a new Cloud Service Edit, build, debug Migrating an existing ASP.NET Web Application Deploying to Windows Azure
  • 3. Faster and more user friendly portal for Windows Azure Platform services More visibility and control Supports multiple service administrators (co-admins) Enable and connect to Windows Azure instances using Remote Desktop Built on the Windows Azure Service Management APIs
  • 4. Setting up the Hosted Service and the Storage accounts New Redesigned Portal Improved workflows – fewer clicks and less waiting Management console User Management – NEW Add Co-Admin to an account SQL Azure account Creating the server Creating the database
  • 5. Setting up the cloud Getting started with the Windows Azure Tools
  • 6. Add-in for Visual Studio 2008 and Visual Studio 2010. Support building Cloud Services that use .NET 3.5 SP1, .NET 4 Installable via the Web Platform Installer (2008 only) – http://microsoft.com/web Download from http://windowsazure.com Free download. Works with (the free) Visual Web Developer Express 2008 & 2010 SQL Azure Support in SQL Server 2008 R2 Management Studio Visual Studio 2010 Server Explorer
  • 7. Getting started with the Windows Azure Tools Building a new Cloud Service Edit, build, debug
  • 8. SDK Portal Hosted Service Storage Develop Deploy Run
  • 9. Role Code Configuration
  • 11. Inherits RoleEntryPoint OnStart() Method Called by Fabric on startup, allows you to perform initialization tasks. Reports Busy status to load balancer until you return true. Run() Method Main logic is here – can do anything, typically infinite loop. Should never exit. OnStop() Method Called when role is to be shutdown, graceful exit. 30 Seconds to tidy up
  • 13. Defines the shape of each role Internal and External Endpoints Configuration setting definitions <WebRole name="WebRole1"> <InputEndpoints> <InputEndpoint name="HttpIn" protocol="http" port="80" /> </InputEndpoints> <ConfigurationSettings> <Setting name="DiagnosticsConnectionString" /> <Setting name="HelloMessage"/> </ConfigurationSettings> </WebRole>
  • 14. Defines the scale of each role Instance count Configuration values <Role name="WebRole1"> <Instances count="1" /> <ConfigurationSettings> <Setting name="DiagnosticsConnectionString" value="UseDevelopmentStorage=true" /> <Setting name="HelloMessage" value="Hello World!" /> </ConfigurationSettings> </Role>
  • 15. Port 80 Port 8090 WA-GUEST-OS-1.3 Http Http 200px 200px S XL M StatusSvc HTTP
  • 16. Building a New Windows Azure Cloud Service DEMO
  • 17. Getting started with the Windows Azure Tools Core Windows Azure concepts Building a new Cloud Service Edit, build, debug Migrating an existing ASP.NET Web Application
  • 18. Windows Azure Tools for Visual Studio pre- defined role templates ASP.NET WebForms Role ASP.NET MVC 2 Role
  • 20. Migrating an existing ASP.NET Application DEMO
  • 21. What about the data? What about Session State? What about data and output caching? How will authentication be handled? How can I connect back to on premise server applications?
  • 22. SQL Azure Database Management DEMO
  • 23. Load balancer round-robins requests in multi instance roles Follow web farm best practices Do not store state on individual instances Do not assume subsequent requests will hit the same instance Don‟t forget things like dynamically generated images loaded by a page
  • 24. A distributed, in-memory cache for applications running in Windows Azure Simple administration; end-user doesn‟t bother with configuration, deployment, or management Highlight scalable solution with low latency and high throughput Based on Windows Server AppFabric Caching Currently available in AppFabric LABS Portal as a CTP
  • 26. Caching Service in Action DEMO
  • 27. ASP.NET providers for session state and page output caching Cache any managed object No object size limits No serialization costs for local caching Easily integrates into existing applications
  • 28. Windows Azure Load Balancer uses round-robin allocation. Session state must persist to client or storage on every request
  • 29. Persist to Storage via Session State Provider Windows Azure AppFabric Caching SQL Azure Windows Azure Storage Custom Persist to Client Use cookies
  • 30. Using Windows Azure AppFabric Caching as the session store In-memory, distributed cache Based on Windows Server AppFabric Caching Used the Microsoft.Web.DistributedCache assembly found in the SDK Currently available in AppFabric LABS Portal as CTP
  • 32. Use SQL Azure as backing store Round trip to database twice per request Read at request start Write at request end Scale out across multiple DBs Use session state partitioning SQL Azure is competitive on cost basis
  • 33. Sample ASP.NET Providers (Session, Membership, Role etc…) Sample Code http://code.msdn.microsoft.com/windowsazu resamples Uses Blob + Table Storage Several storage transactions per request Sample Provider should be treated as a starting point only.
  • 34. Forms Authentication Migration SQL Azure as Membership Store Only change connection string Azure Table Storage as Membership Store Need to use TableStorageMembershipProvider and TableStorageRoleProvider. Claims based authentication Windows Azure AppFabric Access Control Service
  • 35. Used to authenticate and authorize users Integration Single Sign On and centralized authorization into your web applications Standards-based identity providers Enterprise directories (e.g. Active Directory Federation Server v2.0) Web identities (e.g. Windows Live ID, Google, Yahoo!, and Facebook) V1 available in production
  • 37. Simplify and automate Provide abstraction for complex authorization federated claims-based schema requests. authentication. Easily establish secure trust relationship. Data and Applications Applications or Users
  • 39. Secure network connectivity between on-premises and cloud Windows Azure • Supports standard IP protocols • Example use cases: • Enterprise app migrated to Windows Azure that requires access to on-premise SQL Server • Windows Azure app domain- joined to corporate Active Directory • Remote administration and trouble-shooting of Windows Azure Roles Enterprise • Simple setup and
  • 40. To use Connect with a WA service, enable one or more of its Roles • For Web & Worker Role, include the Connect plug-in as part of Service Model (.csdef file) • For VM role, install the Connect agent in VHD image using the Connect VM install package • Connect agent will automatically be deployed for each new role instance that starts up • Connect agent configuration managed through the ServiceConfiguration (.cscfg) file • One required setting - “ActivationToken” o Unique per-subscription token, accessed from Admin UI • Optional settings for managing AD domain-join and service availability
  • 41. Local computers are enabled for connectivity by installing & activating the Connect agent • Web-based installation link o Retrieved from admin UI o Contains per-subscription activation token embedded in URL • Standalone install package o Reads activation token from registry key o Enables installation using existing S/W distribution tools • Connect agent tray icon & client UI • View activation state & connectivity status • Refresh network policy • Connect agent automatically manages network connectivity • Sets up virtual network adapter • “Auto-connects” to Connect relay service as needed • Configures IPSec policy based on network policy • Enables DNS name resolution • Automatically syncs latest network policies
  • 42. Connect network policy managed through Windows Azure admin portal • Managed on a per-subscription basis • Local computers are organized into Groups • E.g. “SQL Servers”, “My Laptops”, “Project Foo” • A computer can only belong to a single group at a time • Newly activated computers are „unassigned‟ by default • WA Roles can be connected to Groups • Enables network connectivity between all Role instances (VM‟s) and local computers in the Group • WA Connect does not control connectivity between Roles or Role instances (done through existing mechanisms) • Groups can be connected to other Groups • Enables network connectivity between computers in each group • In addition, a Group can be „interconnected‟ - enables connectivity within a group • Useful for ad-hoc & roaming scenarios
  • 43. Windows Azure Role A Role B Instance3 Instance2 Instance3 Instance2 Instance Instance My Servers My Laptops SERVER1 DEV_LAPTOP1 SERVER2 SERVER3 DEV_LAPTOP2
  • 44. Getting started with the Windows Azure Tools Core Windows Azure concepts Building a new Cloud Service Edit, build, debug Migrating an existing ASP.NET Web Application Deploying to Windows Azure
  • 45. Create a new deployment: Visual Studio Windows Azure Portal Command line and Powershell Built using the Service Management REST API Hosted Service and Storage Account created through the portal
  • 46. Deploying to Windows Azure using Visual Studio 2010 DEMO
  • 47. Deploy via T-SQL scripts Support for SQL Server Data-Tier Applications (DAC) feature DACPAC is unit of deployment Cloud or on-premise is a deployment time choice Create Logical Server in same region as Windows Azure Affinity Group for code-near architecture Support existing and new forms of deployment
  • 48. If using Windows Azure Storage / SQL Server Move only storage to the cloud first Test with on premise application Move the application to cloud Any non-framework dll‟s Set “Copy Local” property to true Included in the application package All configurable settings Add to the ServiceConfiguration.cscfg file
  • 49. Update the service configuration file OS update Upgrade a role or all roles Reuse existing instances Deploy and VIP Swap or “DNS Swap” Delete and Deploy
  • 50. Getting started with the Windows Azure Tools Building a new Cloud Service Edit, build, debug Migrating an existing ASP.NET Web Application Deploying to Windows Azure