Reputation: 337
I have a ASP.NET MVC WebApp deployed on Azure configured with Azure DevOps and .NET Core WebJob also configured for deployment through Azure Pipeline.
Both WebApp and WebJob get successfully deployed through pipeline. I can see EXE and other files of my WebJob in :
"D:\home\site\wwwroot\app_data\Jobs\Continuous\MyWebJob"
through Kudu console.
But, the WebJob doesn't show up in the "WebJob" section of my WebApp on Azure portal.
I can not manually add WebJob through portal, as its source code configured with Azure DevOps. I tried publishing my WebJob through Visual Studio, but that also didn't work.
This is my WebJob YML build section.
- task: VSBuild@1
inputs:
solution: '$(solution)'
msbuildArgs: '/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:DesktopBuildPackageLocation="$(build.artifactStagingDirectory)/WebJob.zip" /p:DeployIisAppPath="Default Web Site"'
platform: '$(buildPlatform)'
configuration: '--configuration $(buildConfiguration) --output $(build.artifactstagingdirectory)'
I've restarted, redeployed both WebApp and WebJob, but no luck!
Upvotes: 1
Views: 1834
Reputation: 861
I do not think this is the 'correct' way to address this, but I had a similar situation and was able to see my WebJobs by setting the WEBSITE_RUN_FROM_PACKAGE application setting to zero.
Keep in mind, this resets every time I deploy from DevOps, so you need to change it back every time.
Upvotes: 0