![Page 1: Getting started w ith cloud s ervices d evelopment](https://reader035.vdocuments.us/reader035/viewer/2022081312/56815f56550346895dce35c9/html5/thumbnails/1.jpg)
Getting started with cloud services developmentPaul YuknewiczPrincipal Program Manager LeadVisual Studio Azure Tools3-040
![Page 2: Getting started w ith cloud s ervices d evelopment](https://reader035.vdocuments.us/reader035/viewer/2022081312/56815f56550346895dce35c9/html5/thumbnails/2.jpg)
Cloud service overviewBuilding applicationsDeployment and updatesEveryday troubleshootingDemos, demos, demosTips ‘n tricks
Agenda
![Page 3: Getting started w ith cloud s ervices d evelopment](https://reader035.vdocuments.us/reader035/viewer/2022081312/56815f56550346895dce35c9/html5/thumbnails/3.jpg)
Web sites
Quickly and easily deploy sites to a highly scalable cloud environment
Cloud services
Highly-available, scalable applications and services using a rich PaaS environment. Support advanced multi-tier scenarios, automated deployments and elastic scale
Virtual machine
Easily deploy and run durable Windows Server and Linux virtual machines using an IaaS environment
Compute Options
Today’s focus
![Page 4: Getting started w ith cloud s ervices d evelopment](https://reader035.vdocuments.us/reader035/viewer/2022081312/56815f56550346895dce35c9/html5/thumbnails/4.jpg)
Cloud service
IIS
Web role instances
Worker role
instances
Load Balancer
HTTP/HTTPS, TCP
Queue
IaaS virtual
machine
Virtual machine
Application
![Page 5: Getting started w ith cloud s ervices d evelopment](https://reader035.vdocuments.us/reader035/viewer/2022081312/56815f56550346895dce35c9/html5/thumbnails/5.jpg)
Blob storage SQL databaseTable storage
Storage options
![Page 6: Getting started w ith cloud s ervices d evelopment](https://reader035.vdocuments.us/reader035/viewer/2022081312/56815f56550346895dce35c9/html5/thumbnails/6.jpg)
Windows Azure SDK for .NET–October 2012 (1.8)Includes free add-in for Visual Studio 2010 SP1 and Visual Studio 2012Write, configure, debug and publish your Windows Azure application from Visual StudioSupport building cloud services that use .NET 4.0 and .NET 4.5 (Windows Server 2008 R2 & Windows Server 2012)Works with (the free) Visual Web Developer express, Visual Studio professional, premium and ultimateAzure & ALM in Visual Studio premium and ultimate togetherGet the tools fromProject template in Visual StudioAzure developer center http://www.windowsazure.com/en-us/develop/net/
![Page 7: Getting started w ith cloud s ervices d evelopment](https://reader035.vdocuments.us/reader035/viewer/2022081312/56815f56550346895dce35c9/html5/thumbnails/7.jpg)
Azure SDK Releases Summary–Platform, Productivity, and ALMMarch ‘11 1.3: VMRole, connect, RDPAug ‘11 1.4: Multiple cloud configs, package command, web deploy, VS profilerSept ‘11 1.5: Add Azure Deployment proj, package & build validation, build performance, Universal Provider NuGet pkgNov ‘11 1.6: simplified publish, in-place upgrade, simple RDP, cmdline MSBuildJune ’12 1.7 Sp1: added VS2012, side-by-side with 1.6, caching preview, virtual machines preview, networking enhancements (UDP, any, DirectPort), CloudConfigHelper, publish from TFSOct ’12 1.8: .NET 4.5 (Windows Server 2012), caching GA, storage updates
![Page 8: Getting started w ith cloud s ervices d evelopment](https://reader035.vdocuments.us/reader035/viewer/2022081312/56815f56550346895dce35c9/html5/thumbnails/8.jpg)
Demo
Build and deploy a cloud service
![Page 9: Getting started w ith cloud s ervices d evelopment](https://reader035.vdocuments.us/reader035/viewer/2022081312/56815f56550346895dce35c9/html5/thumbnails/9.jpg)
TipsUnderstanding Emulator vs. Azure differencesIIS Express is lightweight option; runs by default as your user account**IIS Server is full fidelity option; runs by default as network service**Emulator ideal for dev and unit testing multi-instance behaviorAzure ideal for true integration testing (clean system with no custom folders or files, no GAC’d dependencies, actual network and identities)ConfigurationUse multiple Cloud config (.CSCFG) files to target Azure environments (e.g., cloud, local, test, LKG, prod)Use config transforms for multiple web.configUse CloudConfigurationManager to load settings** F5 & Emulator scenarios presently require running VS as admin-elevated
![Page 10: Getting started w ith cloud s ervices d evelopment](https://reader035.vdocuments.us/reader035/viewer/2022081312/56815f56550346895dce35c9/html5/thumbnails/10.jpg)
Working with cloud configuration settingsCloudConfigurationManagerLoad a cloud setting by key name:
<ConfigurationSettings><Setting name="conn" value=“db://mydatavm.cloudapp.net/" />
</ConfigurationSettings>
ServiceConfiguration.Cloud.cscfg example (enables changes post-deployment):
<appSettings><add key=“conn” value=“db://mydatavm.cloudapp.net/" />
</appSettings>
Web.config example:
//tries to load setting from cloud .CSCFG and falls back to web.configprivate string conn = CloudConfigurationManager.GetSetting("conn");
![Page 11: Getting started w ith cloud s ervices d evelopment](https://reader035.vdocuments.us/reader035/viewer/2022081312/56815f56550346895dce35c9/html5/thumbnails/11.jpg)
TipsPublishSave .publishsettings in a SAFE place for reusePick the right cloud service config for the target environmentSave full environments as publish profilesLeverage the Windows Azure activity log for support & trace infoInspect validation warnings–fast failure is importantEnable agents you need: diagnostics, profiling, intellitrace
![Page 12: Getting started w ith cloud s ervices d evelopment](https://reader035.vdocuments.us/reader035/viewer/2022081312/56815f56550346895dce35c9/html5/thumbnails/12.jpg)
Diagnostics in the cloud–key VS toolsRemote desktopInteract with actual role instances (VMs)Enable in the projectConnect in VS server explorer, portal, or using PowerShellWindows Azure DiagnosticsSystem logsApplication tracesIntelliTrace (Visual Studio ultimate only)Historical record of code executionLike a DVR for debugging when live debugging isn’t possible
![Page 13: Getting started w ith cloud s ervices d evelopment](https://reader035.vdocuments.us/reader035/viewer/2022081312/56815f56550346895dce35c9/html5/thumbnails/13.jpg)
Demo
Everyday cloud troubleshooting
![Page 14: Getting started w ith cloud s ervices d evelopment](https://reader035.vdocuments.us/reader035/viewer/2022081312/56815f56550346895dce35c9/html5/thumbnails/14.jpg)
Continuous delivery to the cloudAutomates packaging and deployment to AzureMultiple methods: TFS build, scripting MSBuild and PowerShell Trigger manually, on check-in, or nightlySDK & tools installable on build servers without VSComplete guidance & code availableTeam foundation service: https://www.windowsazure.com/en-us/develop/net/common-tasks/publishing-with-tfs/ On-premise: https://www.windowsazure.com/en-us/develop/net/common-tasks/continuous-delivery/#step1
![Page 15: Getting started w ith cloud s ervices d evelopment](https://reader035.vdocuments.us/reader035/viewer/2022081312/56815f56550346895dce35c9/html5/thumbnails/15.jpg)
Demo
Continuous delivery
![Page 16: Getting started w ith cloud s ervices d evelopment](https://reader035.vdocuments.us/reader035/viewer/2022081312/56815f56550346895dce35c9/html5/thumbnails/16.jpg)
Summary–Visual Studio + Windows Azure SDKPlatform for scalable N-tier servicesTools to improve development of cloud servicesIntegration with application development lifecycle
![Page 17: Getting started w ith cloud s ervices d evelopment](https://reader035.vdocuments.us/reader035/viewer/2022081312/56815f56550346895dce35c9/html5/thumbnails/17.jpg)
Wed, 11:15 – B33 McKinley – Windows Azure Overview (Scott Guthrie)Wed, 13:45 – B33 Introduction to Windows Azure IaaS (Mark Russinovich)Fri, 8:30am – B92 Odyssey – Advanced Cloud Services (Haishi Bai)
Related Sessions
![Page 18: Getting started w ith cloud s ervices d evelopment](https://reader035.vdocuments.us/reader035/viewer/2022081312/56815f56550346895dce35c9/html5/thumbnails/18.jpg)
Resources
Please submit session evals on the Build Windows 8 App or at http://aka.ms/BuildSessions
• http://www.windowsazure.com/en-us/develop/net/
![Page 19: Getting started w ith cloud s ervices d evelopment](https://reader035.vdocuments.us/reader035/viewer/2022081312/56815f56550346895dce35c9/html5/thumbnails/19.jpg)
• Follow us on Twitter @WindowsAzure
• Get Started: www.windowsazure.com/build
Resources
Please submit session evals on the Build Windows 8 App or at http://aka.ms/BuildSessions
![Page 20: Getting started w ith cloud s ervices d evelopment](https://reader035.vdocuments.us/reader035/viewer/2022081312/56815f56550346895dce35c9/html5/thumbnails/20.jpg)
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.