Download presentation
Presentation is loading. Please wait.
1
Azure Development Using Visual Studio (DEV314)
Paul Yuknewicz Principal Program Manager Lead, Visual Studio Microsoft Corporation © 2007 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.
2
Agenda Cloud Service Projects Deployment Diagnostics
Application development lifecycle Tips ‘n Tricks Demos, Demos, Demos
3
Compute Options Web Sites Cloud Services Virtual Machines
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 Machines Easily deploy and run durable Windows Server and Linux virtual machines using an IaaS environment. Today’s focus
4
Cloud Service Web Role Worker Role VM Role Instances IIS Load Balancer
HTTP/HTTPS, TCP Virtual Machine Application
5
Storage Options Blob Storage SQL Azure Database Table Storage
6
Windows Azure SDK for .NET – June 2012 (1.7)
Includes free add-in for Visual Studio 2010 SP1 and Visual Studio 2012 RC Write, configure, debug and publish your Azure application from Visual Studio Support building Cloud Services that use .NET 3.5 and .NET 4.0 Works with (the free) Visual Web Developer Express, Visual Studio Professional, Premium and Ultimate Azure & ALM in Visual Studio Premium and Ultimate Together Get the tools from: Project template in Visual Studio Azure Developer center
7
Azure SDK Releases Summary Platform, Productivity, and ALM
March ‘11 1.3: VMRole, Connect, RDP Aug ‘11 1.4: Multiple cloud configs, Package command, Web Deploy, VS Profiler Sept ‘11 1.5: Add Azure Deployment Proj, package & build validation, build performance, Universal Provider NuGet pkg Nov ‘11 1.6: Simplified publish, in-place upgrade, simple RDP, cmdline MSBuild June ’12 1.7: added VS2012 RC, side-by-side with 1.6, Caching Preview, Virtual Machines Preview, networking enhancements (UDP, Any, DirectPort), CloudConfigHelper, Publish from TFS
8
demo Cloud Service Project Build a photo gallery 11/16/2018 4:52 PM
© 2007 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.
9
Tips Configuration Understanding Emulator vs. Azure differences
IIS 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 behavior Azure ideal for true integration testing (clean system with no custom folders or files, no GAC’d dependencies, actual network and identities) Configuration Use multiple Cloud config (.CSCFG) files to target Azure environments (e.g. Cloud, Local, Test, LKG, Prod) Use config transforms for multiple web.config Use CloudConfigurationManager to load settings ** F5 & Emulator scenarios presently require running VS as admin-elevated
10
Working with Cloud Configuration Settings CloudConfigurationManager
Load a cloud setting by key name: //tries to load setting from cloud .CSCFG and falls back to web.config private string conn = CloudConfigurationManager.GetSetting("conn"); ServiceConfiguration.Cloud.cscfg example (enables changes post-deployment): <ConfigurationSettings> <Setting name="conn" value=“db://mydatavm.cloudapp.net/" /> </ConfigurationSettings> Web.config example: <appSettings> <add key=“conn” value=“db://mydatavm.cloudapp.net/" /> </appSettings>
11
Tips Publish Save .publishsettings in a SAFE place for reuse
Pick the right cloud service config for the target environment Save full environments as publish profiles Leverage the Windows Azure Activity Log for support & trace info Inspect validation warnings – fast failure is important Enable agents you need: diagnostics, profiling, Intellitrace
12
Diagnostics in the Cloud Key VS Tools
Remote Desktop Interact with actual Role Instances (VMs) Enable in the project Connect in VS Server Explorer, portal, or using PowerShell Windows Azure Diagnostics System logs Application traces IntelliTrace (Visual Studio Ultimate only) Historical record of code execution Like a DVR for debugging when live debugging isn’t possible
13
Windows Azure Diagnostics Getting Started in VS
VS automatically handles: Installing diagnostics agent & sets storage account in cloud config adds DiagnosticMonitorTraceListener to the web.config Developers still needs to: Write code in the OnStart method of the role entry point public override bool OnStart() { DiagnosticMonitorConfiguration diagConfig = DiagnosticMonitor.GetDefaultInitialConfiguration(); //..configure logs and counters off of diagConfig DiagnosticMonitor.Start("Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString", diagConfig); } Configure failed IIS requests tracing in web.config <tracing> <traceFailedRequests> <add path="*"> <traceAreas> <add provider="ASP" verbosity="Verbose" /> <add provider="ASPNET" areas="Infrastructure,Module,Page,AppServices" verbosity="Verbose" /> <add provider="ISAPI Extension" verbosity="Verbose" /> </traceAreas> <failureDefinitions statusCodes=" " /> </add> </traceFailedRequests> </tracing> Code will update the configuration in the wad-control-container (Blob storage)
14
Windows Azure Diagnostics Writing and Viewing Traces
Write traces to log (WADLogstable) using the following code Trace.WriteLine(("Homecontroller Index Writeline", "Information"); Trace.TraceWarning("Homecontroller Index Warning"); Trace.TraceInformation("Homecontroller Index Information"); catch (Exception ex) { Trace.TraceError(ex.Message); } View data in Azure Storage (Server Explorer in Visual studio) Blob storage: IIS failedreqlogfiles and iis logfiles are stored in blob Table storage: all other data LogLevel defines the level of data that is being transferred to storage ScheduledTransferPeriod defines how often the code is transferred to storage (if that is not set or > 1 minute nothing happens)
15
Windows Azure Diagnostics Searching and Filtering Logs
Filter the log data using Odata filters (WADlogsTable in Server Explorer shown below): This filter Timestamp ge datetime' T05:15:00‘ gives you all the data for that date For additional information see:
16
Diagnostics in the Cloud
11/16/2018 4:52 PM demo Diagnostics in the Cloud Remote desktop, Windows Azure diagnostics, and Intellitrace modules © 2007 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.
17
Code Performance in the Cloud Visual Studio Profiler
Captures code execution timing Shows Hot Path through the code
18
Visual Studio Profiler module
11/16/2018 4:52 PM demo Profiling in the Cloud Visual Studio Profiler module © 2007 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.
19
Continuous Delivery to the Cloud
Automates packaging and deployment to Azure Multiple methods: TFS Build, scripting MSBuild and PowerShell Trigger manually, on check-in, or nightly SDK & Tools installable on build servers without VS Complete guidance & code available: Team Foundation Service: On-premise:
20
Publishing from Hosted TFS
11/16/2018 4:52 PM demo Publishing from Hosted TFS Continuous Delivery © 2007 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.
21
Summary Visual Studio + Windows Azure SDK
Tools to improve development of cloud services Diagnostics and debugging Integration with Application Development Lifecycle
22
Related Content Breakout Sessions: Visual Studio Product Demo Stations
DEV Continuous Delivery of Windows Azure Cloud Services (Tues 10:15am, Paul Yuknewicz) AZR App Deployment Options for Windows Azure (Tues 5pm, Vishal Joshi) Visual Studio Product Demo Stations Find Me Later At… Product Demo Stations (Visual Studio) or
23
DEV Track Resources Visual Studio Home Page :: Somasegar’s Blog :: Jason Zander’s Blog :: Facebook :: Twitter ::
24
Resources Learning TechNet http://northamerica.msteched.com
Connect. Share. Discuss. Microsoft Certification & Training Resources TechNet Resources for IT Professionals Resources for Developers
25
Complete an evaluation on CommNet and enter to win!
26
Please Complete an Evaluation Your feedback is important!
Be eligible to win great daily prizes and the grand prize of a $5,000 Travel Voucher! Multiple ways to Evaluate Sessions Scan the Tag to evaluate this session now on myTechEd Mobile
27
11/16/2018 4:52 PM © 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. © 2009 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.
28
11/16/2018 4:52 PM © 2009 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.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.