Read from Azure FileSystem (not VM) RRS feed

  • Question

  • Hi,

    When a Azure-WebJob fails at startup/runtime i can get thos Information also saved in the Azure-file system at data/jobs/continuous/jobName.
    How can i get this Information/File in C# to read the information (success/failed) ?

    Best Regards
    Nicole  ;P

    Monday, June 20, 2016 9:48 AM

All replies

  • Hi gpc442,

    Here you can find a list of all the environment variables you can access during runtime.

    Nevertheless, take a look into the WebJobs API documentation, it gives the necessary data for you to reach the log files also:

    Example response for GET /api/triggeredwebjobs

        name: "jobName",
        runCommand: "...\run.cmd",
        type: "triggered",
        url: "http://.../triggeredwebjobs/jobName",
        history_url: "http://.../triggeredwebjobs/jobName/history",
        extra_info_url: "http://.../",
        scheduler_logs_url: "https://.../vfs/data/jobs/triggered/jobName/job_scheduler.log",
        settings: { },
        using_sdk: false,
            id: "20131103120400",
            status: "Success",
            start_time: "2013-11-08T02:56:00.000000Z",
            end_time: "2013-11-08T02:57:00.000000Z",
            duration: "00:01:00",
            output_url: "http://.../vfs/data/jobs/triggered/jobName/20131103120400/output_20131103120400.log",
            error_url: "http://.../vfs/data/jobs/triggered/jobName/20131103120400/error_20131103120400.log",
            url: "http://.../triggeredwebjobs/jobName/history/20131103120400",
            trigger: "Schedule - 0 0 0 * * *"

    Hope this helps! 

    Best Regards,
    Carlos Sardo

    Monday, June 20, 2016 2:45 PM