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
Post a Comment