I have an Angular 8
+ asp.net core 3.1
application generated by Visual Studio 2019.
I tried to deploy the application as is without modification on the Azure Linux App Service
by using a VS 2019 Publish
and the application gets deployed with no issue and I can access the application from web browsers on the <app-name>.azurewebsites.net
url
When deploying the application from an Azure release pipeline with the Azure App Service deploy
Task, the deployment occurs with no errors but when requesting <app-name>.azurewebsites.net
I get the default site as in the following screenshot
It seems that the deployment has no effect from Azure DevOps. What am I doing wrong?
Details
Build pipeline
trigger:
- master
pool:
vmImage: 'windows-2019'
variables:
solution: '**/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
steps:
- task: Npm@1
displayName: 'npm install'
inputs:
command: 'install'
workingDir: 'MyApp/ClientApp'
- task: NuGetToolInstaller@1
- task: NuGetCommand@2
displayName: 'nuget restore'
inputs:
restoreSolution: '$(solution)'
- task: Npm@1
displayName: 'ng build'
inputs:
command: 'custom'
workingDir: 'MyApp/ClientApp'
customCommand: 'run build'
- task: DotNetCoreCLI@2
displayName: 'dotnet build release'
inputs:
command: 'build'
arguments: '-c $(buildConfiguration)'
- task: DotNetCoreCLI@2
displayName: 'dotnet publish'
inputs:
command: 'publish'
publishWebProjects: true
arguments: '-r linux-x64 -c release --output $(build.ArtifactStagingDirectory)'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact Website'
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'MyAppDropDir'
publishLocation: 'Container'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact ARM Template'
inputs:
PathtoPublish: '$(Build.SourcesDirectory)/MyApp.AppService'
ArtifactName: 'ARMTemplate'
publishLocation: 'Container'