Powershell Runbook 允许您使用 $PSPrivateMetadata.JobId.Guid 获取作业 ID
如果 Runbook 是 Python,我们如何获取它?
根据 API 文档,您可以使用
r = azure.mgmt.automation.models.Runbook(<options>)
r.id
来源:https://learn.microsoft.com/en-us/python/api/azure-mgmt-automation/azure.mgmt.automation.models.runbook?view=azure-python