32
Getting the best out of ASP.NET Core in Azure Jon Galloway Technical Evangelist @jongalloway [email protected] om

Getting the best out of ASP.NET Core on Azure

Embed Size (px)

Citation preview

Page 1: Getting the best out of ASP.NET Core on Azure

Getting the best out of ASP.NET Core in AzureJon GallowayTechnical Evangelist @[email protected]

Page 2: Getting the best out of ASP.NET Core on Azure

What I thought

ASP.NET Core Azure

Page 3: Getting the best out of ASP.NET Core on Azure

Upon further reflection

Azure

ASP.NET Core

Kudu

Docker

App Service

for Linux

Analytics

Page 4: Getting the best out of ASP.NET Core on Azure

Reality

Page 5: Getting the best out of ASP.NET Core on Azure

Deployment Options

Deployment Troubleshooti

ngPerformance

SecurityMonitoring

and Diagnostics

Page 6: Getting the best out of ASP.NET Core on Azure

Deployment Options

Page 7: Getting the best out of ASP.NET Core on Azure

Visual Studio Web Deploy

Page 8: Getting the best out of ASP.NET Core on Azure

Self Contained Deployment

For bring-your-own-framework deployment

Page 9: Getting the best out of ASP.NET Core on Azure

Kudu Deployment Scripts

Page 10: Getting the best out of ASP.NET Core on Azure

DEMO

Page 11: Getting the best out of ASP.NET Core on Azure

Continuous Deployment

Page 12: Getting the best out of ASP.NET Core on Azure

DEMO - GitHub

Page 13: Getting the best out of ASP.NET Core on Azure

Continuous Delivery

Page 14: Getting the best out of ASP.NET Core on Azure

App Service for Linux

Page 15: Getting the best out of ASP.NET Core on Azure

DEMO

Page 16: Getting the best out of ASP.NET Core on Azure

Azure Container Service

Page 17: Getting the best out of ASP.NET Core on Azure

Deployment Troubleshooting

Page 18: Getting the best out of ASP.NET Core on Azure

Understanding ANCM

Page 19: Getting the best out of ASP.NET Core on Azure

Logs (stdout)

Page 20: Getting the best out of ASP.NET Core on Azure

Kudu Console

Page 22: Getting the best out of ASP.NET Core on Azure

Security

Page 23: Getting the best out of ASP.NET Core on Azure

Environment Variables

http://aka.ms/aspnet-env-vars

Page 24: Getting the best out of ASP.NET Core on Azure

Azure Key Vault

Page 25: Getting the best out of ASP.NET Core on Azure

Azure Key Vault (For Overachievers)

makecert -sv mykey.pvk -n "cn=KVWebApp" KVWebApp.cer -b 07/31/2015 -e 07/31/2016 -r

pvk2pfx -pvk mykey.pvk -spc KVWebApp.cer -pfx KVWebApp.pfx -po test123

Page 26: Getting the best out of ASP.NET Core on Azure

Performance

Page 27: Getting the best out of ASP.NET Core on Azure

Cached Webroot File Provider

https://github.com/aspnet/live.asp.net/blob/dev/src/live.asp.net/Services/CachedWebRootFileProvider.cs

Page 28: Getting the best out of ASP.NET Core on Azure

Monitoring and Diagnostics

Page 29: Getting the best out of ASP.NET Core on Azure

App Service Logging Provider

var host = new WebHostBuilder()     .UseKestrel()    .UseAzureAppServices()    .UseStartup<Startup>()    .Build();

Page 30: Getting the best out of ASP.NET Core on Azure

Azure App Insights

Page 31: Getting the best out of ASP.NET Core on Azure

DEMO

Page 32: Getting the best out of ASP.NET Core on Azure

Deployment Options

Deployment Troubleshooti

ngPerformance

SecurityMonitoring

and Diagnostics