stagingproduction swap developer production developer

Post on 21-Dec-2015

235 Views

Category:

Documents

7 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Deep Dive for Microsoft Azure Websites

Ahmed ElSayed (@ahmelsayed)SDE – Azure Websites

DEV-B329

I- Development and Deployment

II- Debugging and Investigations

III- Management and Administration

This Session

Deploying from Visual StudioDeploying from Source Control

Continuous deployment (Visual Studio Online, Github, Bitbucket etc…)

I- Development and Deployment

Staged Publishing

I- Development and Deployment

Staging

Production

swap

Developer

Production

Developer

traffic

traffic

Demo

continuous deployment with staged publishing

Deploying from Visual StudioDeploying from Source Control

Continuous deployment (Github, Bitbucket, etc…)Custom deployment scriptsAnything from small deployment tweaks to complex workflowsE.g.: can be used to run tests (sample here)

I- Development and Deployment

Demo

Custom deployment scripts

WebJobs with Visual Studio

I- Development and Deployment

Demo

Creating and deploying a WebJob using Visual Studio

VS Online “Monaco”

I- Development and Deployment

GitHub swap

Developer 1

Developer 2

Staging

Production

VS Online “Monaco”

Developer 3

Demo

Monaco

Testing in Production

I- Development and Deployment

Staging

Production

swap

Developer

100% production.com

Testing in Production

I- Development and Deployment

Staging

Production

swap

Developer

80% production.com

20% production.com

Demo

Testing in Production

Visual Studio Tools

II- Debugging and Investigations

Demo

Remote debugging, log streaming, and accessing files from Visual Studio

Demo

Remote debugging Java Applications using Eclipsehttps://github.com/Azure/azure-websites-java-remote-debugging

Demo

Remote debugging NodeJs Applications using Node Inspector

Kuduhttps://<mySite>.scm.azurewebsites.net/AuthenticatedRuns in the same security context as the main siteCan access the site files and environment variables

Great for admin and debugging tools

II- Debugging and Investigations

Demo

Kudu Console, Process Explorer, and APIs

More on KuduOpen Source: https://github.com/projectkudu/kuduWe accept contributions!

Git, Mercurial, logging, WebJobs, admin tools, etc…Post deployment hooks

Notification fires after deployment completionPayload contains details about the deployment

It’s a “Site Extension”. More on this later

II- Debugging and Investigations

Support sitehttps://<mySite>.scm.azurewebsites.net/SupportLive view of number of requestsAbility to analyze and get memory dumps per request

II- Debugging and Investigations

Demo

Support site

III- Management and Administration

Azure Portal(s)

IIS Manager

PowerShell

xplat CLI

Visual Studio

Azure API

Azure Web Site

Azure Resource Manager (ARM) TemplatesTemplates that describe a collection of Azure resourcesIdempotent template, so you can apply multiple times for the same result.

III- Management and Administration

Simplified ARM template"resources": [ { "type": "Microsoft.Web/serverfarms" ... }, { "type": "Microsoft.Web/sites" ... } ]

Demo

Azure PowerShell and ARM Templates

Demo

IIS Manager

Role Based Authentication Control (RBAC)OwnerContributorReader

III- Management and Administration

Demo

RBAC

Site ExtensionsOnly the site Owners or Contributors can access them.Runs in the same security context as the site.Have access to the files and environment

Kudu is a Site ExtensionVS Online “Monaco” is a Site Extension

You can write and share your own!http://azure.microsoft.com/blog/2014/09/09/writing-a-site-extension-for-azure-websites/

III- Management and Administration

Site Extensions

Azure Web Site

User Site

Pre-installedSite Extensions

“Kudu”

“Monaco”

WebJobs

WebDeploy

“Bring your own”Site Extensions

Upload to site

Install from

gallery

foo.azurewebsites.net

foo.scm.azurewebsites.net

Ahmed ElSayedEmail: ahmels@microsoft.comGithub: @ahmelsayed

More questions?

http://www.visualstudio.com

http://blogs.msdn.com/b/developer-tools/

http://msdn.microsoft.com/vstudio

DEV Track Resources

visualstudio

@visualstudio

visualstudio

Resources

Learning

Microsoft Certification & Training Resources

www.microsoft.com/learning

Developer Network

http://developer.microsoft.com

TechNet

Resources for IT Professionals

http://microsoft.com/technet

Sessions on Demand

http://channel9.msdn.com/Events/TechEd

Please Complete An Evaluation FormYour input is important!TechEd Schedule Builder CommNet station or PC

TechEd Mobile appPhone or Tablet

QR code

Evaluate this session

© 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, 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.

top related