How to access Azure Webjobs log using C# -


i have azure webjob running on scheduled basis , need access run logs , output of each run.

i bumped kudu api, couldn't go further not sure credentials pass web request.

sample code:

private static void getapidata2()     {         string url = "https://mywebsite.scm.azurewebsites.net/azurejobs/api/jobs";         webrequest request = webrequest.create(url);          request.contenttype = "application/json";         request.method = "get";          //your azure ftp deployment credentials here         request.credentials = new networkcredential("what should go here?", "and here?");          webresponse response = request.getresponse();         console.writeline(response.tostring());     } 

i 401 unauthorized if use azure administrator account.

what username , password should use authenticate?

please take @ this page understand kind of credentials can pass these apis.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -