Hello BRUNO Tonino (ENGIE IT),
Thanks for posting your question in the Microsoft Q&A forum.
You can use PowerShell commands. first, ensure that your runbook is connected to your Azure account. This can be done using the Connect-AzAccount
cmdlet if necessary.
Use the Get-AzAutomationJob
cmdlet to fetch details about the current job. You will need to specify the resource group name, automation account name, and optionally the runbook name.
# Variables
$resourceGroupName = "yourResourceGroupName"
$automationAccountName = "yourAutomationAccountName"
$runbookName = "yourRunbookName"
# Get the job details
$job = Get-AzAutomationJob -ResourceGroupName $resourceGroupName `
-AutomationAccountName $automationAccountName `
-RunbookName $runbookName
# Output job details
$jobId = $job.JobId
$jobName = $job.Runbook.Name
Write-Output "Job ID: $jobId"
Write-Output "Job Name: $jobName"
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful