blazor-deploy-sample icon indicating copy to clipboard operation
blazor-deploy-sample copied to clipboard

Sample repo for showing Actions to deploy a Blazor app to Azure services

trafficstars

.NET Core Build and Deploy (AppSvc Win) .NET Core Build and Deploy (Container) .NET Core Build and Deploy (AppSvc Linux) .NET Core Build and Deploy (Storage) Azure Static Web Apps

Blazor Wasm Deployment

This is a sample application that uses Blazor WebAssembly (Wasm) app with no host to publish as a static site to Azure Storage. A complimentary blog post explaining this can be found here Deploy a Blazor Wasm app various ways to Azure using GitHub Actions and Hosting Blazor WebAssembly in Azure Static Web Apps

How this works

This sample takes a Blazor Web Assembly (Wasm) project and uses GitHub Actions to deploy it in a few ways:

  • Azure Storage
  • Azure App Service (Linux)
  • Azure App Service (Linux) using Containers
  • Azure App Service (Windows)
  • Azure Static Web Apps

You can see each of the steps in the .github/workflows files linked above.

Requirements

The following is required (and/or pre-requisite) to get this working similarly:

Contact

This was done by Tim Heuer as a sample and to play around with different deployment options. If you have ideas, reach out!