Azure WebJobs not deploying

Bryan Smith's Avatar

Bryan Smith

11 Oct, 2017 09:00 PM

Hi,

I have two projects that are setup to be automatically deployed with a web site but they are not deploying to Azure. I checked the folder on Azure and the app_data folder in not copying, even though it is included in the csproj file, see DestinationRelativePath below

  <PropertyGroup>
    <CopyAllFilesToSingleFolderForPackageDependsOn>
      QueueListenerFiles;
      RecurringJobFiles;
      $(CopyAllFilesToSingleFolderForPackageDependsOn);

  <Target Name="QueueListenerFiles">
    <ItemGroup>
      <_CustomFiles Include="$(SolutionDir)Sonic.Menus.QueueListener\bin\$(ConfigurationName)\**\*" />
      <FilesForPackagingFromProject Include="%(_CustomFiles.Identity)">
        <DestinationRelativePath>App_Data\jobs\continuous\QueueListener\%(RecursiveDir)%(Filename)%(Extension)</DestinationRelativePath>
      </FilesForPackagingFromProject>
    </ItemGroup>
  </Target>
  <Target Name="RecurringJobFiles">
    <ItemGroup>
      <_RecurringJobFiles Include="$(SolutionDir)Sonic.Menus.RecurringJobs\bin\$(ConfigurationName)\**\*" />
      <FilesForPackagingFromProject Include="%(_RecurringJobFiles.Identity)">
        <DestinationRelativePath>App_Data\jobs\triggered\RecurringJobHost\%(RecursiveDir)%(Filename)%(Extension)</DestinationRelativePath>
      </FilesForPackagingFromProject>
    </ItemGroup>
  </Target>

This was working at one time, but is no longer working.

Any help would be greatly appreciated!

Thanks!!

  1. Support Staff 1 Posted by Ilya Finkelshte... on 11 Oct, 2017 10:34 PM

    Ilya Finkelshteyn's Avatar

    Am I understand correctly that you are using website deployment for WebJob? Did you consider using our 1st class WebJobs deployment support?

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac