Azure Static Web Apps with Full Stack .NET

A presentation at NDC London in January 2023 in London, UK by Melissa Houghton

Slide 1

Slide 1

Azure Static Web Apps with Full Stack .NET Melissa Houghton | Azenix melissahoughton.dev melissahoughton meliss_houghton melissahoughton melissahoughton@aus.social

Slide 2

Slide 2

What we will cover Azure Static Web Apps Full Stack Apps with Blazor and .NET Debugging and Deployment Advanced Scenarios @melissahoughton@aus.social | @meliss_houghton

Slide 3

Slide 3

About Me Lead Software Engineer & Developer Relations Microsoft MVP Developer Technologies melissahoughton.dev melissahoughton@aus.social melissahoughton melissahoughton meliss_houghton

Slide 4

Slide 4

Azure Static Web Apps @melissahoughton@aus.social | @meliss_houghton

Slide 5

Slide 5

@melissahoughton@aus.social | @meliss_houghton Source https://learn.microsoft.com/en-us/azure/static-web-apps/overview

Slide 6

Slide 6

Azure Static Web Apps Globallydistributed hosting Streamlined build and deployment Custom domains and free SSL certificates Built-in authentication and routing rules Generated Staging Environments CLI Support @melissahoughton@aus.social | @meliss_houghton

Slide 7

Slide 7

Supported Frameworks @melissahoughton@aus.social | @meliss_houghton Source: https://learn.microsoft.com/azure/static-web-apps/front-end-frameworks

Slide 8

Slide 8

Azure Static Web Apps and .NET 7 @melissahoughton@aus.social | @meliss_houghton

Slide 9

Slide 9

Why Full Stack .NET? Free and open source Fast and cross-platform Modern and productive Trusted and secure Data sourced from official tests available at TechEmpower Round 21 Supportive community @melissahoughton@aus.social | @meliss_houghton

Slide 10

Slide 10

Blazor WebAssembly Full-featured frontend framework Runs .NET client-side on WebAssembly Shared component model across the server and client browser Full stack .NET Web Applications @melissahoughton@aus.social | @meliss_houghton

Slide 11

Slide 11

Part of ASP.NET Core Web UI Services MVC Razor Pages HTTP APIs SignalR SPA Blazor Worker gRPC @melissahoughton@aus.social | @meliss_houghton

Slide 12

Slide 12

Hosting Blazor WebAssembly Blazor WASM APIs ASP.NET Hosted @melissahoughton@aus.social | Blazor WASM APIs Globally distributed hosting Microservices Standalone @meliss_houghton Source: https://github.com/dotnet-presentations/dotNETConf/blob/master/2021/MainEvent/Technical/Chu-Cotin_Full-stack_.NET​with_Blazor_WebAssembly​and_Azure_Static_Web_Apps.pptx

Slide 13

Slide 13

Hosting Blazor WebAssembly Blazor WASM APIs ASP.NET Hosted @melissahoughton@aus.social | Blazor WASM APIs Globally distributed hosting Serverless Microservices Azure Static Web Apps @meliss_houghton Source: https://github.com/dotnet-presentations/dotNETConf/blob/master/2021/MainEvent/Technical/Chu-Cotin_Full-stack_.NET​with_Blazor_WebAssembly​and_Azure_Static_Web_Apps.pptx

Slide 14

Slide 14

Azure Functions and .NET Serverless solution with .NET option Run code blocks based on triggers Event-driven automated scaling No infrastructure management Flexible pricing options Isolated Worker Model @melissahoughton@aus.social | @meliss_houghton

Slide 15

Slide 15

Isolated Worker Model Isolated process from the functions runtime More natural dependency injection Full control of the process Middleware support @melissahoughton@aus.social | @meliss_houghton

Slide 16

Slide 16

Demo @melissahoughton@aus.social | @meliss_houghton

Slide 17

Slide 17

Deployment First class GitHub and Azure DevOps integration Automatically build and deploy on code change Staging versions based on Pull Requests Globally Distributed Static Hosting Now GA: GitLab and BitBucket Support @melissahoughton@aus.social | @meliss_houghton

Slide 18

Slide 18

@melissahoughton@aus.social | @meliss_houghton Source: https://azure.github.io/static-web-apps-cli/

Slide 19

Slide 19

@melissahoughton@aus.social | @meliss_houghton Source: https://azure.github.io/static-web-apps-cli/docs/intro

Slide 20

Slide 20

New Backend API Options Azure Functions Azure App Service * @melissahoughton@aus.social | Azure API Management * Azure Container Apps * @meliss_houghton Source: https://techcommunity.microsoft.com/t5/apps-on-azure-blog/new-api-backend-options-in-azure-static-web-apps/ba-p/3516882

Slide 21

Slide 21

Azure Container Apps Serverless containers for microservices ASP.NET Web APIs and Minimal APIs Worker Service for background services Focus on apps, not infrastructure @melissahoughton@aus.social | @meliss_houghton

Slide 22

Slide 22

Demo @melissahoughton@aus.social | @meliss_houghton

Slide 23

Slide 23

EnterpriseGrade Edge Combines capabilities of Azure SWA, Azure Front Door, and Azure CDN Caching assets at the edge Global presence Faster Page Loads Enhanced Security @melissahoughton@aus.social | @meliss_houghton

Slide 24

Slide 24

Authentication Azure Active Directory GitHub Twitter Custom Providers @melissahoughton@aus.social | @meliss_houghton

Slide 25

Slide 25

Demo @melissahoughton@aus.social | @meliss_houghton

Slide 26

Slide 26

Summary

Slide 27

Slide 27

Get started today Full-stack .NET Serverless Web Apps Streamlined CI/CD to Azure Free plan option Free learning resources aka.ms/SWA-Blazor @melissahoughton@aus.social | @meliss_houghton

Slide 28

Slide 28

Thank you! https://bit.ly/ndclondon23-swa melissahoughton.dev melissahoughton meliss_houghton melissahoughton melissahoughton@aus.social