• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
The Windows Azure Platform (MSDN Events Series)
 

The Windows Azure Platform (MSDN Events Series)

on

  • 7,373 views

This presentation was delivered as part of the MSDN Events series of technical seminars and provides a deep dive into cloud computing and the Windows Azure Platform. It starts with a developer-focused ...

This presentation was delivered as part of the MSDN Events series of technical seminars and provides a deep dive into cloud computing and the Windows Azure Platform. It starts with a developer-focused overview of the Windows Azure Platform and the cloud computing services that can be used either together or independently to build highly scalable applications. From there, the discussion explores data storage, SQL Azure, and the basics of deployment with Windows Azure.

Statistics

Views

Total Views
7,373
Views on SlideShare
7,308
Embed Views
65

Actions

Likes
1
Downloads
281
Comments
0

9 Embeds 65

http://163.19.233.8 22
http://davebost.com 13
http://www.davebost.com 9
http://www.slideshare.net 6
http://163.19.233.151 6
http://chenih.blogspot.tw 4
http://chenih.blogspot.com 2
http://www.linkedin.com 2
http://163.19.233.151:8080 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • Welcome everyone my name is Dave Bost and I’m here today to introduce you to one of the most important new developer technologies starting off our new decade… Microsoft Windows Azure
  • Our agenda for this session will be to show you Windows Azure in action using Visual Studio.Next, we’ll explore the Windows Azure Services PlatformWe’ll become familiar with the core services of Windows AzureWe’ll learn about Windows Azure RolesAnd we’ll use Visual Studio to develop our first Azure application
  • This is the first session of a three part series. My objective is to have you leave the third session ready to develop Windows Azure applicationsThis session will give you the basics of what you need to know, and the next two will build up your knowledge of application development targeting the Windows Azure Platform.In this session, you will gain an understanding of the Windows Azure platform components… including Windows Azure, Windows Azure Data Services, and SQL Azure… and you’ll learn what tools and software libraries you’ll need to start constructing applications for the cloud.
  • Cloud computing is a confusing term to many people, and even many of us in the industry wonder if it is real. So what is it?Cloud computing is a new consumption based style of computing, where you pay according to the quantity of resources that you consume.What services does cloud computing provide? Hosting applications, database storage, and non-database storage are the services used the most. Depending on which platform you look at, you may also have communication, security, and content services available to you.A related term you’ll hear a lot is “Software as a Service”, or SaaS. This simply means applications can be offered as a service, where consumers pay based on usage rather than buying a license. Microsoft’s CRM Online is an example of a SaaS application: you pay each month based on the number of users.You might be wondering how cloud computing differs from traditional hosting. Hosting is one of the primary uses of cloud computing, but is not the only service available. In traditional hosting, you have a contract reserving a certain number of machines for a certain amount of time. In cloud computing, you are free to change the number of virtual machines reserved for you whenever you wish—we call that On-Demand Scale. In a month-to-month arrangement you’re also free to walk away without residual financial or contractual obligations. Cloud computing also gives you reliability and high availability. Cloud data centers have smart infrastructures that monitor your applications and safeguard your data. Redundancy is a key part of this: redundant VMs to run applications and redundant copies of the data you store.A big part of the appeal of cloud computing is that it is a self-service platform. You can make things happen all on your own, which is tremendously empowering.Cloud computing is real, and it’s here to stay. I’ll give you some concrete examples in my next slide.Cloud computing is not going to replace enterprise I.T.—it is additive to the enterprise, not a substitute for it. Bringing cloud computing alongside enterprise I.T. gives us new options without giving up anything.
  • Headless multiple worker roles Create, test, debug, and distribute web services quickly and inexpensivelyWeb role + worker role Add web services capabilities to existing packaged applicationsScalable web app or service Reduce the effort and cost of IT management Use Microsoft web technologies such as asp.net, IIS, and Visual Studio 2008On Premises app and web storage Use Windows Azure as a line of credit----Alternative text 1:For developers, building a Windows Azure application looks much like building a traditional .NET application. Microsoft provides Visual Studio 2008 project templates for creating Windows Azure Web roles, Worker roles, and combinations of the twoDevelopers are free to use any .NET language. Also, the Windows Azure software development kit includes a version of the Windows Azure environment that runs on the developer’s machine. This Windows Azure-in-a-box includes Windows Azure storage, a Windows Azure agent, and everything else seen by an application running in the cloud.Perform large-volume storage, batch processing, intense or large-volume computations off premisesUse Microsoft Web technologies such as ASP.NET, IIS, and Visual Studio 2008Add web services capabilities to existing packaged applications.Respond to business needs quickly and easily without worrying about operational constraintsReduce the effort and costs of IT managementAlternative text 2:At its core, “Building Intelligence” is an energy auditing and tracking solution. But like all companies, “Building Intelligence” wears a lot of hats. It has a web start-up division creating a new social networking website to collaborate around energy consumption. Because Windows Azure supports both Web-facing services and background processes, the application can provide an interactive user interface as well as executing work for users asynchronously. Rather than spending time and money worrying about infrastructure, the start-up can instead focus solely on creating code that provides value to its users and investors. The company can also start small, incurring low costs while its application has only a few users. If their application catches on and usage increases, Windows Azure can scale the application as needed.“Building Intelligence” is also an ISV because it is creating a software-as-a-service (SaaS) version of an existing on-premises, customer facing, .NET application, and in this case chooses to do it on Windows Azure. Because Windows Azure mostly provides a standard .NET environment, moving the application’s .NET business logic to this cloud platform won’t typically pose many problems. And once again, building on an existing platform lets the Building Intelligence focus on their business logic—the thing that makes them money—rather than spending time on infrastructure. “Building Intelligence is also an Enterprise player. Because Windows Azure is .NET-based, developers with the right skills aren’t difficult to find, nor are they prohibitively expensive. Running the application in Microsoft’s data centers frees the enterprise from the responsibility and expense of managing its own servers, turning capital expenses into operating expenses. And especially because application has spikes in usage, letting Microsoft maintain the large server base required for this can make economic sense.
  • To give you an idea of the magnitude of cloud computing, here are just a few numbers from Microsoft’s own cloud computing service offerings.Over a billion Windows Live authentications occur every single day!… 3 to 4 billion emails are filtered by forefront from 6 million mail boxes… 2 billion Bing queries happen every single month, 450 million Hotmail users, 20 million XBOX Live users, and 100 million Windows Update users!For you, the software developer: this represents a whole new paradigm in computing!
  • Slide objectives: Explain what the cloud is in relationship to on-premises servers and hosted severs. Speaking Points: To put the cloud in perspective, let’s first think about the available options for deploying and running your application today. Today, there are a few established approaches for deploying and running applications.ServerOn one side you have on-premises servers or a self-hosted model. With on-premises servers, you bring your own machines, connectivity, software, and in some cases software licenses.You have complete control of the environment, the software stack, the hardware, etc.However, you also have complete responsibility. Your organization must have the skills and expertise to operate and manage the environment and software. You must take on the responsibility of patching the environment, replacing hardware, etc.These days, very few people want to be in this business. However, on-premises servers are not going away anytime soon. In some cases organizations have to maintain solutions running in an on-premises environment due to regulatory, data, or privacy requirements.Hosted ServersAn established alternative to the on-premises model is with a hosted environment.With hosted servers, you are effectively renting capacity – including machines, connectivity, and in some cases software.With this model, you have less control then when you’re managing your own servers. For instance, you can’t walk up to a machine, and plug in an external drive to load data. Or easily make hardware or software adjustments to optimize for performance. However, you also have fewer responsibilities when it comes to operating, updating, patching, and managing the environment. What is generally much more attractive about a hosted model is the cost model.The upfront capital costs can be much lower then building out your own infrastructure. However, one of the downsides is that you generally pay for the fixed capacity on a monthly basis – even if your application is idle. CloudWhat we are starting to see in the industry is the emergency of the cloud as a platform for building and running applications. So what is the cloud and how does it relate to these established options for running your apps?A cloud platform is designed as a shared, multi-tenant infrastructure.Cloud platforms utilize virtualization to: share hardware resources, provide isolation of applications or tenants, and also to provide a more dynamic infrastructure.Ability to scale out your application over multiple server instances.Because it is a shared infrastructure, there is even less control compared to a hosted environment. As this is an emerging space, there is a wide range of different types of cloud solutions. Some of the solutions focus purely on providing virtualized infrastructure. Servers you can remote into. However, many cloud platforms are starting to focus on raising the level of abstraction – so you can focus on building and deploying applications rather than remoting into machines and maintaining or patching servers. Old:Level of abstraction varies greatly today with the solutions in the marketWithin the cloud, there are things that are delivered as an infrastructureServices – services provided by the infrastructure and services you would consume programmaticallyFinally, one of the primary reasons why organizations ranging from startups, independent software vendors, and large enterprises are starting to investigate the cloud is the pricing model. With a cloud platform, you can expect a pay as you go pricing model – where you pay for what you use. [build arrow] I believe it’s important to understand that the cloud is part of a continuum. It is one ofpotential approaches that you can begin to use to deploy and run your applications. However, it’s important to understand that the cloud is not the silver bullet. It is not the perfect solution for every application. Notes:We view cloud as scale out, automated service management, high availability and multi-tenantBut cloud has other considerations: location, infrastructure, business model, ownership and management
  • You may have heard the term “Software as a Service” or SaaS. There are several “as a service” terms associated with cloud computing: Infrastructure as a Service, or IaaS, is where you pay for infrastructure resources such as servers, storage devices, and network equipment. Platform as a Service, or PaaS, is where you pay for a platform that includes an operating system and application stack. PaaS is inclusive of IaaS. Software as a Service, or SaaS, is where you pay to use an application. SaaS is inclusive of both PaaS and IaaS.An example of PaaS is Windows Azure.An example of SaaS is Microsoft Exchange Online.
  • Let’s look at a few examples of cloud computing to get the idea. If you have an online application meant for consumers—such as a web site or an e-store—you could host that in the cloud. If you have a corporate application meant for your employees—such as an HR benefits management portal—you could host that in cloud and secure it to your enterprise. If you need to electronically integrate with customers or vendors—such as a shipping partner—you can use the cloud for shared applications, data, or messaging between organizations.There are lots of other ways to use the cloud. We’ll look at more scenarios later on.
  • To give you sense for how this impacts us as developers, here are just a few of the business opportunities driving our development efforts towards cloud applications… ISVs & SaaS Applications. For independent software vendors, cloud computing makes lots of sense as products transition into Software-as-a-Service offerings where quick scale is needed. Multi-tenancy makes cloud computing particularly cost effective. Mid-Market Enterprise. Analysts have identified mid-market enterprise as most likely to use cloud computing early on. Often this may be a single department taking the initiative. Enterprise application migration. Many enterprises will first put cloud computing to use by migrating existing applications in order to reduce operating costs or avoid the need to make further data center investment. Start-ups & Experimental Initiatives. The cloud is ideal for experimenting with projects that may succeed rapidly or may need to be shut down rapidly (“scale fast or fail fast”). This applies not only to start-ups but also to experimental initiatives within established companies. Fast Lane. Some companies will see the cloud as a “fast lane” to get around the lead time, obstacles, and project competition they face internally. Seasonal Businesses. Companies whose computing needs vary based on season are ideal candidates for the cloud. For example, a tax preparation service needs a lot of capacity in the Spring but not so much other times of year. Cloud Seen As A Competitive Edge. Azure is a playground for innovation, both technically and financially. Companies who seek a competitive edge will find the cloud a rich environment for innovation.
  • This reference chart may help us to recognize opportunities for using cloud computing within our own organizations or our vendors or customers.A new social networking sight may need a massive amount of scalability…A 911 call center may require that last “9” of reliability…A tax preparation package may require varying amounts of computational power, storage, and bandwidth…A hurricane relief site may need to launch on a moment’s notice and be available for a duration that is hard to predict at the onset of the disaster.A genome sequencing project or perhaps a search for extraterrestrial planets to live on in our future might require massive amounts of parallel processing power.A new online startup may need to begin business with little or no capital investment and fail fast with little or no financial lossSo with the terrific list of “great fits” … are there any “bad fits”? Well… yes… there are a few… at the present time…Frequently updated applications are not very good candidates. Primarily I say this because as a developer … the time that it takes to deploy is longer than if you had your own local on premise or hosted servers; however, you must take this with a grain of salt as you’ll have to compare it against the level of effort the you presently invest to make deployments in order to gauge the applicability of this advice.Applications needing external data storage are also not very good candidates at the present time.Of course, this is a moving target… and as cloud computing evolves further… even these bullets (and others like them) may move from the not-so-good list to the good-list. We are entering a new era of software development where we will once again be inspired and excited about our profession as software developers!
  • Many of us have been working with software for years, and some of us even decades. As such, we have an implicit understanding of our environment… we know what kind of architectural patterns to apply and what kind of code to write for our environments that will work. We are delighted that we don’t have to involve ourselves in the nitty-gritty details of how a network load balancer is configured or what kind of firewall is required. We are happy that there are other non-application developers taking care of these details for us so that we can focus on the architectural design of our software and writing code to implement those designs.All this having been said… we certainly would all agree that our software environment has an influence on the style of code that we write… without understanding our environment (at least at the macroscopic level)… we would likely make many missteps in the design and coding of our software. It is for this reason that I am spending a brief amount of time telling you a little more about your environment… to help us design and write applications better for the cloud.Microsoft Data Centers are a big part of the Azure story. Microsoft is building large, sophisticated cloud data centers around the world to complement its existing data centers. Two cloud data centers are in operation in the U.S. in Chicago and San Antonio. In 2010 we’ll see European data centers in Dublin and Amsterdam and Asian data centers in Hong Kong and Singapore.
  • Windows Azure provides hosting and storage and management.The Windows Azure data center infrastructure is called the Fabric and manages instances of your applications. The Fabric detects if something goes wrong and allocates replacement resources if necessary.You can host HTTP-accessed software such as web applications and web services in Windows Azure. You can also host background worker software.Windows Azure also provides non-database storage. This comes in 3 forms: blobs, queues, and data tables. Blobs are similar to files, queues are similar to enterprise queues, and data tables are record-based storage.The Windows Azure management portal allows you to create projects, deploy software, change number of instances, upgrade software, and promote between Staging and Production environments.
  • SQL Azure provides a database in the cloud. In fact it is based on SQL Server 2008. You can think of SQL Azure as a large subset of SQL Server 2008.Just to be clear though, SQL Azure only includes core database functionality, not Reporting Services, Analysis Services, or Service Broker. A lot of .NET software written for SQL Server will also work with SQL Azure. There are some features of SQL Server not available in SQL Azure such as user defined types. SQL Azure does supports stored procedures, which is another opportunity to leverage existing code. Later on I will show you some tools and techniques for migrating your existing Microsoft SQL Server databases to SQL Azure.The SQL Azure management portal allows you to create or drop databases and to configure a firewall to restrict database access. I will also demonstrate this later.Another SQL Azure feature is SQL Data Sync, which is a service that allows you to set up synchronization between cloud and on-premise databases or mobile devices.
  • AppFabric is what makes theAzure platform enterprise-ready.Windows Server AppFabric and Windows Azure platform AppFabric enable users to build and manage applications more easily both on-premises and in the cloud.Windows Azure platform AppFabric, formerly called “.NET Services”, helps developers connect applications and services in the cloud or on-premises. This includes applications running on Windows Azure, Windows Server and a number of other platforms including Java, Ruby, PHP and others. It provides a Service Bus for connectivity across network and organizational boundaries, and Access Control for federated authorization as a service. Windows Azure platform AppFabric is in CTP now.Service Bus helps to provide secure connectivity between loosely-coupled services and applications, enabling them to navigate firewalls or network boundaries and to use a variety of communication patterns. Services that register on Service Bus can easily be discovered and accessed, across any network topology.The Microsoft® Access Control helps you build federated authorization into your applications and services, without the complicated programming that is normally required to secure applications that extend beyond organizational boundaries. With its support for a simple declarative model of rules and claims, Access Control rules can easily and flexibly be configured to cover a variety of security needs and different identity-management infrastructures.Management of the Service Bus and the Access Control Service is done through the web portal. The Windows Azure Platform AppFabric is still in CTP, and at the time of this video some of the specifics were in transition.
  • The Windows Azure Cloud Fabric is what provides all of this…We get multiple virtual server instances provisioning on-the-fly.We get failure detection when one or more of these virtual server instances fails. Failures are rare, but when they happen, the Windows Azure Cloud Fabric will automatically spin up new server instances to replace failing ones.It’s the Windows Azure Cloud Fabric that controls how many instances are created and what role each instance plays. Of course it takes its queues from the configuration data that we supply.The Windows Azure Cloud Fabric also automatically configures load balancing for multiple service instances… and it does so in a very dynamic and flexible manner… allowing quick increases and decreases in available service capacity.
  • Here’s the datacenter in the cloudA collection of commodity hardwareA collection of storage servers; triple replicationLoad BalancersFabric Controller: the “Brains” behind it all. Web Portal: where to deploy and manage applicationsService – any app you want to run is the service.It’s about running your service in the Microsoft datacenter. Windows Azure is not a SKU that you would install onsite.
  • = Service Deployment (So easy, even a CEO can do it) =Service, the application you want to runModel, service configuration; tells what the service looks like, how many you want to run, etc.Today, you must deploy your service through the portal. In the future, there will be an API available that will you to deploy your service through command-line, TFS build procedures, and other types of automation In this scenario, we are deploying our service through the portal. We upload the two files (the service package and model configuration). The Fabric Controller reads the model configuration which describes how to deploy our service. In this case, we are deploying our service to 3 machines. The Fabric Controller determines which 3 machines to deploy to, copies the service package to the 3 machines, and fires up the services. [Transition] The Fabric Controller then configures the DNS so you have an endpoint exposed for your services for the outside world to communicate with your services. From there, it configures the load balancers and routers. That’s it. It’s completed automated.
  • So that’s what the Windows Azure Cloud Fabric is all about… We’re developers… and we want to write software that targets the Windows Azure Platform… but we don’t have all of this incredible infrastructure on our development machines. It’s unclear for example, just exactly how we might go about building an application that required Blob Storage without actually having Blob Storage.Microsoft create a Windows Azure Cloud Fabric simulation environment just for that purpose… to give the .NET developer a familiar environment to work in that simulates all of the environmental characteristics of the actual Windows Azure Cloud Fabric.The “DevFabric” as it is called, runs locally on our boxes and interfaces with Visual Studio to give us an interactive debugger, simulated data storage, and other cloud services.
  • As was hopefully evident, the Azure developer experience leverages what you’re already familiar with.If you’re a .NET developer and your favorite technologies are ASP.NET, Silverlight, Windows Communication Foundation, or SQL Server you’re going to be able to use those same technologies in the cloud.You also continue to use familiar tools including Visual Studio and SQL Server Management Studio.Azure isn’t just for .NET developers, however. Most of the services in the cloud are accessible as RESTful HTTP calls. That means Java developers, PHP developers, Python developers can also use Azure.For .NET developers, the Windows Azure SDK and tools for Visual Studio gives you a cloud simulator. The Development Fabric simulates the hosting environment and Developer Storage along with SQL Express simulate cloud data storage. This means you can develop cloud applications locally, even when offline.
  • To start building applications for the Microsoft Windows Azure cloud, you will need to download and install the Windows Azure SDK.You’ll find the link for downloading this in the Windows Azure Platform developers area located at the URL on this slide.You’ll also need to setup your Windows Azure Platform account, which you can do from the same page.The process is simple and not very interesting to developers, so I’m not going to walk through it. The only information that you will need is that when you create your Windows Azure account you will associate a Windows Live ID with it for authentication purposes. You must also provide credit card information for billing purposes.NOTE to presenters: you will need to setup your Windows Live and Windows Azure accounts ahead of time.
  • The Windows Azure platform is strong on application and service management.First off, the infrastructure of the cloud—called the Fabric—provides important management services for you, many of them automatic. This includes provisioning of machines, patching of operating systems, and deployment of applications and upgrades.Next, we have the management portal which allows self-management of your application in the cloud. From the portal, you can deploy your applications, promote between Staging and Production, scale your application up or down, and upload software updates.Finally, there are the diagnostic and management APIs which allow program code to see execution traces, monitor performance counters, and initiate actions in the cloud such as starting a deployment or increasing the number of instances for an application.
  • TODO: (insert this audio): “Once your Windows Azure Platform Services account has been setup, you’ll be able to manage your services through the portal.”The Azure management experience is one of its hallmarks. It’s very easy to set up new cloud projects for hosting, storage, database, communication, or security.The Windows Azure management portal shown here allows you to upload applications and deploy them to a Staging or Production environment. You can change the number of instances from here should you want to scale up or scale down. Promoting an application from Staging to Production is a 1-click affair. You’ll see much more about this in the Visual Studio demos and promotions that we’ll do.
  • The Windows Azure SDK will install several things that we need to create, test, and deploy new Windows Azure Cloud Services.First, we get a new project template for Visual Studio to create Web and Worker Role projects with. We will demonstrate these shortly…Second, we get the Local Developer Fabric to simulate our applications running in the cloud without ever having the bits leave our desktop. We can think of the Local DevFabric as “Cassini for the Cloud”…Third, we get the Local Development Storage Services to simulate the highly scalable data storage options in the cloud… Blobs, Tables, and Queues. Just to be clear… it does not install SQL Azure.. We’ll talk more on that in a bit.Fourth, support for debugging our cloud services. We can attach our Visual Studio debugger to our applications through the Local Developer Fabric, and then debug them just as we do any other kind of .NET application.Finally, we get a packaging tool, which is integrated into Visual Studio to pull all of our content and binaries together and prepare a Cloud Service package ready to be deployed to Windows Azure. In Visual Studio, this tool also prepares the Windows Azure configuration file.For now, we can think of SQL Azure as Microsoft SQL Server 2008 in the cloud. No SDK is required because SQL Express 2008 or SQL Server 2008 can be used for this purpose. Of course we may have existing database tools that we use for database design and development and all of those tools are still very usable here. We design and build our databases locally, and then we deploy those databases to the SQL Azure database server in the sky.
  • Let’s take a closer look at the details of service instance roles…Web Roles define a single HTTP and single HTTPS endpoint for external clients to use. These endpoints are exposed to the public Internet.Worker Roles are not exposed to the public Internet. They can define any number of internal endpoints for communication transmission via TCP or HTTP.Worker Roles may also receive communications from Windows Azure Storage Queues; likewise, Web Roles can communicate with Worker roles using the same.Both Web and Worker Roles can make outbound communication calls to publically accessible resources on the Internet using the HTTP or HTTPS protocols or by making .NET Framework Class Library socket connections.Both Web and Worker Roles can access Windows Azure Storage using RESTful API’s or the Windows Azure Storage Client Library which is part of the Windows Azure SDK.
  • When you create your first Cloud Application, you might be confused when Visual Studio offers you to chose roles for your cloud service application from the 4 roles it offers. If you look closely though, you will see that are really only two roles,and one of those roles simply comes in three flavors. Visual Studio is just providing you with projects that make appropriate Framework Class Library references based on what you will be using the Web Role for.The Web Role comes in three flavors:ASP.NET Web Role – for developing ASP.NET Web Applications (including those using Silverlight).WCF Service Web Role – for developing Windows Communication Foundation applications.CGI Web Role – for developing FastCGI Applications with PHPThe Worker Role is just the Worker Role
  • When we own and manage our own servers, we have a lot of concerns…We have upfront planning to do for our peak usage. In other words, we have to anticipate how much hardware demand there will be on our application, and we have to make our hardware purchases based on our peak demand. If we don’t purchase enough servers, we may lose business because our servers will be too busy. If we purchase too much capacity, we will have wasted a lot of money buying hardware that we didn’t need.We have to plan for hardware redundancy to reduce our down time. Not only for servers, but also for critical components of our network infrastructure. Of course, whatever we plan for, we will need to purchase.We have to make all of our server and software purchases up-front as a capital expenditure.We have to be concerned with how hardware failures will be detected in our infrastructure, and what automated or possibly manual procedures will have to be in place to recover when a CPU smokes or a hard drive head crashes into a platter. Do we need backup parts on hand? Are we going to attempt repairs, or do we want to just swap out failing equipment?It is difficult in a complex environment to estimate these things in a reliable manner.
  • The Microsoft Windows Azure Platform takes us down an easier path with respect to hardware concerns.We make no up-front capital expenditures. Everything is pay-as-you-go for what you need, when you need it.We don’t have to determine what level of redundancy we may require as Windows Azure has built in redundancy.We don’t have to closely estimate what our peak usage might be, as we can add additional server instances any time we demand for our application requires them.We don’t have to worry about what happens when a server or network component fails, as the Microsoft Windows Azure platform provides built-in diagnostics and failure recovery. Windows Azure will dynamically repair itself.We developers can stay focused on applications and not the infrastructure.
  • When we own and manage our own networks, we have a lot of concerns…We must concern ourselves with the topology of our networks and connectivity of our servers.We must establish and maintain firewalls and DMZ areas.When new ideas come along requiring changes, we must often invest significant time in battling institutionalized resistance
  • Here again, the Microsoft Windows Azure Platform takes us down a more comfortable pathNetwork topology and connectivity are created on the fly from configuration dataFirewall rules are easy to maintain and configureThe DMZ is build into the cloud. Many security concerns are no longer a problem for the application developer or the network administrator as they now belong to the Microsoft data center.Innovative ideas can be explored outside of entrenched and sometimes legacy I/T policies.
  • Here is a list of resources that will allow you to follow up on many of the features you’ve seen today, as well as become part of our development community!
  • We’ll take a tour of SQL Azure as a data storage option and then we’ll look at the various types of data storage offered with Windows Azure… in particular, Blobs, Tables, and Queues. I will also make reference to additional materials regarding a new type of data storage that was recently added called Drives.We’ll also learn how to inspect the contents of Windows Azure Data Storage.
  • It’s my intention that when we have completed this session, you’ll have a good understanding of the various data storage options, and you’ll be able to make informed decisions about which types are best for a given storage requirement.
  • We’ll start with SQL Azure... This will give most of developers a common frame of reference as most developers are comfortable with relational databases.In a short while, I will introduce Blobs, Tables, Queues, and DrivesSQL Azure can be thought of as your SQL Server in the cloud. It is based on a subset of SQL Server 2008.Blobs are a means of storing unstructured data, such as pictures, movies, PDF’s, Word documents, and the like.Tables are a means of storing semi-structured or tabular data. Tables are similar to an Excel spreadsheet in the sense that data is tabular and there is no strict type cohesion as there would be in a SQL Server table column. Data stored in tables is partitioned and keyed for retrievalQueues are a means of buffered message delivery. There are very useful for communicating data between our Windows Azure service instances. As our service instances do not have to wait around for the I/O of delivering the message or the result of the message processing, they can dramatically improve the scalability of our software system.Drives are a recently added feature announced at the Los Angeles PDC in November 2009. Drives provide durable storage that appears to our application as an NTFS volume. The drive itself is an abstraction over the same Windows Azure Data Storage used for Blobs. You can get more information on Drives by visiting the PDC site on my slide.Applications may use multiple types of data storage at the same time. In fact, this is quite common. When we do our first Windows Azure Data Storage demo together, I will be showing you an application that uses Blobs, Tables, and Queues in concert.
  • As I stated earlier, SQL Azure is based on SQL Server 2008. At this time it is only a subset of the features of the server product.My intention here is to convey the high level features that are supported and the ones that are not.SQL Azure will support most of the things we need… Tables, Index, Views, Stored Procedures, Triggers, and Constraints… in my book… that’s all the functionality that I need for most of my applications.There are some other adjunct technologies that ship as part of SQL Server 2008 such as SQL Reporting Services and Analysis Services which are not supported. The Service Broker is also not supported.
  • The current offering of SQL Azure provides just core relational database services.In the future, Microsoft will be offering Data synchronization based on the Sync framework so that on premise and mobile databases can be synchronized with databases in the cloud.Business Intelligence and SQL Reporting will be available as an SaaS (Software as a Service)And some new services will be unveiled such as Reference Data and Secure Data Hub. These our outside the scope of this presentation though, so feel free to point your favorite search engine at these terms for more information.
  • So let’s assume that we have designed our relational database with local developer and data modeling tools.We can begin our story then by assuming that we want to get our database deployed to the cloud.There are some tools that will expedite this process which I will show you later, but for now lets assume that we have scripted our database schema. We apply this script to SQL Azure which speaks native TDS.If you created your database through the SQL Azure Portal, then SQL Azure will have created one master database and three replicas of that database. If you create your database with the script the same will be true.These replicas are stored in different database centers from the master to provide redundancy and protection against geographical catastrophe.
  • Configuring our application to use SQL Azure storage instead of SQL Server is simply a matter of modifying the connection string in our application’s configuration file.When our application requests data, ADO.NET speaks to the TDS which directs our queries to the master database server. The master database server performs our query and returns the results to our application.
  • From our application’s point of view, there is only one SQL Azure database.As we make updates to our database, those updates are replicated to other copies stored in other data centers so that in the event that our database fails for any reason, the other databases will be standing by ready to take its place.
  • But what if that master database server fails for some reason?TDS is receives notification of the database failure and automatically redirects the call to the replica!The Azure Cloud Fabric is self-healing… and the details are outside the scope of this presentation; however, the fabric will get busy repairing itself like drones on a Borg mother ship… essentially with the objective of keeping three replicas online at a time.
  • I will demonstrate creating a SQL Azure account in session 3 where I will walk you through the entire process.For now I simply want to give you some background information to prepare you for our first demonstration.When we create our SQL Azure database server, we’ll be prompted for an Administrator’s name and a password.This username and password will be the granted a system administrator role that is similar to the “sa” account on a local SQL Server 2008 box. The account has permission to create and drop databases and database ownership authority in any databases that you create with this account.
  • After creating your SQL Azure database server, you will want to grant appropriate access through the SQL Azure firewall.SQL Azure provides a very simple and easy to maintain firewall. The firewall is so easy to use that it’s only going to get one slide in my deck!The firewall allows us to expose our database to Windows Azure services via a checkbox and to add ranges of IP addresses such as your home office and your business… or possibly the address of a 3rd party server hosting some application that needs data access.I’ll do a thorough demo of this feature in session 3…
  • When you created your SQL Azure database server, you supplied an administrator’s user name and password. I have named my user accordingly… to remind me of its power.The SQL Portal will offer you the ability to copy these credentials in connection string format to your clip board… tempting you into believing that you should just paste this into your configuration file.This is terrific for demos like mine… BUT you should NEVER, EVER do this…A database server system administrator password placed in a configuration file in clear text format… there has got to be something naive in the extreme going on here… and worse… no way to create non-sa-like users through the UI… you must script your database users and then apply the script to the database. And to anticipate your question… no… you can’t use SQL Server Management Studio to do this either.I will demo this as well in session 3… so hang tight…
  • There are a number of techniques for getting data migrated from an existing database into a SQL Azure database.One very effective technique is to script the database schema and any stored procedures or views and then apply these scripts to the SQL Azure database. Once the schema has been deployed to the cloud, BCP can be used to copy the data in.Another effective technique is to utilize SQL Server Integration Service which will transfer the Schema and the Data.
  • I think that I saved the best for last here… The SQL Server Migration Wizard is available for download from the CodePlex website at the URL on this slide.To quote the website, “The SQL Azure Migration Wizard helps you migrate your local SQL Server 2005 / 2008 databases into SQL Azure. The wizard walks you through the selection of your SQL objects, creates SQL scripts suitable for SQL Azure, and allows you to migrate your data.”I will demonstrate this tool in session 3 when I use it to migrate an application and associated database from the local desktop to the cloud.
  • Although some things can be done with SQL Server 2008 Management Studio, I highly recommend that you use the 2008 R2 Nov CTP as it is SQL Azure aware.After you have created your system administrator account for SQL Azure, you can use SQL Server Management Studio R2 CTP to make connections to the database and execute scripts such as the one that I am showing in this slide.
  • Okay… That’s all about SQL Azure for now… we’ll come back to this topic in Session 3…Keep in mind that SQL Azure is a separate product from Windows Azure…. And that Windows Azure includes Windows Azure Data Storage, which we are going to talk about now. We will be using the Windows Azure Data Storage directly in demos, so these slides will provide more of a brief and high level overview.To get Windows Azure Data Storage setup, we simply create a new Storage Account from the Windows Azure Portal.
  • Our Windows Azure Data Storage will be accessible via RESTful queries at the endpoints you see on this slide, or via the API in the Windows Azure SDK library.We’ll be using the Windows Azure library in our demo.
  • Also provided on our data storage setup screen is the Account Name and a Primary and Secondary Access Key.Our Account name uniquely identifies our Data Storage locationThe Access Keys are a small chunk of encrypted data that prove our identity to Windows Azure Data Storage. We’ll use the Primary Access Key to access and update data stored in Data Storage.
  • It’s time now to introduce Windows Azure Data Storage Blobs.Blobs are for storage of unstructured data.We partition our data by creating Blob containers which we give names to.We can create an unlimited number of Blob Containers.We then simply place our blob data into the blob containers, supplying a unique identifier.When we want to retrieve our data, we simply provide the container and the unique identifier.
  • Windows Azure Data Storage Tables are how we get massively scalable and highly available databases.Although there are some similarities, these tables are very different from relational database tables.Data in Windows Azure Data Storage Tables is semi-structured; The concept of a Windows Azure Data Storage Table is similar to how a spreadsheet is used to provide tabularized organization to data without strongly enforcing data cohesion.… Data is indexed in Tables for high performance retrieval, but there are no relationships between Tables.The tables support ACID transactions over single entities and rich queries over the entire table.
  • The PartitionKey combined with the RowKey uniquely identifies an entity in a table.
  • 11:53Getting the all of dunnry’s post it fast because we’re selecting the entities by a partition keyGetting all of the posts after a certain is slow because we may have to traverse across multiple servers because we’re selecting entities that span partition keysA query without the partition key is really a scan
  • We have included this feature comparison table in anticipation of your likely questions about differences between using a relational database table as you may be currently doing with your SQL Server databases and the new Windows Azure Tables included in Windows Azure.
  • Queues are a means of buffered message delivery. There are very useful for communicating data between our Windows Azure service instances.
  • Use queues as a way of communicating w/ the backend worker rolesWRs call getmessage and pass timeoutTimeout value is importantExpiration time is important; message is marked in the queue as invisible; for duration of timeout it’s invisibleWhen we’re done processing, we call a message to remove the message through a deleteTh reason we do this is imagine we have a second worker role; if something goes wrong, once the timeout expires, the message becomes visible, and the next person to do a get message will get the message
  • Here is a list of resources that will allow you to follow up with us on any of the features you’ve seen today as well as become part of our development community!
  • Windows Azure DiagnosticsLogging and Monitoring in the Cloud
  • Welcome back to session 3 of our 3 part presentation! In case you are just joining us, my name is <name> and we’re going to be doing nothing but a non-stop demonstration of how to build and deploy web applications and databases to the cloud.
  • Build Web ApplicationMigrate Web Application to Windows AzureDeploy to the CloudMigrate Database to SQL ServerMigrate SQL Database to SQL AzureDeploy SQL Azure DatabaseMigrate Web Application to the Cloud
  • Understand the process of building and deployment web applications and databases to Windows Azure and SQL Azure.
  • First… lets start with a clean slate and build a web application from the ground up. We’ll get that application running on our desktop in the local Windows Azure DevFabric. The Cloud will not be a part of this step... But well get there very soon.
  • In this step of our demonstration, we are going to take the web application that is presently running in the local DevFabric and we’re going to deploy it to what’s called the Staging area in the Windows Azure Cloud. Once we have completed this step, we’ll launch our web browser against the Staging area to see our application run in the Cloud for the very first time.
  • In this step of our demonstration, we are going to take the web application that is presently running in the Windows Azure Staging area, and we’re going to promote it to the Production environment.Once we have completed this step, we’ll launch our web browser against the Production environment to see our application run as our production users would see it.
  • In this step of our demonstration, we’re going back to our local DevFabric and making some changes to our application to migrate it from using XML data files to a SQL Server database. We’ll execute our application from the local Devfabric to get things running. Since this step is all development work, nothing will happen in the cloud… that will come later when we deploy.
  • In this step of our demonstration, we’re going to deploy only our SQL Database into the SQL Azure cloud. We’ll continue to execute our application from the local Devfabric to ensure that everything went smoothly with our database promotion.Unlike Windows Azure, SQL Azure does not have a Staging area, so this represents a direct promotion of our database into the production environment.
  • In this step of our demonstration, we’re going to complete our full deployment of database and application to the cloud!As you may recall, we already have a version of your application sitting in the production environment. This is the version that runs off of an XML data store.We’ve already deployed our SQL Database into the SQL Azure cloud… but I’m showing it here just to give us context. We’ll proceed now with deploying our web application to Windows Azure. We’ll deploy to staging and test there. Then when we are satisfied that everything is working properly, we’ll swap Production and Staging.Once this has been done, we’ll point our web browser at the Production environment to see our finished product!
  • In this step of our demonstration, we’re going to complete our full deployment of database and application to the cloud!As you may recall, we already have a version of your application sitting in the production environment. This is the version that runs off of an XML data store.We’ve already deployed our SQL Database into the SQL Azure cloud… but I’m showing it here just to give us context. We’ll proceed now with deploying our web application to Windows Azure. We’ll deploy to staging and test there. Then when we are satisfied that everything is working properly, we’ll swap Production and Staging.Once this has been done, we’ll point our web browser at the Production environment to see our finished product!
  • In this step of our demonstration, we’re going to show how updates can be made to our live Windows Azure application.We’ll revise our application with Visual Studio and test it locally from our Dev Fabric. Then, in the interest of demonstration brevity, we’ll deploy our revised application directly into the production environment, thereby bypassing staging.Once our upgrade deployment has been completed, we’ll point our web browser at the Production environment to see our finished product!
  • In this step of our demonstration, we’re going to show how configuration changes can be made to our Windows Azure environment, such as the number of web and worker instances to create to service our application’s users.It is important to understand the differences between our application’s configuration and the services configuration. Our application keeps its configuration data in its web.config file, while the service keeps its environmental configuration in the ServiceConfiguration.cscfg. If you consider the procedures that we have been through, it will be apparent that changes made to the web.config file will require a service redeployment as that is the only way to get a service package propagated to service instances.Keep in mind that it’s possible to add custom configuration to the ServiceConfiguration as we did for the demos in the Data segment of this presentation thereby avoiding the need to redeploy when making configuration changes.Let’s proceed with a configuration change to the ServiceConfiguration.cscfg file.
  • In this step of our demonstration, we’re going to create a new SQL Azure Login and Database User
  • Here is a list of resources that will allow you to follow up on many of the features you’ve seen today, as well as become part of our development community!
  • Here is a list of resources that will allow you to follow up on many of the features you’ve seen today, as well as become part of our development community!
  • Questions?

