Deploy to Azure

This article shows how to quickly deploy your Blazor application to Azure with Radzen Blazor Studio.

Note: Deployment is a premium feature.

Prerequisites

Before publishing make sure that you have created an Azure Web Application resource with the same .NET version as your Radzen Blazor Application.

Deploy

To deploy your Blazor application to Azure:

  1. Click Publish button to open the Publish wizard.
  2. Select Azure from the available options. This will create a new Radzen Blazor Studio publish profile that can later be used to deploy the application with the same settings.
  3. Enter the name of your Azure application. If the URL of the application is https://my-blazor-app.azurewebsites.net enter my-blazor-app. If the URL of the application looks like this: https://my-blazor-app-e6cnhsdbetavazbx.westeurope-01.azurewebsites.net enter my-blazor-app-e6cnhsdbetavazbx.westeurope-01 (include the hash and region as well).
  4. Downloaded the publish profile from the Azure portal. If you can’t download the publish profile go to the Azure application configuration and enable SCM Basic Auth Publishing Credentials.
  5. Open the publish profile with a text editor and copy the user name and password and paste them in the Publish wizard.
  6. Optionally change the connection string of the database(s) that your application is using. Often applications use a different database in production or a different login credentials.
  7. Click Publish.

Radzen Blazor Studio will publish the application in production mode and deploy it to Azure. WebAssembly applications will be optimized for size which may take some time. Check the Output for a detailed log of the publish and deploy operations.