Sviluppare Azure Web Apps

  • View
    364

  • Download
    1

Embed Size (px)

Transcript

PowerPoint Presentation

Andrea Dottor Microsoft MVP ASP.NET @dottorSviluppare Azure Web Apps

www.xedotnet.org

Chi sonoAndrea DottorMicrosoft MVP ASP.NET

www.dottor.netandrea@dottor.net@dottor

Cosa vedremo oggiApplicazione ASP.NET Core pubblicata su AzureUso dello Storage per il salvataggio di fileUso di Azure WebJobs per le attivit in background

ASP.NET CoreASP.NET Core 1 rc1

ASP.NET Core 1One of the key benefits of .NET Core is its portability. You can package and deploy the CoreCLR with your application, eliminating your applications dependency on an installed version of .NET (e.g. .NET Framework on Windows). You can host multiple applications side-by-side using different versions of the CoreCLR, and upgrade them individually, rather than being forced to upgrade all of them simultaneously.

https://docs.asp.net/en/latest/conceptual-overview/dotnetcore.html http://weblogs.asp.net/scottgu/introducing-asp-net-5

ASP.NET Core 1New light-weight and modular HTTP request pipelineAbility to host on IIS or self-host in your own processBuilt on .NET Core, which supports true side-by-side app versioningShips entirely as NuGet packagesIntegrated support for creating and using NuGet packagesSingle aligned web stack for Web UI and Web APIsCloud-ready environment-based configurationBuilt-in support for dependency injectionBuild and run cross-platform ASP.NET apps on Windows, Mac and Linux

ASP.NET CoreWork with your favorite development toolsVisual Studio CodeVisual Studio Code is a cross-platform code editor refined and optimized for building modern web and cloud applications.

generator-aspnetYeoman is a scaffolding platform built on top of Node.js that allows you to build template-based generators for projects or code files.generator-aspnetis a yeoman generator that allows you to scaffold ASP.NET 5 applications.

OmniSharpOmniSharp is a set of tooling, editor integrations and libraries for developing in .NET. OmniSharp works with a number of editors including Atom, Brackets, Emacs, Sublime Text and Vim.

ASP.NET CoreBenchmark2300% request/s (servite) rispetto ad ASP.NET 4.6!Superati 1.15 Milioni di request/s, 12.6 GbpsIn ASP.NET5 RC rispetto la beta8, il tempo di risposta passato da 20ms a 4ms

DEMO

Azure App Service

Mobile Services

Azure Websites

BizTalk Services

Unique integrated offeringBuild rich, engaging & intelligent appsScale as your business grows

Introducing Azure App Service

11

12

One price

Azure App Service One price

13

Web Apps

Full capability set available including:.NET, Node.js, Java, PHP, and PythonWebJobs for long running tasksIntegrated VS publish, remote debugCI with GitHub, BitBucket, VSO Auto-load balance, Autoscale, Geo DRVirtual networking and hybrid connectionsSite slots for staged deploymentsWeb apps run as-isno changes required

New capabilities for Mobile apps:Webjobs for long running tasksCI with GitHub, BitBucket, VSO Auto-load balance, Autoscale, Geo DRVirtual networking and hybrid connectionsSite slots for staged deploymentsMobile services plusa whole lot moreMobile Apps

New Logic Apps for easy automationNo code designer for rapid creationDozens of pre-built templates to get startedOut of box support for popular SaaS and on-premises appsUse with custom API apps of your ownBiztalk APIs for expert integration scenariosAutomate SaaS andon-premises systemsLOGIC Apps

Easily use cloud or custom APIs:Dozens of built-in APIs for popular SaaSAn ecosystem of APIs for any needCreate and publish custom, reusable APIsVisual Studio tooling with one click publish and remote debuggingAutomatic client SDK generation for many languages

Create, consume andhost APIs more easilyApi Apps

App Service - one integrated offering

API AppsEasily build and consume APIs in the cloudWeb AppsWeb apps that scale with your business

Mobile AppsBuild Mobile apps for any device

LOGIC AppsAutomate business process across SaaS and on-premises

App Service - one integrated offering

Web Apps

Logic Apps

Mobile Apps

API Apps

httpSQL

Customer siteAdministration App

Customer Appointment

Customer App

Azure App ServiceCreare un'applicazione agganciata ad Azure App Service

Direttamente dalla creazione del progetto

Configurazione di Azure App Service

Pubblicazione da Visual Studio

Download profilo di pubblicazioneDal portale di Azure possibile scaricare il Profilo di configurazione da importare in Visual StudioContiene tutte le informazioni per eseguire la pubblicazione, compresa la password

Continous Delivery with App Service

Continuous integration

Continuous Deployment for Web Apps

Web App Production SlotSource Control / Code Repo Web App Staging Slot

Commits

Auto-Swap Changes Hooks

Git pullDeveloper

Continuous DeploymentNon si vincolati a pubblicare utilizzando (solo) tool di MicrosoftContinua ad utilizzare strumenti che gi utilizzi:

GitHub

Visual StudioOnline

Git

BitBucket

CodePlex

DropBox

FTP

DEMO

Scalabilit

Web App

Scalabilit automatica

Scalabilit automatica

Web App

Scalabilit automatica

Web App

ScalabilitScalabilit schedulataWeekdaysWeekendsWeek nightsWeek morningsSpecific datesSpecific date rangesScalabilit manualeTramite il portale di AzureUtilizzando gli Azure webhookshttps://azure.microsoft.com/en-us/documentation/articles/automation-webhooks/Utilizzando PowerShellhttps://blogs.technet.microsoft.com/heyscriptingguy/2015/10/28/use-powershell-to-scale-azure-websites/ Scalabilit automaticaScale by metric (CPU o per numero di messaggi in una coda)

DEMO

Azure Web Jobs

Azure Web JobsPensati per eseguire operazioni lunghe o operazioni pianificateTipi di job: On-Demand, Scheduled, ContinuousScalabilit: Singleton, Multi-instanceWebJobs SDK Feature: BlobTrigger, TableTrigger, QueueTrigger, ServicebusTriggerPubblicazione: Portal, Visual Studio, CLI, Git

run.cmd, run.bat

run.exe

run.ps1

run.sh

run.php

run.py

run.js

CreazioneSi possono creare direttamente da Visual StudioTemplate di progetto Azure WebJobBasati su una console application

SchedulazioneContinuativaSchedulata

DEMO

Remote debuggingE' possibile eseguire il debug di applicazioni pubblicate su AzureSe dovete fare debug di ASP.NET Core:Remote Debug ASP.NET Core RC1 on Azure App Servicehttps://blogs.msdn.microsoft.com/webdev/2016/03/21/remote-debug-aspnet-core-on-azure/ Di default il debugger non si aggancia al processo del runtime di CoreCLREseguire l'attach manuale al processo dnx.exe

Domande?

Chi sonoAndrea DottorMicrosoft MVP ASP.NET

www.dottor.netandrea@dottor.net@dottor