Getting the best out of ASP.NET Core on Azure

  • View
    1.084

  • Download
    1

  • Category

    Software

Preview:

Citation preview

Getting the best out of ASP.NET Core in AzureJon GallowayTechnical Evangelist @jongallowayjon.galloway@microsoft.com

What I thought

ASP.NET Core Azure

Upon further reflection

Azure

ASP.NET Core

Kudu

Docker

App Service

for Linux

Analytics

Reality

Deployment Options

Deployment Troubleshooti

ngPerformance

SecurityMonitoring

and Diagnostics

Deployment Options

Visual Studio Web Deploy

Self Contained Deployment

For bring-your-own-framework deployment

Kudu Deployment Scripts

DEMO

Continuous Deployment

DEMO - GitHub

Continuous Delivery

App Service for Linux

DEMO

Azure Container Service

Deployment Troubleshooting

Understanding ANCM

Logs (stdout)

Kudu Console

Security

Environment Variables

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

Azure Key Vault

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

Performance

Cached Webroot File Provider

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

Monitoring and Diagnostics

App Service Logging Provider

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

Azure App Insights

DEMO

Deployment Options

Deployment Troubleshooti

ngPerformance

SecurityMonitoring

and Diagnostics

Recommended