Thanks for posting your question in the Microsoft Q&A forum.
Ensure that you are providing the required parameters, particularly -AutomationAccountName
and -ResourceGroupName
.
If you are filtering by job status, confirm that there are indeed jobs with that status. You can try omitting the status parameter to retrieve all jobs.
Add debugging information to your runbook to see what is happening during execution. Use Write-Output
or Write-Verbose
to log messages that can help identify where the issue lies.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful