Upload
spiffy
View
509
Download
5
Tags:
Embed Size (px)
Citation preview
Azure Boot Camp
Building, Deploying, and Managing Windows Azure Applications
Wely LauMicrosoft MVP, Windows AzureSolutions Architect, NCS Pte Ltd
Email : [email protected]: http://wely-lau.net/
(Adapted from Jim Nakashima’s session in PDC2010)
Azure Boot Camp
This talk is for developers.
ON
Azure Boot Camp
Composition
Slides + Others; 25%
Live Demos; 75%
Azure Boot Camp
Agenda
Setting up the cloudDeploying to the cloudViewing into the cloud
New release New relea
se
Azure Boot Camp
Setting up the Cloud
Azure Boot Camp
demo
Creating and Managing Windows Azure Services and SQL Azure Databases
Azure Boot Camp
Creating and Managing Services & Databases
Windows Azure Tools for Microsoft Visual Studio
Free Add-in for Visual Studio 2010Updating content without stopping debuggingIntelliTrace on F5 local debugging (32-bit)Improved F5 performance
Redesigned PortalImproved workflows – fewer clicks and less waitingManagement console
SSMS, sqlcmd, Data Tier Application and other SQL Server tools for SQL Azure
New relea
se
New relea
se
Azure Boot Camp
Deploying to the Cloud
Azure Boot Camp
Deploying to the Cloud
Create a new deployment:Visual StudioWindows Azure PortalCommand line and Powershell
Built using the Service Management REST API
VIP is assigned during deployment
Azure Boot Camp
Updating a Deployment in the Cloud
Update the service configuration fileDeveloper web deploy to a single instanceUpgrade a role or all roles
Reuse existing instancesDeploy and VIP Swap or “DNS Swap”Delete and DeployOS update
Azure Boot Camp
Update Considerations
VIP swap Easier to undoRequires 2 identical environmentsCannot update endpoints
UpgradeReuses existing VMs (Preserves VM state i.e. local cache data)Can update a single roleCannot change the service definitionNot as good for the front end
Requires compatibility between existing and new deployment
Azure Boot Camp
Update Considerations
“DNS Swap”:Requires your own domain nameUpdating the domain record is not immediateNew VIP
Delete/recreate:Down time between deploymentsNew VIP
Azure Boot Camp
Hosted Web Core VS Full IIS
Hosted Web Core (HWC)Web Role did not actually run full IIS. It used a component called Hosted Web Core, the core engine for serving up web pages that can be hosted in a different process.
Learn more: http://blogs.msdn.com/b/windowsazure/archive/2010/12/02/new-full-iis-capabilities-differences-from-hosted-web-core.aspx
Azure Boot Camp
Multiple IIS Sites and Virtual Applications
Upcoming release uses full IIS and not Hosted Web CoreAdd multiple IIS sites and Virtual applications per Web Role in the service definition file
New relea
se
Azure Boot Camp
Multiple IIS Sites and Virtual Applications
Upcoming release uses full IIS and not Hosted Web CoreAdd multiple IIS sites and Virtual applications per Web Role in the service definition file
Manual debugger attach and browser launch
New relea
se
Azure Boot Camp
Adding an IIS Site and Virtual Application to a Web RoleServiceDefinition.csdef<WebRole name="WebRole1"> <Sites> <Site name="Web"> <VirtualApplication name="mail" physicalDirectory="C:\Users\jnak\Desktop\Scratch\WebSite"/> <Bindings> <Binding name="HttpIn" endpointName="HttpIn" /> </Bindings> </Site> <Site name="PDC" physicalDirectory="C:\Users\jnak\Desktop\Scratch\SecondWebSite"> <Bindings> <Binding name="HttpIn" endpointName="HttpIn" hostHeader=“pdctest" /> </Bindings> </Site> </Sites>
Azure Boot Camp
Viewing into the Cloud
Azure Boot Camp
How can you see into the cloud?
Remote DesktopIntelliTraceWindows Azure DiagnosticsSQL Distributed Management Views
Windows Azure Storage ViewersMost SQL Server Tools
New relea
se
Azure Boot Camp
demo
Remote Desktop
Azure Boot Camp
Remote Desktop
Enable as a deployment option in Visual StudioUse the Portal to:
Deploy an exported certificateConnect to an instance
Advanced options are available by editing the Service Definition and Service Configuration files
Designate one role as the remote forwarder
Azure Boot Camp
Windows Azure Diagnostics
Facility that collects diagnostic data from your instances and copies it to a storage account
IIS logs, trace logs, IIS failed request logs, Windows Event logs, Performance counters and crash dumps
Transfer the diagnostic data to a storage accountData is collected locally to each instanceTransfer On Demand or at automatic scheduled intervals
Configure diagnostics and transfers programmatically from within the role or remotely through a .NET API
Windows Azure Monitoring, Logging, and Management APIs
Azure Boot Camp
What’s New in Diagnostics
Enabled as an option and not programmatically
Decoupled from the role process – i.e. starts before and will not exit with the role processCan collect data if the role failed to start or if the role is restarting
Same configuration and API for VM roles
Azure Boot Camp
SQL Distributed Management Views
Interesting data can be retrieved using dynamic management views. SQL Azure supports a subset
Returns information regarding your current logical database only
Common scenarios:Calculate database sizeMonitoring connections (active user and internal tasks)Monitoring Query Performance
Monitoring SQL Azure Using Dynamic Management Views
Azure Boot Camp
Recap
Setting up the cloudDeploying to the cloudViewing into the cloud
Azure Boot Camp
Resources
Cloudy in Seattle blog: http://blogs.msdn.com/jnak Samples
Windows Azure Code SamplesWindows Azure Service Management CmdLets
Related videos:Windows Azure Monitoring, Logging, and Management APIsUsing Microsoft Visual Studio 2010 to Build Application that run on Windows Azure
Azure Boot Camp
Wely LauMicrosoft MVP, Windows AzureSolutions Architect, NCS Pte Ltd
Email : [email protected]: http://wely-lau.net/
Thank you!