Azure Linux 上的 Blazor 应用服务失败

Blazor on Azure Linux App Services failing

我正在使用 Azure DevOps 将我的 Blazor WASM 部署到 Azure AppService 中的 Linux Web 应用程序。 部署成功,但网站没有显示部署的内容。我使用相同的管道部署到应用程序服务中的 Windows Web 应用程序并且它有效。 Blazor WASM 和 Azure 应用服务 (Linux) 是否存在任何问题。我确保我在两个 Web 应用程序中选择了正确的 .NET 堆栈。

azor
dependsOn: Build_Blazor_App
condition: and(eq(variables['Build.Reason'], 'Manual'), eq('${{parameters.DeployBlazor}}', true) ) # We need deployment to happen only for manual one.
jobs:
  - job: Deploy
    displayName: Deploy To Azure
    steps:
      - task: DownloadPipelineArtifact@2
        displayName: Downloading Artifacts
        inputs:
          buildType: 'current'
          artifactName: 'blaze'
          targetPath: '$(Pipeline.Workspace)'
      
      - task: AzureRmWebAppDeployment@4
        displayName: Deploying to Dev
        inputs:
          ConnectionType: 'AzureRM'
          azureSubscription: 'Az_VS_Enterprise'
          appType: 'webAppLinux'
          WebAppName: 'smartlytics'
          packageForLinux: '$(Pipeline.Workspace)/Smarter.Blazor.zip'

Is there any issues with Blazor WASM and Azure App Service (Linux).

其次是Microsoft Documentation

Currently ,To deploy a Standalone Blazor WebAssembly app to Azure app service on Linux is not supported. A Linux server image to host the app isn't available at this moment.

We can deploy Blazor WebAssembly apps to Azure App Services on Windows, which host the apps on IIS .