Azure support

Advertisement

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

Re: Azure support

Azure WebJob runs basically in a full Windows environment. It can do almost anything you can do on Windows.

Reply with quote

willv
Guest

Re: Azure support

martin wrote:

Azure WebJob runs basically in a full Windows environment. It can do almost anything you can do on Windows.

So how do i define the PUT command when referencing the blob storage?

put test.blob.core.windows.net/data/test.zip /Test/

Reply with quote

martin
Site Admin
martin avatar

Re: Azure support

OK, it's misunderstanding. I didn't mean that WinSCP can do that.
I've meant that in Azure WebJob, you can do basically anything, including download from the blob. But you need to use a different tool for that. Once you manage to download the files, you can use WinSCP to upload the files to the "3rd party site".

Reply with quote

Advertisement

willv
Guest

Re: Azure support

martin wrote:

OK, it's misunderstanding. I didn't mean that WinSCP can do that.
I've meant that in Azure WebJob, you can do basically anything, including download from the blob. But you need to use a different tool for that. Once you manage to download the files, you can use WinSCP to upload the files to the "3rd party site".

I tried sending a test file using a webjob and it failed. below is the log. any idea?

[code][08/28/2019 19:30:24 > 0d1e3e: SYS INFO] Status changed to Initializing
[08/28/2019 19:30:24 > 0d1e3e: SYS INFO] Status changed to Failed
[08/28/2019 19:30:24 > 0d1e3e: SYS ERR ] Failed to copy job files: System.IO.IOException: The process cannot access the file 'D:\home\site\wwwroot\App_Data\jobs\triggered\TestFtp\Azure WinSCP\WinSCP.exe' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite)
at System.IO.Abstractions.FileWrapper.Copy(String sourceFileName, String destFileName, Boolean overwrite)
at Kudu.Core.Infrastructure.FileSystemHelpers.CopyDirectoryRecursive(String sourceDirPath, String destinationDirPath, Boolean overwrite) in C:\Kudu Files\Private\src\master\Kudu.Core\Infrastructure\FileSystemHelpers.cs:line 241
at Kudu.Core.Infrastructure.FileSystemHelpers.CopyDirectoryRecursive(String sourceDirPath, String destinationDirPath, Boolean overwrite) in C:\Kudu Files\Private\src\master\Kudu.Core\Infrastructure\FileSystemHelpers.cs:line 250
at Kudu.Core.Jobs.BaseJobRunner.<>c__DisplayClass49_0.<CacheJobBinaries>b__0() in C:\Kudu Files\Private\src\master\Kudu.Core\Jobs\BaseJobRunner.cs:line 183
at Kudu.Core.Infrastructure.OperationManager.<>c__DisplayClass2_0.<Attempt>b__0() in C:\Kudu Files\Private\src\master\Kudu.Core\Infrastructure\OperationManager.cs:line 16
at Kudu.Core.Infrastructure.OperationManager.Attempt[T](Func`1 action, Int32 retries, Int32 delayBeforeRetry, Func`2 shouldRetry) in C:\Kudu Files\Private\src\master\Kudu.Core\Infrastructure\OperationManager.cs:line 42
at Kudu.Core.Infrastructure.OperationManager.Attempt(Action action, Int32 retries, Int32 delayBeforeRetry) in C:\Kudu Files\Private\src\master\Kudu.Core\Infrastructure\OperationManager.cs:line 14
at Kudu.Core.Jobs.BaseJobRunner.CacheJobBinaries(JobBase job, IJobLogger logger) in C:\Kudu Files\Private\src\master\Kudu.Core\Jobs\BaseJobRunner.cs:line 179
[08/28/2019 19:30:24 > 0d1e3e: SYS INFO] Status changed to Failed
[08/28/2019 19:30:24 > 0d1e3e: SYS ERR ] WebJob run failed due to: System.InvalidOperationException: Missing working directory
at Kudu.Core.Jobs.BaseJobRunner.InitializeJobInstance(JobBase job, IJobLogger logger) in C:\Kudu Files\Private\src\master\Kudu.Core\Jobs\BaseJobRunner.cs:line 232
at Kudu.Core.Jobs.TriggeredJobRunner.<>c__DisplayClass10_1.<StartJobRun>b__0(Object _) in C:\Kudu Files\Private\src\master\Kudu.Core\Jobs\TriggeredJobRunner.cs:line 77

Reply with quote

Advertisement

You can post new topics in this forum