The Windows Azure Platform (MSDN Events Series) The Windows Azure Platform (MSDN Events Series) Presentation Transcript

  • Take Your Applications Sky High with Cloud Computing and the Windows Azure Platform
    Dave Bost
    Developer Evangelist
    http://davebost.com/blog
  • For developers who have a thirst for knowledge
    http://thirstydeveloper.com
  • Session 01:Introduction to Microsoft Windows Azure
  • Agenda
    Windows Azure in Action
    Windows Azure Services Platform
    Core Services
    Getting Started
    Roles
    Developing Azure Applications
  • Objectives
    How to get started with:
    Windows Azure Platform
    Windows Azure
    Windows Azure Data Services
    Web and Worker Roles
    Development tools you need
    Ability to develop Windows Azure applications
  • Demo
    Live Windows Azure Application In The Cloud
  • What is Cloud Computing?
    • A New Style of Computing
    Consumption Based Pricing
    • Hosting, Storage, Database, Other Services
    • Software as a Service (SaaS)
    • On-Demand Scale - Mammoth Capacity
    • High Availability and Reliable
    • Self-Service Management
    • Real and Here to Stay
    Additive to the Enterprise, Not Replacing
  • What are the Windows Azure Use Cases?
    On-Premise Application
    and Cloud Storage
    Hosting output of 3D design and archiving enterprise data
    Scalable Web
    Brand web site or photo sharing
    service
    Migration of Legacy
    Applications to
    Windows Azure
    Move legacy applications
    without re-architecting
    the infrastructure
    Scalable Web
    Application with
    Worker Role
    Hosted inventory
    management
    integrated with
    retail POS terminals
    Using Windows Azure
    Computational Power
    Scientific computation
    Large-scale data mining
  • Why Are We Here?Because Cloud Computing is Huge
    At Microsoft:
    • 1 billion: Windows Live ID authentications each day
    • 3 to 4 billion: the # of emails filtered daily from >6 million mail boxes by Forefront
    • 2 billion: the # of queries each month on Bing
    • 450 million:Hotmail users (now 15 years old)
    • 100 million:users that get Windows Update worldwide, (now 12 years old)
    • 20 million:Xbox Live users (now 9 years old)
    • +400,000: square footage of our new datacenters
    For You:
    A new paradigm in computing
  • Platform Continuum
    On-Premises
    Servers
    Hosted Servers
    Cloud Platform
    • Bring your own machines, connectivity, software, etc.
    • Complete control
    • Complete responsibility
    • Static capabilities
    • Upfront capital costs for the infrastructure
    • Renting machines, connectivity, software
    • Less control
    • Fewer responsibilities
    • Lower capital costs
    • More flexible
    • Pay for fixed capacity, even if idle
    • Shared, multi-tenant infrastructure
    • Virtualized & dynamic
    • Scalable & available
    • Abstracted from the infrastructure
    • Higher-level services
    • Pay as you go
  • IaaS, PaaS and IaaS
    Infrastructure as a Service
    Platform as a Service
    Software as a Service
    SaaS
    ApplicationsPackaged Software
    PaaS
    PlatformOS & Application Stack
    PlatformOS & Application Stack
    IaaS
    InfrastructureServers · Storage · Network
    InfrastructureServers · Storage · Network
    InfrastructureServers · Storage · Network
  • Enterprise to Cloud
    Corporate &Departmental Applications
    Consumer to CloudPublicly Accessible
    Web Sites, e-Stores & ISV SaaS Applications
    Cloud Computing Examples
    Cloud as a Hub Between Multiple Companies
    Enterprise to Enterprise
    Company A
    Company B
    Company
  • Driving Forces
    ISVs & SaaS Applications
    Mid-Market Enterprise
    Enterprise Application Migration
    Start-ups & Experimental Initiatives
    Cloud Seen as a Fast Lane to Get to Market Faster
    Seasonal Businesses
    Under Pressure to Dramatically Reduce I.T. Costs
    Cloud Seen as a Competitive Edge
  • Where the Cloud is Compelling
  • Microsoft Data Centers
    Vision
    Go Inside
    Energy Efficient
    Containers
  • Windows Azure
    Fabric – Service Management Infrastructure
    Hosting – Applications, Web Services, Workers
    Storage – Blobs, Queues, Tables, Drives
    Frictionless Upgrades
    Compute
    Storage
    Management
    Compute
    Storage
    Management
    Management
    Relational data
    Connectivity
    Access control
  • SQL Azure
    Core Database Functionality, Subset of SQL Server
    Database available in limited sizes 1GB, 10GB
    Management
    SQL Data Sync
    Management
    Relational data
    Compute
    Storage
    Management
    Management
    Relational data
    Connectivity
    Access control
  • Windows Azure AppFabric
    Service Bus
    Access Control Service
    Management
    Compute
    Storage
    Management
    Management
    Relational data
    Connectivity
    Access control
  • Windows Azure Cloud Fabric
    Multiple virtual instances
    Easily provision of applications
    Detect failures
    Spin up new instances to replace the failed ones
    How many instances and what role they will play
    Load balances and DNS
    Elasticity of the service… scaling up/down number of instances
  • Windows Azure
    Your
    Service
    DNS
    LB
    Web Portal
    (API)
    LB
    Fabric
    Controller
  • Service
    Service
    Service
    Model
    Your
    Service
    DNS
    LB
    Web Portal
    (API)
    DNS
    config
    LB
    Service Deployment
    Fabric
    Controller
  • Your
    Service
    Service
    Service
    DNS
    Service
    Service
    Service
    Service
    Service
    LB
    Service
    Web Portal
    (API)
    LB
    Model
    Service Scaling
    Fabric
    Controller
  • Your
    Service
    Service
    DNS
    Service
    Service
    Service
    LB
    Web Portal
    (API)
    !
    LB
    Model
    Service Monitoring & Recovery
    Fabric
    Controller
  • Windows Azure DevFabricLocal Developer Simulation of AppFabric
    Simulated “Cloud Experience” for Development
    Routes cloud requests to local machine
    Simulates data storage with local SQL server database
    Azure SQL simulated with local SQL Server database
  • Developer Experience
    Developer Experience
    Use existing skills and tools
    Leverage Existing Skills in .NET, SQL Server, WCF
    Use Familiar tools – Visual Studio, SSMS
    RESTful HTTP cloud services, supports PHP, Python
    Cloud apps can be developed locally / offline
    SDK Cloud Simulator – Dev Fabric, Dev Storage
  • Getting Started With Windows AzureThe Windows Azure SDK
    http://www.microsoft.com/windowsazure/developers/
  • Service Management
    Automated Service ManagementProvisioning, Patching, Upgrades
    Fabric
    Self ManagementDeploy, Promote, Scale, Upgrade
    Management Portal
    Programmatic ManagementProgrammatic deployments upgrades, etc. API for doing what the portal does
    Management API
  • Getting Started with Windows AzureThe Windows Azure Platform Portal
    Provision
    Deploy
    Promote
    Stop/Start
    Scale
    Upgrade
    Delete
  • Windows Azure SDK Features
    C# and VB Visual Studio project templates
    Windows Azure Cloud Service solution with multiple roles.
    Tools to manage and configure roles
    Local Development Fabric
    Local Development Storage services
    Local Cloud Service debugging support
    Cloud Service package and deployment builder
    No SDK Required for SQL Azure
  • Defining the Web and Worker Roles
    WEB ROLE
    WORKER ROLE
    Interacts with end-user
    or web services
    Handles incoming
    HTTP/HTTPS requests
    Develop with Microsoft and
    non-Microsoft tools:
    ASP.NET, WCF, other .NET tools
    Java, PHP, etc.
    Does not accept
    incoming requests
    Initiates their own requests
    for data or tasks from
    the queue
    Similar to a "batch job"
    or Windows service
  • Windows Azure Role Details
    Web Roles
    Define a single HTTP endpoint and a single HTTPS endpoint for external clients
    Worker Roles
    Define internal endpoints for HTTP, TCP
    May receive work from Windows Azure Storage Queues
    Web and Worker Roles
    Can make outbound HTTP/S or .NET Framework class library socket connections to Internet accessible resources
    Can access Windows Azure Storage services via REST APIs or the Windows Azure Storage Client Library.
  • Service Models & Roles
    Bid Now Service
    Worker X
    Web A
    (port 80)
    Main Web
    100 instances
    Image Resize
    2 instances
    Worker Y
    Auction Processing
    25 instances
    Web B
    (port 8081)
    Admin
    2 instances
    Worker Z
    Notifications
    10 instances
  • Windows Azure Roles in Visual Studio
  • Demo
    Building Our First Cloud Application
    With Microsoft Windows Azure
  • Application Concerns—Hardware
    Server Instances
    Plan for peak usage scenarios
    Plan for redundancy to reduce down time
    Make up-front capital expenditures
    Servers
    Networking / Load Balancers
    Software Licensing
    Hardware Diagnostics & Failure Recovery
    Detection of failures
    Repair or replacement
    Backup parts on-hand
  • Azure Solution– Hardware
    Hardware Acquisition
    No up-front capital expenditures
    Windows Azure provides redundancy
    Windows Azure scales to meet peak usage
    Hardware Diagnostics & Failure Recovery
    Windows Azure detects hardware failures
    Windows Azure dynamically repairs itself
  • Application Concern – Network Security
    Network Security
    Network Topology & Connectivity
    Firewall Rules & Maintenance
    De-Militarization Zone (DMZ)
    Institutional Resistance to Change
  • Azure Solution – Azure Network Security
    Network Security
    Network Topology & Connectivity
    Created on the fly from configuration
    Firewall Rules & Maintenance
    Provided and configurable
    De-Militarization Zone (DMZ)
    Provided
    Institutional Resistance to Change
    Moves many security concerns to the cloud
  • Conclusion
    You are now Windows Azure savvy…
    You’ve seen Windows Azure in action…
    You’ve learned about the platform and its components and core services
    You understand instance roles
    You know the tools you will need to begin
    You’re excited to use this new technology
    And you can hardly wait for session 2 on data…
  • Resources – Windows Azure Platform
    Windows Azure Developer Platformhttp://www.microsoft.com/windowsazure/developers/
    Channel 9 videoshttp://channel9.msdn.com/azure
    Windows Azure Platform Training Kithttp://www.azure.com
    Microsoft PDC 2009http://microsoftpdc.com/
    Windows Azure SDKhttp://www.microsoft.com/windowsazure/developers/
  • Session 02: Windows Azure Platform Data Storage
  • Agenda
    Windows Azure Platform Data Storage Options
    Getting Started with SQL Azure Data Storage
    Getting Started with Windows Azure Data Storage
    Blobs
    Tables
    Queues
    Drives
    Inspecting the contents of Windows Azure Data Storage
  • Objectives
    Learn the data storage options offered by the Windows Azure Platform and become familiar with choosing and using the appropriate one for your application
  • Azure Platform Data Storage Options
    • SQL Azure
    • Relational data storage
    • Windows Azure Data Storage
    • Blobs
    • Unstructured data storage
    • Tables
    • Semi-structured or tabular data storage
    • Queues
    • Buffered delivery data storage
    • Drives
    • Durable NTFS volumes that Windows Azure applications can use. See: http://microsoftpdc.com/Sessions/SVC14
  • SQL Azure Features
    Supported
    Tables, Indexes, Views
    Stored Procedures
    Triggers
    Constraints
    Table Variables
    Temp Tables (#Name)
    Not Supported
    Physical Server Access
    Catalog DDL
    Common Language Runtime
    Service Broker
    Reporting Services
    Analysis Services
    Distributed Transactions and Queries
  • SQL Azure
    Initial Services
    Database – Core SQL Server database capabilities
    Future Services
    Data Sync – Enables the sync framework
    Additional SQL Server capabilities available as a service: Business Intelligence and Reporting
    New services: Reference Data and Secure Data Hub
  • SQL AzureDeployment
    Web Portal
    (API)
    DB Script
    SQL Azure
    TDS
  • SQL AzureAccessing databases
    Web Portal
    (API)
    Your App
    SQL Azure
    TDS
    Change Connection String
  • Database Replicas
    Single Database
    Multiple Replicas
    Replica 1
    Single Primary
    Replica 2
    DB
    Replica 3
  • SQL AzureDatabase Monitoring & Recovery
    Web Portal
    (API)
    !
    Your App
    SQL Azure
    TDS
  • SQL Azure Server Creation
  • SQL Azure Firewall Maintenance
    • Simple rules
    • Easy one-screen portal maintenance
  • SQL Azure Database Connection String
    An administrative user is created with the server
    User has system administrator permissions likesa”
    Server=tcp:itte80vcfq.database.windows.net; Database=FabrikamAzureDB;User ID=FredSa;Password=myPassword;Trusted_Connection=False;Encrypt=True;
  • Demo
    SQL Azure Database Application
  • Database Migrations
    Scripts
    Transfer Schema
    BCP
    Transfer Data
    SSIS (SQL Server Integration Service)
    Transfer Schema and Data
  • Database Migrations (Cont.)
    The SQL Azure Migration Wizard helps you migrate your local SQL Server 2005 / 2008 databases into SQL Azure. The wizard walks you through the selection of your SQL objects, creates SQL scripts suitable for SQL Azure, and allows you to migrate your data.”
    http://sqlazuremw.codeplex.com/
  • Database Management using SQL Management Studio
  • Getting Started with Windows Azure Data Storage
  • Windows Azure Data Storage
  • Account Name / Key
    AccountName
    A unique name identifying the Azure Data Storage
    AccountKey
    A blob of encrypted data used for authentication
  • Windows Azure Data Storage - Blobs
    Unstructured data storage
    Partitioned by container
    Unlimited containers
  • Demo
    • Windows Azure Data Storage – BlobsThe GuestBook Application
    • Examining the contents ofWindows Azure Data Storage
  • Examining Windows Azure Data Storage
  • Demo
    Examining the contents of
    Windows Azure Data Storage
  • Windows Azure Data Storage - Tables
    Windows Azure Table provides scalable, available, and durable structured (or semi-structured) storage in the form of tables.
    The tables contain entities, and the entities contain properties.
    The tables are scalable to billions of entities and terabytes of data, and may be partitioned across thousands of servers.
    The tables support ACID transactions over single entities and rich queries over the entire table.
    Simple and familiar .NET and REST programming interfaces are provided via ADO.NET Data Services.
    http://go.microsoft.com/fwlink/?LinkId=153401
  • Windows Azure Data Storage – Tables (Terms Part 1)
    Table – contains a set of entities.
    Entity (Row) – Entities are the basic data items stored in a table.
    Property (Column) – This represents a single value in an entity.
    PartitionKey– The first key property of every table. The system uses this key to automatically distribute the table’s entities over many storage nodes.
  • Windows Azure Data Storage – Tables (Terms Part 2)
    RowKey– A second key property for the table. This is the unique ID of the entity within the partition it belongs to.
    Timestamp – Every entity has a version maintained by the system.
    Partition – A set of entities in a table with the same partition key value.
    Sort Order – There is a single index provided for the CTP, where all entities in a table are sorted by PartitionKey and then RowKey
  • Key Example – Blog Posts
    Partition 1
    Partition 2
    Getting all of dunnry’s blog posts is fast
    Single partition
    Getting all posts after 2008-03-27 is slow
    Traverse all partitions
  • SQL Azure and Windows Azure Table Comparison
    Windows Azure Tables
    SQL Azure Tables
    Semi-structured
    Loosely typed
    Non-Relational (Not RDMS)
    Massively scalable
    Fully structured
    Strongly typed
    Relational (RDMS)
    Highly scalable
  • Demo
    Windows Azure Data Storage - Tables
    The GuestBook Application
  • Windows Azure Data Storage - Queues
    Buffered delivery data storage
    Read at least once
    Delete to remove message, otherwise is returned to queue
    Partitioned by Queue Name
  • Azure Queues
    RemoveMessage
    GetMessage (Timeout)
    Worker Role
    PutMessage
    Queue
    Msg 1
    Msg 2
    Msg 2
    Msg 1
    Web Role
    Worker Role
    Worker Role
    Msg 3
    Msg 4
    Msg 2
  • Demo
    Windows Azure Data Storage - Queues
    The GuestBook Application
  • Resources
    Azure Portal
    http://windows.azure.com
    Tools
    SQL Azure Migration Wizard
    http://sqlazuremw.codeplex.com/
    Azure Storage Explorer
    http://azurestorageexplorer.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=35189
    Windows Azure Management Tool (MMC)
    http://cloudfex.com/cs/blogs/cloud/archive/2009/05/17/windows-azure-management-tool-mmc.aspx
    Windows Azure Forums
    http://social.msdn.microsoft.com/Forums/en-US/ssdsgetstarted/threads
  • ResourcesWindows Azure Data Storage
    • Haridas, Jai. “Windows Azure Tables and Queues Deep Dive”. Microsoft PDC. 2009. http://microsoftpdc.com/Sessions/SVC09
    • Calder, Brad. “Windows Azure Blob Deep Dive”. Microsoft PDC. 2009. http://microsoftpdc.com/Sessions/SVC14
  • Resources – White Papers
    Windows Azure Table – Programming Table Storage
    http://go.microsoft.com/fwlink/?LinkId=153401
    Windows Azure Blob – Programming Blob Storage
    http://go.microsoft.com/fwlink/?LinkId=153400
    Windows Azure Queue – Programming Queue Storage
    http://go.microsoft.com/fwlink/?LinkId=153402
  • Session 03:Windows Azure ApplicationsFrom Construction through Deployment
  • Agenda
    Build Web Application
    Migrate Web Application to Windows Azure
    Deploy to the Cloud
    Migrate Database to SQL Server
    Migrate SQL Database to SQL Azure
    Deploy SQL Azure Database
    Migrate Web Application to the Cloud
  • Objective
    Understand the process of building and deploying web applications and databases to Windows Azure and SQL Azure.
  • Part 1 - Developing and Running Application From the Local DevFabric
    Development Workstation
    The Cloud
    DevFabric
    Web App
  • Demo
    Part 1 - Developing and Running Application From the Local DevFabric
  • Part 2 - Deploy A Web ApplicationFrom DevFabric to Windows Azure Staging
    Development Workstation
    Cloud Fabric
    Production
    DevFabric
    Web App
    Web App
    Staging
  • Demo
    Part 2 – Deploy A Web ApplicationFrom DevFabric to Windows Azure Staging Area
  • Part 3 - Deploy A Web ApplicationFrom Windows Azure Staging to Production
    Cloud Fabric
    Production
    Staging
    Web App
    Web App
  • Demo
    Part 3 – Deploy Our Windows Azure Application From The Windows Azure Staging Area into Production
  • Part 4 - Developing and Running ApplicationWith SQL Server From the Local DevFabric
    Development Workstation
    The Cloud
    DevFabric
    Web App
    SQL Database
  • Demo
    Part 4 – Developing and Running Application With SQL Server From the Local DevFabric
  • Part 5 - Developing and Running ApplicationWith SQL Server From the Local DevFabric
    Cloud Fabric
    Development Workstation
    Production
    DevFabric
    Web App
    Staging
    SQL Database
    SQL Database
    SQL Azure
  • Demo
    Part 5 - Developing and Running ApplicationWith SQL Server From the Local DevFabric
  • Part 5 - Developing and Running ApplicationWith Windows Azure and SQL Azure
    Cloud Fabric
    Development Workstation
    Production
    Web App
    DevFabric
    Web App
    Web App
    Staging
    SQL Database
    Web App
    SQL Database
    SQL Azure
  • Demo
    Part 5 - Developing and Running Application With Windows Azure and SQL Azure
  • Step 6 – Deploying ApplicationsWith Windows Azure and SQL Azure
    Cloud Fabric
    Development Workstation
    Production
    Web App
    DevFabric
    Web App
    Web App
    Staging
    SQL Databases
    Web App
    SQL Database
    SQL Azure
  • Demo
    Step 6 – Deploying ApplicationsWith Windows Azure and SQL Azure
  • Part 7 - Deploying Updates To Applications
    Cloud Fabric
    Development Workstation
    Production
    Web App
    DevFabric
    Web App
    Web App
    Staging
    Web App
    SQL Database
    SQL Azure
    SQL Database
  • Demo
    Part 7 - Deploying Updates To Applications
  • Part 8 - Revising Application Configuration
    Cloud Fabric
    Development Workstation
    Production
    Config
    Web App
    DevFabric
    Web App
    Web App
    Staging
    Web App
    SQL Database
    SQL Azure
    SQL Database
  • Demo
    Part 8 - Revising Application Configuration
  • Part 9 - Creating SQL Azure Database Users
    Development Workstation
    SQL Azure
    SQL Server 2008 R2 Mgmt Studio
    SQL Database
    SQL Database
  • Demo
    Part 9 - Creating SQL Azure Database Users
  • Resources - Deployments
    Kerner, Mathew. “Windows Azure Diagnostics, Logging and Monitoring in the Cloud.” Microsoft PDC. 2009. http://microsoftpdc.com/Sessions/SVC15
  • More Information On Stuff We Wanted To Talk About But Didn’t Have Time For…
    AppFabric
    Smith, Justin. “REST Services Security Using the Access Control Service”. Microsoft PDC. 2009 http://microsoftpdc.com/Sessions/SVC19
  • Q & A