Is it possible to get Powershell runbook output via HTTP?

Thomas Lu 21 Reputation points
2023-09-08T08:41:52.1833333+00:00

I've set up an Azure Automation Account and have created some Powershell runbooks which execute successfully via Powershell and HTTP POST requests.

However, while I am able to view the output from the runbook's job history, or from Powershell, I cannot find a way to retrieve the output via an HTTP GET request.

Given that I receive a jobID whenever the runbook is run, is it possible to capture the output in any way besides Powershell's Get-AzureRmAutomationJob?

(I've seen the following URL https://management.azure.com/subscriptions/{subscriptionID}/resourceGroups/{resourceGroup}/providers/Microsoft.Automation/automationAccounts/{automationAccount}/jobs/{jobID}/output?api-version=2019-06-01 but attempting to make an HTTP request against that returns an error about the refresh token not being found.)

Azure Automation
Azure Automation

An Azure service that is used to automate, configure, and install updates across hybrid environments.

Windows for business | Windows Server | User experience | PowerShell

1 answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    3 deleted comments

    Comments have been turned off. Learn more

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.