Deep Dive and Best Practices for Windows Azure Storage Services
Deep Dive into Hidden Gems, Tips and Tricks for Azure Web Sites
Transcript of Deep Dive into Hidden Gems, Tips and Tricks for Azure Web Sites
![Page 1: Deep Dive into Hidden Gems, Tips and Tricks for Azure Web Sites](https://reader036.fdocuments.in/reader036/viewer/2022081517/586779121a28ab17578b6bb8/html5/thumbnails/1.jpg)
![Page 2: Deep Dive into Hidden Gems, Tips and Tricks for Azure Web Sites](https://reader036.fdocuments.in/reader036/viewer/2022081517/586779121a28ab17578b6bb8/html5/thumbnails/2.jpg)
David Ebbo (@davidebbo)Principal Development LeadMicrosoft
Deep dive into hidden gems, tips and tricks for Azure Web Sites
3-624
![Page 3: Deep Dive into Hidden Gems, Tips and Tricks for Azure Web Sites](https://reader036.fdocuments.in/reader036/viewer/2022081517/586779121a28ab17578b6bb8/html5/thumbnails/3.jpg)
Wake you up!Get you excited about Azure Web SitesGet your feedback to make it even better
Session goals
![Page 4: Deep Dive into Hidden Gems, Tips and Tricks for Azure Web Sites](https://reader036.fdocuments.in/reader036/viewer/2022081517/586779121a28ab17578b6bb8/html5/thumbnails/4.jpg)
Direct deployment has two primary issues:1. You can’t test it on Azure before it goes
live2. It incurs a site cold start (slow in ASP.NET)
The answer: use a staging slot!
Staged deployment
![Page 5: Deep Dive into Hidden Gems, Tips and Tricks for Azure Web Sites](https://reader036.fdocuments.in/reader036/viewer/2022081517/586779121a28ab17578b6bb8/html5/thumbnails/5.jpg)
Staged deployment
Staging
Production
swap
Developer
![Page 6: Deep Dive into Hidden Gems, Tips and Tricks for Azure Web Sites](https://reader036.fdocuments.in/reader036/viewer/2022081517/586779121a28ab17578b6bb8/html5/thumbnails/6.jpg)
Continuous deployment with staging
GitHub
Staging
Production
swap
Developer 1
Developer 2
![Page 7: Deep Dive into Hidden Gems, Tips and Tricks for Azure Web Sites](https://reader036.fdocuments.in/reader036/viewer/2022081517/586779121a28ab17578b6bb8/html5/thumbnails/7.jpg)
Demo: continuous deployment with staging
![Page 8: Deep Dive into Hidden Gems, Tips and Tricks for Azure Web Sites](https://reader036.fdocuments.in/reader036/viewer/2022081517/586779121a28ab17578b6bb8/html5/thumbnails/8.jpg)
https://mysite.scm.azurewebsites.net/
AuthenticatedRuns in same security context as main site
Can access the site files and environment variablesGreat for admin tools!
Kudu – Web Site’s worst kept secret
![Page 9: Deep Dive into Hidden Gems, Tips and Tricks for Azure Web Sites](https://reader036.fdocuments.in/reader036/viewer/2022081517/586779121a28ab17578b6bb8/html5/thumbnails/9.jpg)
Demo: Kudu Console
![Page 10: Deep Dive into Hidden Gems, Tips and Tricks for Azure Web Sites](https://reader036.fdocuments.in/reader036/viewer/2022081517/586779121a28ab17578b6bb8/html5/thumbnails/10.jpg)
It’s a piece of Azure Web SitesDeveloped as an Open Source project
https://github.com/projectkudu/kuduGit, Mercurial, logging, WebJobs, admin tools, etc…We accepts contributions!It’s a “Site Extension”. More on this later!Some of the UI will become portal UI
What is this “Kudu” thing anyway?
![Page 11: Deep Dive into Hidden Gems, Tips and Tricks for Azure Web Sites](https://reader036.fdocuments.in/reader036/viewer/2022081517/586779121a28ab17578b6bb8/html5/thumbnails/11.jpg)
Many ways to manage an Azure Web Site
Azure Portal(s)
IIS Manager
PowerShell
xplat CLI
Visual Studio
Azure API
Azure Web Site
![Page 12: Deep Dive into Hidden Gems, Tips and Tricks for Azure Web Sites](https://reader036.fdocuments.in/reader036/viewer/2022081517/586779121a28ab17578b6bb8/html5/thumbnails/12.jpg)
Alternative client to manage your sitesPowerShell cmdlets on WindowsNode-based command line for OS X, Linux, Windows
Azure Command Line Interface (CLI)
![Page 13: Deep Dive into Hidden Gems, Tips and Tricks for Azure Web Sites](https://reader036.fdocuments.in/reader036/viewer/2022081517/586779121a28ab17578b6bb8/html5/thumbnails/13.jpg)
Take control over your deployment stepsAnything from small tweaks to complex workflowse.g. can be used to run tests (sample here)
Custom deployment scripts
![Page 14: Deep Dive into Hidden Gems, Tips and Tricks for Azure Web Sites](https://reader036.fdocuments.in/reader036/viewer/2022081517/586779121a28ab17578b6bb8/html5/thumbnails/14.jpg)
Demo: CLI and custom deployment scripts
![Page 15: Deep Dive into Hidden Gems, Tips and Tricks for Azure Web Sites](https://reader036.fdocuments.in/reader036/viewer/2022081517/586779121a28ab17578b6bb8/html5/thumbnails/15.jpg)
Notification fires after deployment completionPayload contains details about the deploymentCan be hooked up to sites like Zapier
Post deployment notifications
![Page 16: Deep Dive into Hidden Gems, Tips and Tricks for Azure Web Sites](https://reader036.fdocuments.in/reader036/viewer/2022081517/586779121a28ab17578b6bb8/html5/thumbnails/16.jpg)
Post deployment notifications
GitHub swap
Developer 1
Developer 2
ZapierStaging
Text message
Production
![Page 17: Deep Dive into Hidden Gems, Tips and Tricks for Azure Web Sites](https://reader036.fdocuments.in/reader036/viewer/2022081517/586779121a28ab17578b6bb8/html5/thumbnails/17.jpg)
Demo: post deployment notifications
![Page 18: Deep Dive into Hidden Gems, Tips and Tricks for Azure Web Sites](https://reader036.fdocuments.in/reader036/viewer/2022081517/586779121a28ab17578b6bb8/html5/thumbnails/18.jpg)
Powerful tools to debug & manage your siteLog streamingDebuggingFile accessDeployment
Visual Studio integration
![Page 19: Deep Dive into Hidden Gems, Tips and Tricks for Azure Web Sites](https://reader036.fdocuments.in/reader036/viewer/2022081517/586779121a28ab17578b6bb8/html5/thumbnails/19.jpg)
Demo: Log streaming, debugging and accessing files from Visual Studio
![Page 20: Deep Dive into Hidden Gems, Tips and Tricks for Azure Web Sites](https://reader036.fdocuments.in/reader036/viewer/2022081517/586779121a28ab17578b6bb8/html5/thumbnails/20.jpg)
REST API lets you drills into processes, threads and handlesKudu has UI to visualize itVisual Studio can analyze .NET allocations to find leaks
Processes, threads and memory
![Page 21: Deep Dive into Hidden Gems, Tips and Tricks for Azure Web Sites](https://reader036.fdocuments.in/reader036/viewer/2022081517/586779121a28ab17578b6bb8/html5/thumbnails/21.jpg)
Demo: process analysis
![Page 22: Deep Dive into Hidden Gems, Tips and Tricks for Azure Web Sites](https://reader036.fdocuments.in/reader036/viewer/2022081517/586779121a28ab17578b6bb8/html5/thumbnails/22.jpg)
Can be deployed by uploading zip files in portalCan also be deployed as part of your web app
WebJobs
![Page 23: Deep Dive into Hidden Gems, Tips and Tricks for Azure Web Sites](https://reader036.fdocuments.in/reader036/viewer/2022081517/586779121a28ab17578b6bb8/html5/thumbnails/23.jpg)
Demo: WebJobs
![Page 24: Deep Dive into Hidden Gems, Tips and Tricks for Azure Web Sites](https://reader036.fdocuments.in/reader036/viewer/2022081517/586779121a28ab17578b6bb8/html5/thumbnails/24.jpg)
Using VS Online “Monaco”
GitHub swap
Developer 1
Developer 2
ZapierStaging
Text message
Production
VS Online “Monaco”
Developer 3
![Page 25: Deep Dive into Hidden Gems, Tips and Tricks for Azure Web Sites](https://reader036.fdocuments.in/reader036/viewer/2022081517/586779121a28ab17578b6bb8/html5/thumbnails/25.jpg)
Demo: Visual Studio Online “Monaco”
![Page 26: Deep Dive into Hidden Gems, Tips and Tricks for Azure Web Sites](https://reader036.fdocuments.in/reader036/viewer/2022081517/586779121a28ab17578b6bb8/html5/thumbnails/26.jpg)
NuGet package availableMicrosoft.WindowsAzure.Management.WebSites
Can do the same things as portal and CLI
Using Azure APIs programmatically
![Page 27: Deep Dive into Hidden Gems, Tips and Tricks for Azure Web Sites](https://reader036.fdocuments.in/reader036/viewer/2022081517/586779121a28ab17578b6bb8/html5/thumbnails/27.jpg)
Demo: Use the Azure API
![Page 28: Deep Dive into Hidden Gems, Tips and Tricks for Azure Web Sites](https://reader036.fdocuments.in/reader036/viewer/2022081517/586779121a28ab17578b6bb8/html5/thumbnails/28.jpg)
Demo: using IIS manager
![Page 29: Deep Dive into Hidden Gems, Tips and Tricks for Azure Web Sites](https://reader036.fdocuments.in/reader036/viewer/2022081517/586779121a28ab17578b6bb8/html5/thumbnails/29.jpg)
Only the site owner can access themHave access to the files and environmentWe’ve used some already today!
“Kudu” is a Site ExtensionSo is Visual Studio Online “Monaco”
But you can also write and share your own!
Site Extensions
![Page 30: Deep Dive into Hidden Gems, Tips and Tricks for Azure Web Sites](https://reader036.fdocuments.in/reader036/viewer/2022081517/586779121a28ab17578b6bb8/html5/thumbnails/30.jpg)
Site Extensions
Azure Web Site
User Site
Pre-installedSite Extensions
“Kudu”
“Monaco”
Web Jobs
WebDeploy
“Bring your own”Site Extensions
Upload to site
Install from
gallery
foo.azurewebsitesnet
foo.scm.azurewebsitesnet
![Page 31: Deep Dive into Hidden Gems, Tips and Tricks for Azure Web Sites](https://reader036.fdocuments.in/reader036/viewer/2022081517/586779121a28ab17578b6bb8/html5/thumbnails/31.jpg)
Demo: Site Extensions
![Page 32: Deep Dive into Hidden Gems, Tips and Tricks for Azure Web Sites](https://reader036.fdocuments.in/reader036/viewer/2022081517/586779121a28ab17578b6bb8/html5/thumbnails/32.jpg)
Azure Web Sites come with lots of powerful tools and workflowsSite Extensions are the new hot thingsGive us feedback!
Takeaways
![Page 33: Deep Dive into Hidden Gems, Tips and Tricks for Azure Web Sites](https://reader036.fdocuments.in/reader036/viewer/2022081517/586779121a28ab17578b6bb8/html5/thumbnails/33.jpg)
What’s New with Azure Web Sites (3-625)Architecting Massive-Scale Ready-For-Business Web Apps (3-626)
10:30am in hall 1BVisual Studio online “Monaco” (2-646)
2pm in hall 1A
Related sessions
![Page 34: Deep Dive into Hidden Gems, Tips and Tricks for Azure Web Sites](https://reader036.fdocuments.in/reader036/viewer/2022081517/586779121a28ab17578b6bb8/html5/thumbnails/34.jpg)
Your Feedback is ImportantFill out an evaluation of this session and help shape future events. Scan the QR code to evaluate this session on your mobile device. You’ll also be entered into a daily prize drawing!
![Page 35: Deep Dive into Hidden Gems, Tips and Tricks for Azure Web Sites](https://reader036.fdocuments.in/reader036/viewer/2022081517/586779121a28ab17578b6bb8/html5/thumbnails/35.jpg)
© 2014 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.