New Visual Studio project and Azure App Service authentication

Gregg 1 Reputation point

I am developing an internal line-of-business app for the company I work for. It will be a Blazor Server app hosted as an Azure App Service (.NET 5, Windows), and will be secured using our company's existing Azure AD tenant, so that only employees will be able to access the app, and the app will be able to determine the username of the logged in user.

The question I have is... When creating the project in Visual Studio, should I select Authentication Type: "Microsoft identity platform", and then when creating the Azure App Service, configure the app service with App Service Authentication set to Off (since the application will be handling the authentication itself)? Or, when creating the project in Visual Studio, should I select Authentication Type: "None", and on the app service side set App Service Authentication to On and configure the app service it to use Azure Active Directory?

A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,460 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,212 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. ajkuma 23,906 Reputation points Microsoft Employee

    Gregg-9111, Firstly, please accept my apologies for the late response on this.

    The App Service authentication/authorization module is enabled and configured through the Azure portal and app settings. So, you have to deploy the WebApp and then enable authentication, this will create an app registration for App Service Authentication.

    Kindly refer these docs for more info:
    Add authentication to your web app running on Azure App Service

    Authentication and authorization in Azure App Service and Azure Functions

    If you have any further questions, please let us know we will be more than happy to assist you further.

    0 comments No comments