Download - Building & managing wa app wely
![Page 1: Building & managing wa app wely](https://reader036.vdocuments.mx/reader036/viewer/2022062307/558435bbd8b42abf1e8b47d8/html5/thumbnails/1.jpg)
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)
![Page 2: Building & managing wa app wely](https://reader036.vdocuments.mx/reader036/viewer/2022062307/558435bbd8b42abf1e8b47d8/html5/thumbnails/2.jpg)
Azure Boot Camp
This talk is for developers.
ON
![Page 3: Building & managing wa app wely](https://reader036.vdocuments.mx/reader036/viewer/2022062307/558435bbd8b42abf1e8b47d8/html5/thumbnails/3.jpg)
Azure Boot Camp
Composition
Slides + Others; 25%
Live Demos; 75%
![Page 4: Building & managing wa app wely](https://reader036.vdocuments.mx/reader036/viewer/2022062307/558435bbd8b42abf1e8b47d8/html5/thumbnails/4.jpg)
Azure Boot Camp
Agenda
Setting up the cloudDeploying to the cloudViewing into the cloud
New release New relea
se
![Page 5: Building & managing wa app wely](https://reader036.vdocuments.mx/reader036/viewer/2022062307/558435bbd8b42abf1e8b47d8/html5/thumbnails/5.jpg)
Azure Boot Camp
Setting up the Cloud
![Page 6: Building & managing wa app wely](https://reader036.vdocuments.mx/reader036/viewer/2022062307/558435bbd8b42abf1e8b47d8/html5/thumbnails/6.jpg)
Azure Boot Camp
demo
Creating and Managing Windows Azure Services and SQL Azure Databases
![Page 7: Building & managing wa app wely](https://reader036.vdocuments.mx/reader036/viewer/2022062307/558435bbd8b42abf1e8b47d8/html5/thumbnails/7.jpg)
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
![Page 8: Building & managing wa app wely](https://reader036.vdocuments.mx/reader036/viewer/2022062307/558435bbd8b42abf1e8b47d8/html5/thumbnails/8.jpg)
Azure Boot Camp
Deploying to the Cloud
![Page 9: Building & managing wa app wely](https://reader036.vdocuments.mx/reader036/viewer/2022062307/558435bbd8b42abf1e8b47d8/html5/thumbnails/9.jpg)
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
![Page 10: Building & managing wa app wely](https://reader036.vdocuments.mx/reader036/viewer/2022062307/558435bbd8b42abf1e8b47d8/html5/thumbnails/10.jpg)
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
![Page 11: Building & managing wa app wely](https://reader036.vdocuments.mx/reader036/viewer/2022062307/558435bbd8b42abf1e8b47d8/html5/thumbnails/11.jpg)
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
![Page 12: Building & managing wa app wely](https://reader036.vdocuments.mx/reader036/viewer/2022062307/558435bbd8b42abf1e8b47d8/html5/thumbnails/12.jpg)
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
![Page 13: Building & managing wa app wely](https://reader036.vdocuments.mx/reader036/viewer/2022062307/558435bbd8b42abf1e8b47d8/html5/thumbnails/13.jpg)
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
![Page 14: Building & managing wa app wely](https://reader036.vdocuments.mx/reader036/viewer/2022062307/558435bbd8b42abf1e8b47d8/html5/thumbnails/14.jpg)
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
![Page 15: Building & managing wa app wely](https://reader036.vdocuments.mx/reader036/viewer/2022062307/558435bbd8b42abf1e8b47d8/html5/thumbnails/15.jpg)
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
![Page 16: Building & managing wa app wely](https://reader036.vdocuments.mx/reader036/viewer/2022062307/558435bbd8b42abf1e8b47d8/html5/thumbnails/16.jpg)
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>
![Page 17: Building & managing wa app wely](https://reader036.vdocuments.mx/reader036/viewer/2022062307/558435bbd8b42abf1e8b47d8/html5/thumbnails/17.jpg)
Azure Boot Camp
Viewing into the Cloud
![Page 18: Building & managing wa app wely](https://reader036.vdocuments.mx/reader036/viewer/2022062307/558435bbd8b42abf1e8b47d8/html5/thumbnails/18.jpg)
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
![Page 19: Building & managing wa app wely](https://reader036.vdocuments.mx/reader036/viewer/2022062307/558435bbd8b42abf1e8b47d8/html5/thumbnails/19.jpg)
Azure Boot Camp
demo
Remote Desktop
![Page 20: Building & managing wa app wely](https://reader036.vdocuments.mx/reader036/viewer/2022062307/558435bbd8b42abf1e8b47d8/html5/thumbnails/20.jpg)
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
![Page 21: Building & managing wa app wely](https://reader036.vdocuments.mx/reader036/viewer/2022062307/558435bbd8b42abf1e8b47d8/html5/thumbnails/21.jpg)
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
![Page 22: Building & managing wa app wely](https://reader036.vdocuments.mx/reader036/viewer/2022062307/558435bbd8b42abf1e8b47d8/html5/thumbnails/22.jpg)
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
![Page 23: Building & managing wa app wely](https://reader036.vdocuments.mx/reader036/viewer/2022062307/558435bbd8b42abf1e8b47d8/html5/thumbnails/23.jpg)
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
![Page 24: Building & managing wa app wely](https://reader036.vdocuments.mx/reader036/viewer/2022062307/558435bbd8b42abf1e8b47d8/html5/thumbnails/24.jpg)
Azure Boot Camp
Recap
Setting up the cloudDeploying to the cloudViewing into the cloud
![Page 25: Building & managing wa app wely](https://reader036.vdocuments.mx/reader036/viewer/2022062307/558435bbd8b42abf1e8b47d8/html5/thumbnails/25.jpg)
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
![Page 26: Building & managing wa app wely](https://reader036.vdocuments.mx/reader036/viewer/2022062307/558435bbd8b42abf1e8b47d8/html5/thumbnails/26.jpg)
Azure Boot Camp
Wely LauMicrosoft MVP, Windows AzureSolutions Architect, NCS Pte Ltd
Email : [email protected]: http://wely-lau.net/
Thank you!