Presentation is loading. Please wait.

Presentation is loading. Please wait.

Emmanuel Mesas Microsoft Western Europe Leverage Azure Services & Platform with Existing Application.

Similar presentations


Presentation on theme: "Emmanuel Mesas Microsoft Western Europe Leverage Azure Services & Platform with Existing Application."— Presentation transcript:

1 Emmanuel Mesas Microsoft Western Europe emesas@microsoft.com Leverage Azure Services & Platform with Existing Application

2 Azure Role Explained RoleEnvironment API Migrating Real Application Instrumenting Azure Application Azure Developer and Administrator Tools

3 Windows Azure Storage (Table, Blob, Queue) Web Role LB SQL Azure Internet Services Web Role 2 (IIS) Port 8080 Web Role 2 (IIS) Port 8080 Worker Role 2 Worker Role 1 Web Role Web Role 1 (IIS) Port 80 Web Role 1 (IIS) Port 80 Worker Role 2

4

5 Azure Solutions have a Cloud Project – Describes the platform Additional Entry Points in the Execution Pipeline Use RoleEnvironment Class for Infrastructure knowledge Always Copy referenced Assemblies

6 Worker Role Call Order: 1.WaWorkerHost process is started. 2.Worker Role assembly is loaded and surfed for a class that derives from RoleEntryPoint. This class is instantiated. 3.RoleEntryPoint.OnStart() is called. 4.RoleEntryPoint.Run() is called. 5.If the RoleEntryPoint.Run() method exits, the RoleEntryPoint.OnStop() method is called. 6.WaWorkerHost process is stopped. The role will recycle and startup again.

7 Web Role Call Order: 1.WaWebHost process is started. 2.Hostable Web Core is activated. 3.Web role assembly is loaded and RoleEntryPoint.OnStart() is called. 4.Global.Application_Start() is called. 5.The web application runs… 6.Global.Application_End() is called. 7.RoleEntryPoint.OnStop() is called. 8.Hostable Web Core is deactivated. 9.WaWebHost process is stopped.

8 Infrastructure API to use from RoleEntryPoint classes Discover Infrastructure Resources Local Storages Network Endpoints (max 5) Connection Strings Application Roles & Other Role Instances (max 5) Detect Infrastructure changes

9 Accessing Configuration & Connection Strings Accessing Role IP Addresses

10 Web Application -> WebRole SQL Server Data -> SQL Azure Profile & Membership Data -> SQL Azure Intranet Web Service -> AppFabric ServiceBus

11 NerdDinner Web Application SQL Databases aspnetdb NerdDinner WCF Service Intranet Offices Location

12 NerdDinner Azure Application SQL Databases aspnetdb NerdDinner ServiceBus Service Intranet Offices Location

13 Add a Cloud Project to the exiting solution Create a WebRole EntryPoint Add Trace Information in Config file Add DiagnosticConfigString in the Role Config file Copy Referenced assemblies

14

15 Use the Azure Portal for initial creation Use SQL Server Management Studio 2008 R2 for managing SQL Azure databases Use SQL Azure Migration Wizard v3.2 for analyzing and generating migration db scripts http://sqlazuremw.codeplex.com/ http://sqlazuremw.codeplex.com/

16

17 Change Service and Client implementation Add a ServiceBus Reference Create a Service Bus namepsace Generate a new Endpoint Address Use a RelayBinding from Azure AppFabric SDK Add a TransportClientEndpointBehavior for registering the Service to the Service Bus

18

19 With Windows Azure Diagnostics SDK

20 SDK component providing distributed monitoring & data collection for cloud apps Support Standard Diagnostics APIs Cloud-Friendly – Manage multiple role instances centrally Scalable – Built on Windows Azure Storage & used by scale-out Windows Azure platform components Developer In Control – What to collect & when to collect it

21 Standard WA Storage costs apply for transactions, storage & bandwidth Data Retention Local buffers are aged out by the Diagnostic Monitor according to configurable quotas You control data retention for data in table/blob storage Query Performance on Tabular Data Partitioned by high-order bits of the tick count Query by time is efficient Filter by verbosity level at transfer time

22 How-to activate Traces Transfer to Azure Storage Visualize Data

23 Always develop in the Azure DevFabric first Make sure you copy local assemblies not in the Framework Use the _CSPACK_FORCE_NOENCRYPT_ to check if your package is valid Check application using Cloud Resources (Storage, Service and SQL Azure) Remove the use of Development Storage (in case some code uses it)

24 Use Blob Storage – savings by deleting the App For compatibility and external resources, use the Windows Azure Drive – App can Mount and Unmount drive on demand. Enable Azure Diagnostic API and use.NET Framework Diagnostic classes (Trace.Write)

25 Powershell CmdLets scripts http://code.msdn.microsoft.com/azurecmdlets http://code.msdn.microsoft.com/azurecmdlets Azure Management Console http://code.msdn.microsoft.com/AzureManage mentTools http://code.msdn.microsoft.com/AzureManage mentTools Cloud Storage Studio http://www.cerebrata.com/Products/CloudStor ageStudio/Default.aspx http://www.cerebrata.com/Products/CloudStor ageStudio/Default.aspx Azure Diagnostic Manager http://www.cerebrata.com/Products/AzureDiag nosticsManager/Default.aspx http://www.cerebrata.com/Products/AzureDiag nosticsManager/Default.aspx

26 Sign up at the Windows Azure platform developers’ portal: http://www.windowsazure.com Windows Azure access Developer tools White papers Sample applications Plan pilot applications Learn more at Microsoft’s channelnine.com 2 3 1

27


Download ppt "Emmanuel Mesas Microsoft Western Europe Leverage Azure Services & Platform with Existing Application."

Similar presentations


Ads by Google