Deploy an Asp.Net Core App on Azure

14
Cloud Development with Microsoft Azure Deploy an ASP.NET Core app on Azure Michele Aponte CEO/CTO Blexin Srl - MVP Presidente DotNetCampania @apomic80 – http://www.tolist.net - [email protected]

Transcript of Deploy an Asp.Net Core App on Azure

Page 1: Deploy an Asp.Net Core App on Azure

Cloud Development with Microsoft Azure

Deploy an ASP.NET Core app on AzureMichele AponteCEO/CTO Blexin Srl - MVPPresidente DotNetCampania

@apomic80 – http://www.tolist.net - [email protected]

Page 2: Deploy an Asp.Net Core App on Azure

ASP.NET Core (il “vecchio” ASP.NET 5)

Un nuovo framework open-source e cross-platform per lo sviluppo di moderne cloud-

based Web applications usando .NET

Page 3: Deploy an Asp.Net Core App on Azure

ASP.NET Core e il Web Moderno

Cross-Platform

Scegli il tuo editor e i tool

Open Source con contributiOSS

Transizioni senza interruzionida on-premises al cloud

Ciclo di sviluppo rapido

Totalmente modulare

Veloce

Page 4: Deploy an Asp.Net Core App on Azure

Asp.Net 5MVC 6

ASP.NET 5

.NET Execution Environment (DNX)

ASP.NET 4.6(System.Web)

MVC Web API

WebForms

.NET Framework .NET Core Full .NET Framework for any scenario and

library support on WindowsModular libraries & runtime optimized

for server and cloud workloads

Page 5: Deploy an Asp.Net Core App on Azure

Asp.Net Core

.NET Framework .NET Core Full .NET Framework for any scenario and

library support on WindowsModular libraries & runtime optimized

for server and cloud workloads

ASP.NET 4.6(System.Web)

MVC ASP.NET Core MVC

ASP.NET Core 1.0(Microsoft.AspNetCore)

Web API

WebForms

Page 6: Deploy an Asp.Net Core App on Azure

Asp.Net FrameworksMVC Web APIWeb Pages

Razor

HTML Helpers HTML Helpers

Controllers Controllers

Actions Actions

Filters Filters

Model binding Model binding

DI DI

Page 7: Deploy an Asp.Net Core App on Azure

Asp.Net MVC CoreAsp.Net MVC Core 1.0

Razor

HTML Helpers

Controllers

Actions

Filters

Model binding

DI

Page 8: Deploy an Asp.Net Core App on Azure

Cloud Development with Microsoft Azure

“Parlare è facile. Mostrami il codice!” Linus TorvaldsDEMO

Page 9: Deploy an Asp.Net Core App on Azure

Deploy su Azure• Pubblicare direttamente su Azure da Visual Studio• Usare WebDeploy• Automatizzare i deploy usando lo script generato

•Usare Kudu/VSTS per fare continuous deployment• Kudu deploy script fornito insieme a ASP.NET 5 RC1

•Usare GIT per fare continuous deployment• Molto comodo da Linux o OSX se non si usa VSTS

Page 10: Deploy an Asp.Net Core App on Azure

Cloud Development with Microsoft Azure

E’ più facile a farsi che a dirsi!DEMO

Page 11: Deploy an Asp.Net Core App on Azure

Deploy su Azure con Docker

Page 12: Deploy an Asp.Net Core App on Azure

Deploy su Azure con Docker

Page 13: Deploy an Asp.Net Core App on Azure

Deploy su Azure con Docker•Visual Studio Tools for Docker – Preview

• Creazione facilitata di imaggini e deploy verso un Docker host• https://aka.ms/dockertoollsforvs

•Deploy verso Azure Container Service • Crazione di soluzione di container hosting usando Apache Mesos o Docker

Swarm• https://aka.ms/azurecontainerservice

Page 14: Deploy an Asp.Net Core App on Azure

Domande? Intanto qualche link utile• Getting started: https://dotnet/github.io • Latest dev build: https://github.com/dotnet/cli• Samples: https://github.com/aspnet/cli-samples • Code: https://github.com/aspnet/home• Docs: http://docs.asp.net• Build 2016:

• Introducing Asp.Net Core 1.0: https://channel9.msdn.com/Events/Build/2016/B810• Asp.Net Core Deep Dive into MVC: https://

channel9.msdn.com/Events/Build/2016/B812 • Deploying ASP.NET Core Applications: https://

channel9.msdn.com/Events/Build/2016/B811 • Corsi su pluralsight:

• Asp.Net Vore 1.0 Fundamentals: http://app.pluralsight.com/courses/aspdotnet-core-1-0-fundamentals

• Play by Play: ASP.NET Core 1.0 on any OS with John Papa and Shayne Boyer: https://app.pluralsight.com/library/courses/play-by-play-asp-net-core-1-0-on-any-os-john-papa-shayne-boyer/table-of-contents