Hello Renato Espinoza,
The most common reasons why an Azure Automation Runbook fails to start a VM on schedule (with empty job logs) are:
- Schedule Not Linked to Runbook: If the schedule is created but not properly associated with the runbook, the job will never trigger. This often happens after portal changes or if the linkage was broken during updates.
- Authentication Failure: The Automation Account’s identity (Run As Account or Managed Identity) may lack permissions like
Microsoft.Compute/virtualMachines/start on the VM or resource group. When authentication fails silently, no job logs are generated.
- Expired Run As Account Certificate: If you’re using a Run As Account, its certificate expires after 1 year unless renewed. An expired certificate prevents authentication.
- Context Handling in PowerShell: Runbooks that rely on AzContext without explicitly setting it (
Disable-AzContextAutosave and Connect-AzAccount) can fail when triggered by schedule.
As a workaround could you please try below checks:
- Verify Schedule Association
- Go to Automation Account → Runbooks → [Your Runbook] → Schedules.
- Ensure the schedule is linked and active.
- Check Job History
- Navigate to Automation Account → Jobs.
- If there are no jobs at all, the schedule linkage is broken.
- Validate Authentication
- If using Managed Identity, confirm it has Virtual Machine Contributor role on the VM’s resource group.
- If using Run As Account, check certificate expiry under Automation Account → Run As Accounts.
- Update Runbook Script
- Enable Logging
- Add
Write-Output statements in the runbook.
- Enable Log Analytics integration for better diagnostics.
- You can manually trigger the runbook daily using:
Start-AzAutomationRunbook -AutomationAccountName "YourAccount" `
-Name "YourRunbook" -ResourceGroupName "RGNAME"
Reference:
1.https://free.blessedness.top/en-us/azure/automation/shared-resources/schedules
2.https://free.blessedness.top/en-us/azure/automation/learn/automation-tutorial-runbook-textual
3.https://free.blessedness.top/en-us/azure/automation/enable-managed-identity-for-automation#enable-using-the-azure-portal
If the above steps don’t resolve the issue, could you please share us the below details for further investigation?
- Is the schedule actually linked to the runbook? (Check under Runbook → Schedules)
- Are there any jobs listed under Automation Account → Jobs? If yes, what is their status?
- Which authentication method are you using? (Managed Identity or Run As Account)
- Has the Run As Account certificate expired? (If applicable)
- What runtime version is the runbook using? (PowerShell 5.1 or 7.2)
- Does the runbook execute successfully in Test Pane?
- Is the Automation Account in the same region as the VM? (Cross-region setups can fail silently)
Thanks,
Suchitra.