32
park the future. May 4 – 8, 2015 Chicago, IL

Msbuild /t:package /p:packagelocation=\\ourserver\drops\.\Publish-WebApplicationWebSite.ps1 ` -Configuration.\Configurations\WebApplication1-WAWS-dev.json

Embed Size (px)

Citation preview

Page 1: Msbuild /t:package /p:packagelocation=\\ourserver\drops\.\Publish-WebApplicationWebSite.ps1 ` -Configuration.\Configurations\WebApplication1-WAWS-dev.json

Spark the future.

May 4 – 8, 2015Chicago, IL

Page 2: Msbuild /t:package /p:packagelocation=\\ourserver\drops\.\Publish-WebApplicationWebSite.ps1 ` -Configuration.\Configurations\WebApplication1-WAWS-dev.json

Getting Started with the Azure SDK 2.6 for ASP.NET DevelopersPaul YuknewiczGroup Program Manger, [email protected]

BRK2710

Page 3: Msbuild /t:package /p:packagelocation=\\ourserver\drops\.\Publish-WebApplicationWebSite.ps1 ` -Configuration.\Configurations\WebApplication1-WAWS-dev.json

AgendaOverviewGetting StartedDiagnostics & PreventionLifecycleLoads of Demos!Summary

Page 4: Msbuild /t:package /p:packagelocation=\\ourserver\drops\.\Publish-WebApplicationWebSite.ps1 ` -Configuration.\Configurations\WebApplication1-WAWS-dev.json

Overview

Page 5: Msbuild /t:package /p:packagelocation=\\ourserver\drops\.\Publish-WebApplicationWebSite.ps1 ` -Configuration.\Configurations\WebApplication1-WAWS-dev.json

Enable and accelerate building cloud appsCustomer driven - http://aka.ms/sdkfeedbackShip often - tools, command-line, libraries, emulators, ALM tools; side-by-side installNET SDK: two shipping versions of VS (2012, 2013) and pre-release too (2015 RC); PowerShellJava SDK: Eclipse and IntelliJ plugins; CLI tools for Linux/Mac/WindowsNode.js, Python, and Ruby SDKs

Azure SDK Design Goals

Page 6: Msbuild /t:package /p:packagelocation=\\ourserver\drops\.\Publish-WebApplicationWebSite.ps1 ` -Configuration.\Configurations\WebApplication1-WAWS-dev.json

Available for download – Web Platform Installer

Azure SDK 2.6

Also, http://azure.microsoft.com/en-us/downloads/

Page 7: Msbuild /t:package /p:packagelocation=\\ourserver\drops\.\Publish-WebApplicationWebSite.ps1 ` -Configuration.\Configurations\WebApplication1-WAWS-dev.json

Part of Azure subscriptions Visual Studio 2013 Community and Visual Studio 2015 RC Includes SDK 2.6

MSDN subscribers also get Visual Studio 2013 Professional and Ultimate (depends on subscription) Windows client images for Win7/Win8.1 Up to $150 USD in Azure credits to use here

Try it now Current portal: Visual Studio New portal: VM Marketplace, Developer

Visual Studio and Azure SDK Developer Images in Azure

Page 8: Msbuild /t:package /p:packagelocation=\\ourserver\drops\.\Publish-WebApplicationWebSite.ps1 ` -Configuration.\Configurations\WebApplication1-WAWS-dev.json

App Service Scalable Web App, Mobile App, API App, and Logic App for any device

Cloud Service Highly available, scalable n-tier cloud apps More control over OS software customization

Service Fabric Next generation highly scalable, reliable, easily managed apps

composed of micro services

Virtual Machines Custom Windows and Linux virtual machines Most control over OS and software Azure Resource Manager (ARM) templates

Web & Cloud Compute Services in Azure

Page 9: Msbuild /t:package /p:packagelocation=\\ourserver\drops\.\Publish-WebApplicationWebSite.ps1 ` -Configuration.\Configurations\WebApplication1-WAWS-dev.json

Storage Blob, Table, and Queue services

SQL Managed relational database-as-a-service Also available on Virtual Machines

DocDB Managed NoSQL database-as-a-service

Azure Active Directory Media and CDN Analytics and many more..

Foundational Services

Page 10: Msbuild /t:package /p:packagelocation=\\ourserver\drops\.\Publish-WebApplicationWebSite.ps1 ` -Configuration.\Configurations\WebApplication1-WAWS-dev.json

Getting Started

Page 11: Msbuild /t:package /p:packagelocation=\\ourserver\drops\.\Publish-WebApplicationWebSite.ps1 ` -Configuration.\Configurations\WebApplication1-WAWS-dev.json

Demo

Getting Started

Page 12: Msbuild /t:package /p:packagelocation=\\ourserver\drops\.\Publish-WebApplicationWebSite.ps1 ` -Configuration.\Configurations\WebApplication1-WAWS-dev.json

Scripting Web Package and Deploy

Msbuild /t:package /p:packagelocation=\\ourserver\drops\

.\Publish-WebApplicationWebSite.ps1 ` -Configuration .\Configurations\WebApplication1-WAWS-dev.json ` -WebDeployPackage \\ourserver\drops\webapplication1.zip ` -Verbose

Notes:• MSBuild must be in the path• Publish-Web PowerShell script included in default Web

projects• Switch environment configs via multiple JSON files• Before using PowerShell SDK, run ‘Add-AzureAccount’

and ‘Select-AzureSubscription’

Page 13: Msbuild /t:package /p:packagelocation=\\ourserver\drops\.\Publish-WebApplicationWebSite.ps1 ` -Configuration.\Configurations\WebApplication1-WAWS-dev.json

Demo

Connecting to services

Page 14: Msbuild /t:package /p:packagelocation=\\ourserver\drops\.\Publish-WebApplicationWebSite.ps1 ` -Configuration.\Configurations\WebApplication1-WAWS-dev.json

Quickly add Azure and other services to your cloud applications

RC adds a new App Insights provider SDK available for anyone to build a

provider

Connected Services

Page 15: Msbuild /t:package /p:packagelocation=\\ourserver\drops\.\Publish-WebApplicationWebSite.ps1 ` -Configuration.\Configurations\WebApplication1-WAWS-dev.json

Integrated offering for building intelligent web and mobile appso Web Apps – build web appso Mobile Apps – build mobile apps for any deviceo Logic Apps – automate processes with durable cloud-based

workflowso API Apps – build cloud APIs for Web/Mobile/Logic Apps to

consume

Scale as your business grows Connectors to common SaaS systems

Azure App Service

Page 16: Msbuild /t:package /p:packagelocation=\\ourserver\drops\.\Publish-WebApplicationWebSite.ps1 ` -Configuration.\Configurations\WebApplication1-WAWS-dev.json

Demo

App Services – Consuming API Apps

Page 17: Msbuild /t:package /p:packagelocation=\\ourserver\drops\.\Publish-WebApplicationWebSite.ps1 ` -Configuration.\Configurations\WebApplication1-WAWS-dev.json

DevOps

Page 18: Msbuild /t:package /p:packagelocation=\\ourserver\drops\.\Publish-WebApplicationWebSite.ps1 ` -Configuration.\Configurations\WebApplication1-WAWS-dev.json

Demo

DevOps tools: Azure Resource Manager, PowerShell, and Docker

Page 19: Msbuild /t:package /p:packagelocation=\\ourserver\drops\.\Publish-WebApplicationWebSite.ps1 ` -Configuration.\Configurations\WebApplication1-WAWS-dev.json

Many additional templates availableo New Virtual Machine, Networking and Storage resourceso App Service resources (Web Apps, Mobile Apps, Logic Apps,

API Apps)o Scenario based: SharePoint, DataStax, marketplace..o Online Gallery – Open in Github, Launch, Discover VS

View ARM resources & parameters in JSON Outline

Simplified Add Resource experience Lifecycle scripts

Azure Resource Manager Tools

Page 20: Msbuild /t:package /p:packagelocation=\\ourserver\drops\.\Publish-WebApplicationWebSite.ps1 ` -Configuration.\Configurations\WebApplication1-WAWS-dev.json

Extension on the VS Gallery created by Adam Driscoll (PowerShell MVP)

MS Azure Tools team contributed to improve editing & debugging for Web & Cloudo Better colorization & IntelliSenseo REPLo Remote execution & debuggingo 64-bit/DSC

Linked via Visual Studio 2015 RC

PowerShell editing

Page 21: Msbuild /t:package /p:packagelocation=\\ourserver\drops\.\Publish-WebApplicationWebSite.ps1 ` -Configuration.\Configurations\WebApplication1-WAWS-dev.json

Extension on the VS Gallery to create, package and deploy Docker containers for Web & Console apps

Eliminates “drift” of application environments

Fast load times and high density It’s really using Docker: Docker client &

Docker daemon on VM Currently support Linux containers, Windows

support coming soono Developers will use the same Docker client and commands to run on

Linux or Windows

Docker tooling

Page 22: Msbuild /t:package /p:packagelocation=\\ourserver\drops\.\Publish-WebApplicationWebSite.ps1 ` -Configuration.\Configurations\WebApplication1-WAWS-dev.json

