building azure websites with visual studio online "monaco"

25

Upload: vuongnhu

Post on 20-Jan-2017

231 views

Category:

Documents


5 download

TRANSCRIPT

Page 1: Building Azure Websites with Visual Studio Online "Monaco"
Page 2: Building Azure Websites with Visual Studio Online "Monaco"

Chris DiasPrincipal Program ManagerBuilding Azure Websites with Visual Studio Online “Monaco”

Building Azure Websites with Visual Studio Online “Monaco”

2-646

Page 3: Building Azure Websites with Visual Studio Online "Monaco"
Page 4: Building Azure Websites with Visual Studio Online "Monaco"
Page 5: Building Azure Websites with Visual Studio Online "Monaco"

Lightweight, friction freeCompanion to VS IDE, accessible from modern browsers on any device, on any platform

Optimized for AzureBuild, maintain, and run Websites directly in Azure

Rich editing experiencesFast, fluid code editing, navigation, and understanding in the browser, without the feel of a browser

Support for today’s frameworks and languagesHTML5 and JavaScript (including TypeScript), Node , PHP, ASP.NET sites, and apps

Monaco

Page 6: Building Azure Websites with Visual Studio Online "Monaco"

Monaco service available as site extension on every Azure site

Access gated by site configuration option and deployment credentials

Tools access via the “.scm” endpoint, live edit wwwroot

Runs as peer to Azure deployment services (“Kudu”)

ArchitectureThermoCloud site

MonacoServices

IISNode,PHP, etc.

Site Extensionwwwroo

tr/w

access

runs

https://thermocloud.scm.azurewebsites.net/dev

http://thermocloud.azurewebsites.net

Azure SCC Deploy

Site Extensionwrites

https://thermocloud.scm.azurewebsites.net/thermocloud.git

Page 7: Building Azure Websites with Visual Studio Online "Monaco"

A word of caution!If ‘deployment from source control’ is enabled, this can overwrite any changes made in the editor…

Page 8: Building Azure Websites with Visual Studio Online "Monaco"

Integrated Git supportConnect to any public or private Git repositoryGit viewlet, streamlined Git UI experiences, full command line control

For quick updates to live sitesChanges are automatically saved to the site (in wwwroot!)Ideal for quickly getting started, simple, static sites (e.g., WordPress, HTML/JavaScript)Not recommended for sites that require transform on deployment

For in-depth modificationsUpload or clone sources into a provisional development siteMake modifications, build, test, run in the development sitePush to production: git endpoint, staging, or production site

Source code management

Page 9: Building Azure Websites with Visual Studio Online "Monaco"

Demo: New Azure website from gallery

Production Sitehttp://mysite.azurewebsites.netMonaco: EnabledDeploy via SCC: Disabled

Page 10: Building Azure Websites with Visual Studio Online "Monaco"

Create a provisional development siteClone from git repositoryDevelop, build, test in development sitePush…

Directly to productionStaging site first, hot swap with productionGit repository linked to staging or productionContinuous build, test, and deploy

Source code management best practices

Page 11: Building Azure Websites with Visual Studio Online "Monaco"

git

git

Dev git

git

clonepush

Production sitemysite.azurewebsites.netMonaco: DisabledDeployment from SCC: Local Git Repo

Development sitemysite-dev.azurewebsites.netMonaco: EnabledDeployment from SCC: Disabled

myproject.visualstudio.comremote: origin

Kudu

Companion development site

Page 12: Building Azure Websites with Visual Studio Online "Monaco"

git

git

Dev git

git

clonepush

Production sitemysite.azurewebsites.netMonaco: DisabledDeployment from SCC: Local Git Repo

Development sitemysite-dev.azurewebsites.netMonaco: EnabledDeployment from SCC: Disabled

push

myproject.visualstudio.comremote: origin

Kudu

Push to production from development

Page 13: Building Azure Websites with Visual Studio Online "Monaco"

Kudu git

git

Dev git

git

myproject.visualstudio.comremote: origin

clonepush

Production sitemysite.azurewebsites.netMonaco: DisabledDeployment from SCC: VSOnline, GitHub, etc.

Development sitemysite-dev.azurewebsites.netMonaco: EnabledDeployment from SCC: Disabled

Linked Branch

Pushing to origin will result in a pull to production

Deploy from linked repo to production

Page 14: Building Azure Websites with Visual Studio Online "Monaco"

Deploy from linked repo to staging git

git

Dev git

git

myproject.visualstudio.comremote: origin

clonepush

Staging sitemysite.azurewebsites.net (staging)Monaco: DisabledDeployment from SCC: VSOnline, GitHub, etc.

Development sitemysite-dev.azurewebsites.netMonaco: EnabledDeployment from SCC: Disabled

Linked Branch

Deploy to staging site lets you hot swap to production

Kudu

Page 15: Building Azure Websites with Visual Studio Online "Monaco"

git

git

Dev git git

clonepush

Production or staging sitemysite.azurewebsites.netMonaco: DisabledDeployment from SCC: VS Online

Development sitemysite-dev.azurewebsites.netMonaco: EnabledDeployment from SCC: Disabled

Pushing to origin triggers a VSO build, test, and deployto staging or production

remote: originmyproject.visualstudio.com

VS online build, test

Kudu

Continuous deployment

Page 16: Building Azure Websites with Visual Studio Online "Monaco"

Language ExperiencesLevel Experiences Languages

BasicSmart editing with coloring, bracket matching, auto indent, textual completion

C#, VB, Razor, Markdown, Handlebars, HTML, XML, INI, Batch, Jade, CoffeeScript

GoodError checking as you type, IntelliSense, go to definition, outline, rename symbol

JavaScript, JSON, CSS, LESS, SASS, PHP

Great Reference searching across files TypeScript

Page 17: Building Azure Websites with Visual Studio Online "Monaco"

Demo: Building node applications

Page 18: Building Azure Websites with Visual Studio Online "Monaco"

Demo: Building ASP.NET web apps

Page 19: Building Azure Websites with Visual Studio Online "Monaco"

Not Done

Page 20: Building Azure Websites with Visual Studio Online "Monaco"

Azure Dashboard will warn when approaching quota limits.

Scale development site if performing CPU and memory intensive tasks.

Avoiding out of quota

Page 21: Building Azure Websites with Visual Studio Online "Monaco"

Tips and tricksFind in folders Multiple cursorsCtrl+click to open to side Editor commands

Quick open Ctrl+arrow to cycle values

Ctrl+hover preview Select for compareUser, team settings Stage selected

changes

Page 22: Building Azure Websites with Visual Studio Online "Monaco"

LearnGet started with the Monaco Channel9 SeriesKeep informed on the Monaco Blog

DoEnable “Edit in Visual Studio Online” for your Dev sitesClone in code from Git repos on visualstudio.comDevelop, build, test, and push to production

TalkSend a Smile!@visualstudio #monaco

Resources

Page 23: Building Azure Websites with Visual Studio Online "Monaco"

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 24: Building Azure Websites with Visual Studio Online "Monaco"

Thank You!

Page 25: Building Azure Websites with Visual Studio Online "Monaco"

© 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.