Data in the Azure Cloud, by Julie Lerman

1,451 views
1,384 views

Published on

Microsoft's new cloud services provide a number of ways to store data and .NET gives you a number of ways to access that data. This session will sort out the different ways data can be presented through Azure storage or directly from SQL Azure, the relational cloud database, and explore a variety of ways to work against these different data sources in your .NET apps.

Published in: Technology, Travel
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,451
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
0
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Data in the Azure Cloud, by Julie Lerman

  1. 1. Julie Lerman, New England Code Camp 10/17/2009<br />Data in the Azure Cloud<br />Julie Lerman<br />jlerman@thedatafarm.com<br />
  2. 2. Julie Lerman<br />Julie Lerman, New England Code Camp 10/17/2009<br />website<br />theDataFarm.com<br />blog & twitter<br />theDataFarm.com/blog@julielermanVT<br />book web site<br />LearnEntityFramework.com<br />consultant/mentor<br />Microsoft MVP, INETA Speaker,ASPInsider, MCP, VTdotNET Leader<br />
  3. 3. Agenda<br />What is Azure?<br />Type of Services<br />Types of Storage<br />Storing/Accessing Azure Tables<br />Working Directly with SQL Azure<br />Data through Services<br />Julie Lerman, New England Code Camp 10/17/2009<br />
  4. 4. Azure Platform<br />Web Host on Steroids<br />Hardware + Cloud Operating System<br />“Reliable, Highly Available, Scalable & Fault Tolerant”<br />Simple deployment<br />Azure “Fabric”<br />Integration of all that impact your service<br />Automatically adjusts resources as needed<br />Julie Lerman, New England Code Camp 10/17/2009<br />
  5. 5. Azure Platform Components<br />Julie Lerman, New England Code Camp 10/17/2009<br />Host your apps & services<br />Storage<br />Relational Database in the Cloud<br />Access Control Services<br />Service Bus<br />
  6. 6. Windows Azure for Your Apps<br />Web Role<br />App or Service with an external endpoint<br />Web App, Web Service, WCF Service, RIA , etc.<br />Worker Role<br />Provides background processing for apps<br />No external endpoints<br />Cloud Service<br />“Wrapper” service that defines the roles<br />Julie Lerman, New England Code Camp 10/17/2009<br />
  7. 7. Ramping Up for App Development<br />msdn.microsoft.com/azure<br />Get a token for Azure accounts<br />CTP is Free (microsoft.com/azure/register.mspx)<br />Visual Studio 2008 SP1<br />Or Web Developer Express 2008 SP1<br />Windows Azure SDK<br />Windows Azure Tools for Visual Studio<br />Windows Azure Training Kit<br />Julie Lerman, New England Code Camp 10/17/2009<br />
  8. 8. Hello Azure<br />Demo<br />Julie Lerman, New England Code Camp 10/17/2009<br />
  9. 9. Storage in Azure<br />Julie Lerman, New England Code Camp 10/17/2009<br />
  10. 10. Developing for Azure Tables<br />Azure Table data built from your classes<br />Access via ADO.NET Data Services<br />Read & write to table as you would to ANDS<br />Leverage StorageClient API in SDK Samples<br />Define dev & cloud tables in code<br />Dev Default: SQL Server Express 2005/2008 <br />Best Practices White Paper <br />http://go.microsoft.com/fwlink/?LinkId=153401<br />Julie Lerman, New England Code Camp 10/17/2009<br />
  11. 11. Using Azure tables<br />Demo<br />Julie Lerman, New England Code Camp 10/17/2009<br />
  12. 12. Porting Storage to the cloud<br />Julie Lerman, New England Code Camp 10/17/2009<br />Modify Configuration<br />AccountName=julielerman<br />AccountSharedKey=[primary access key]<br />TableStorageEndpoint &gt; http://table.core.windows.net <br />More Details in Critical MSDN Doc: Deploying a Service on Windows Azure, Author: Jim Nakashima<br />
  13. 13. Connect to SQL Azure <br />SQL Server 2008<br />SQL Azure is not totally compatible with design tools (yet)<br />Can’t access with VS2008 DB design tools<br />SSMS DB Login fails. Begin with query<br />Julie Lerman, New England Code Camp 10/17/2009<br />
  14. 14. Developing for SQL Azure<br />VS IDE does not work directly with cloud<br />Develop and Test with local database<br />Switch connection string to use cloud db<br />SQL Azure has a subset of SS Features<br />Not all SQL Server types are supported<br />MARS is not supported<br />Entity Framework leans on MARS<br />Be sure to code around this limitation<br />Julie Lerman, New England Code Camp 10/17/2009<br />
  15. 15. Using SQl azure<br />Demo <br />Julie Lerman, New England Code Camp 10/17/2009<br />
  16. 16. Migrating Databasesto SQL Server<br />“Migrating Databases” HOL in Training Kit<br />Detailed walk through<br />Generate SQL Script to Create Database<br />Modify to remove unsupported features<br />UDFs, Windows Authentication, File Groups, ANSI_NULLS, ROWGUIDCOL, NOT FOR REPLICATION, XML SCHEMA COLLECTION and more… <br />Julie Lerman, New England Code Camp 10/17/2009<br />
  17. 17. Using Blobs as a DataSource<br />XML File can be a blob<br />Entry in service configuration file<br />Be sure Blob service is running locally<br />Read and write streams to the blog<br />Change endpoint in config to go live<br />Julie Lerman, New England Code Camp 10/17/2009<br />
  18. 18. Summary<br />Azure marketing is overwhelming<br />Look at the pieces that you need<br />Biggest benefit is enormous scale<br />Tight integration with Visual Studio<br />Familiar and new paradigms<br />And…it’s not free (but the CTP is )<br />Julie Lerman, New England Code Camp 10/17/2009<br />
  19. 19. Resources<br />Windows Azure Toolkit<br />Microsoft.com/azure<br />Msdn.microsoft.com/azure<br />“How Do I” videos on msdn/azure<br />Roger Jennings (oakleaf.blogspot.com)<br />Cloud Computing with the Windows Azure Platform (WROX) <br />Blogs.msdn.com/ssds, learnazure,cloud, windowsazure<br />Julie Lerman, New England Code Camp 10/17/2009<br />
  20. 20. Julie Lerman<br />Julie Lerman, New England Code Camp 10/17/2009<br />website<br />theDataFarm.com<br />blog & twitter<br />theDataFarm.com/blog@julielermanVT<br />book web site<br />LearnEntityFramework.com<br />consultant/mentor<br />Microsoft MVP, INETA Speaker,ASPInsider, MCP, VTdotNET Leader<br />

×