I deploy my application using azure pipeline.
First build using dotnet build, then publish, then Deploy
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)\DQMIntegration\'
ArtifactName: 'DQMIntegration'
publishLocation: 'Container'
- task: AzureRmWebAppDeployment@4
inputs:
ConnectionType: 'AzureRM'
azureSubscription: 'DQM-NonProd'
appType: 'webApp'
WebAppName: 'stg-DQMIntegration'
deployToSlotOrASE: true
ResourceGroupName: 'ESSP-N-1-QTYF-RG-2'
SlotName: 'production'
packageForLinux: '$(Build.ArtifactStagingDirectory)/DQMIntegration/'
The deployment sets WEBSITE_RUN_FROM_PACKAGE=1 in the Azure app service. However, the application does not run.
Application shows Running in Azure console in both cases.
I have no specific requirement to run from package or otherwise, but I can't understand why the application does not run form package or why the pipeline sets it so. In the kudu console I see that the zip file has been uploaded in data/SitePackages and there is a packagename.txt file with the name of the latest uploaded zip. My app service is in an ASE. it is a c sharp API.
Any ideas?