Deploy an Asp.Net Core App on Azure

Preview:

Citation preview

Cloud Development with Microsoft Azure

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

@apomic80 – http://www.tolist.net - michele.aponte@dotnetcampania.org

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

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

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

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

Asp.Net FrameworksMVC Web APIWeb Pages

Razor

HTML Helpers HTML Helpers

Controllers Controllers

Actions Actions

Filters Filters

Model binding Model binding

DI DI

Asp.Net MVC CoreAsp.Net MVC Core 1.0

Razor

HTML Helpers

Controllers

Actions

Filters

Model binding

DI

Cloud Development with Microsoft Azure

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

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

Cloud Development with Microsoft Azure

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

Deploy su Azure con Docker

Deploy su Azure con Docker

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

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

Recommended