Search code examples
azureazure-devopsazure-web-app-service

Error: App Service is configured to not use basic authentication. This requires Web Deploy msdeploy.exe version 7.1.7225 or higher


I have created the .NET 8 Web App in the Azure Portal and deploying the code from the VS 2022 Community version through Azure DevOps Pipelines.

Note:

  1. .NET 8 App Service is created on Free Tier Pricing plan
  2. Turned the Option Basic Web App Authentication to Off in Azure App Service > Configuration > General settings

Build is successful. But during release pipeline, I'm getting below error:

##[error]Error: App Service is configured to not use basic authentication.
This requires Web Deploy msdeploy.exe version 7.1.7225 or higher.
You need a version of Visual Studio that includes an updated version of msdeploy.exe.
For more information, visit https://aka.ms/azdo-webapp-msdeploy

enter image description here


Solution

  • I can reproduce the same issue when disabling Basic Web App Authentication in Azure Web App.

    enter image description here

    To solve this issue, we need to use higher version of the msdeploy.exe to deploy the package to Azure Web App.

    If you are using Microsoft hosted agents, we can change to use windows-2019 to windows-2022 (or windows-latest).

    When I changed to use windows-2022 Microsoft-Hosted agent, it will work as expected.

    enter image description here

    If you are using self-hosted agents, we can install/upgrade higher version of Visual Studio 2022 on the agent to get a newer version of msdeploy.exe. For example: VS2022 version: 17.8.34330.188

    For more detailed info, you can refer to this doc: I can't Web Deploy to my Azure App Service using Microsoft Entra ID authentication from my Windows agent