ParentJobId not showing in Hybrid Worker scenario
Recently the Azure Automation team released the functionality to be able to get the job Id of the current running Automation job. (https://feedback.azure.com/forums/246290-azure-automation/suggestions/10300698-power-shell-runbook-add-support-to-get-own-job-i)
This works fine by using the command: $PsPrivateMetaData.JobId.Guid in a normal PowerShell runbook although if you use a hybrid worker scenario the earlier mentioned command gives no output.
Update: our team is currently working on getting this fixed.