Azure CI pipeline for Blazor .NET 5 doesn't work

后端 未结 2 974
难免孤独
难免孤独 2020-12-20 20:46

I have an existing Azure CI pipeline for a WebAssembly Blazor application, that works with .NET Core 3.1.

I upgraded the application to use .NET 5 RC, and the pipelin

2条回答
  •  遥遥无期
    2020-12-20 21:04

    I set up a simple app service on my azure account, and trying to deploy to it. I can do it with the 'Publish' functionality from inside Visual Studio, but I cannot do the same inside the pipeline. The Publish does everything, starting from building the solution. I know I have the zip files on the pipeline, but when I try for example

    - task: AzureWebApp@1
      inputs:
        azureSubscription: '
    ' appType: 'webApp' appName: '' package: '$(System.DefaultWorkingDirectory)/**/*.zip' deploymentMethod: 'auto'

    I get this error:

    Got service connection details for Azure App Service:'DevOpsBlazorticketsWebApp'
    Trying to update App Service Application settings. Data: {"WEBSITE_RUN_FROM_PACKAGE":"1"}
    Deleting App Service Application settings. Data: ["WEBSITE_RUN_FROM_ZIP"]
    App Service Application settings are already present.
    Package deployment using ZIP Deploy initiated.
    ##[error]Failed to deploy web package to App Service.
    ##[error]To debug further please check Kudu stack trace URL : https://
    ##[error]Error: Error: Failed to deploy web package to App Service. Internal Server Error (CODE: 500) App Service Application URL: http://
    Finishing: AzureWebApp

    I tried every other possibility, but I couldn't find a way...

提交回复
热议问题