An Azure service that is used to automate, configure, and install updates across hybrid environments.
Is it possible to get Powershell runbook output via HTTP?
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
Windows for business | Windows Server | User experience | PowerShell
1 answer
Sort by: Most helpful
-
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