Diagnostics & Prevention

Page 23: Msbuild /t:package /p:packagelocation=\\ourserver\drops\.\Publish-WebApplicationWebSite.ps1 ` -Configuration.\Configurations\WebApplication1-WAWS-dev.json

Demo

Diagnostics & ELK

Page 24: Msbuild /t:package /p:packagelocation=\\ourserver\drops\.\Publish-WebApplicationWebSite.ps1 ` -Configuration.\Configurations\WebApplication1-WAWS-dev.json

App Insights for health and monitoring in portal

Logs Streaming Logs Remote Debugging in

Visual Studio Diagnostic actions

available from within VS Server Explorer Configure Web Site to enable logs and traces in VS

or Portal Use System.Diagnostics.TraceInformation(“info”)

and TraceError(“error info”) in your ASP.NET app

WebApp (WebSite) Diagnostics

Page 25: Msbuild /t:package /p:packagelocation=\\ourserver\drops\.\Publish-WebApplicationWebSite.ps1 ` -Configuration.\Configurations\WebApplication1-WAWS-dev.json

Diagnose issues in the cloud using events/logs/infrastructure/ETW

Diagnostics supported in the emulator Export Azure storage tables to CSV Improved diagnostics summary viewer

o Auto refresh capabilityo Improved readability of events

Azure Diagnostics

Page 26: Msbuild /t:package /p:packagelocation=\\ourserver\drops\.\Publish-WebApplicationWebSite.ps1 ` -Configuration.\Configurations\WebApplication1-WAWS-dev.json

View and search diagnostics logs at scale (VMs, Cloud Services)

Builds on best OSS solution: ElasticSearch, LogStash, Kibana

Customize and extend High-throughput agent option Self-host the cluster in your own

VM/subscription

ELK GitHub Project

Page 27: Msbuild /t:package /p:packagelocation=\\ourserver\drops\.\Publish-WebApplicationWebSite.ps1 ` -Configuration.\Configurations\WebApplication1-WAWS-dev.json

Identify and prevent top challenges or “anti-patterns” preventing ideal cloud availability/scale

View guidance or “fix it” from VS lightbulb

Add “Analyzer” NuGet per application/project:

Microsoft Code Analysis for Azure Pre-release 0.4.0-beta

PM> Install-Package Microsoft.VisualStudio.Azure.CodeAnalysis -Pre

Azure Code Analysis (VS 2015)

Page 28: Msbuild /t:package /p:packagelocation=\\ourserver\drops\.\Publish-WebApplicationWebSite.ps1 ` -Configuration.\Configurations\WebApplication1-WAWS-dev.json

Summary

Page 29: Msbuild /t:package /p:packagelocation=\\ourserver\drops\.\Publish-WebApplicationWebSite.ps1 ` -Configuration.\Configurations\WebApplication1-WAWS-dev.json

ResourcesGet the Azure SDK - http://azure.microsoft.com/en-us/downloads/ Give us feedback - http://aka.ms/sdkfeedback App Service video - http://azure.microsoft.com/en-us/campaigns/azure-march-announcement/Scripts to create ELK cluster - http://aka.ms/azurediagnosticselkJSON resource templates - http://azure.microsoft.com/en-us/documentation/templates/PowerShell tools - http://aka.ms/Get-POSHToolsDocker tools - http://aka.ms/vslovesdockerAzure Service Fabric tools – http://aka.ms/servicefabric

Page 30: Msbuild /t:package /p:packagelocation=\\ourserver\drops\.\Publish-WebApplicationWebSite.ps1 ` -Configuration.\Configurations\WebApplication1-WAWS-dev.json

FREE UPGRADE to Visual Studio Enterprise with MSDNLearn more about this offer: http://aka.ms/nbtbvs

Learn more about Visual Studio 2015 at our in-person or online events: http://aka.ms/nbtbevents

There’s no better time than now to get ready for the release of Visual Studio 2015!

For a limited time, get a free upgrade to Visual Studio Enterprise with MSDN

Page 31: Msbuild /t:package /p:packagelocation=\\ourserver\drops\.\Publish-WebApplicationWebSite.ps1 ` -Configuration.\Configurations\WebApplication1-WAWS-dev.json

Visit Myignite at http://myignite.microsoft.com or download and use the Ignite Mobile App with the QR code above.

Please evaluate this sessionYour feedback is important to us!

Page 32: Msbuild /t:package /p:packagelocation=\\ourserver\drops\.\Publish-WebApplicationWebSite.ps1 ` -Configuration.\Configurations\WebApplication1-WAWS-dev.json

© 2015 Microsoft Corporation. All rights reserved.