Here is a simple Azure troubleshooting technique that can save you a lot of time. Here's the scenario: You have a day of coding your scripts in Azure Automation, and before you go home, there is one slight change, and after you do it, you start getting the error This job does not have any output.
We can go to the Exception tab and see the error, especially if it is a code error. When it is a code error, you won’t see any error or data in either Output, Errors, Warnings and even All Logs tabs.
However, the issue started because I hadn’t tested my code using test pane, which would have informed me that there as an issue on my code, and it would have saved me a lot of time. In my case, I forgot a dash before the operator or.
Lesson learned! Even if you are super confident, to avoid a lot of time-killing back and forth, troubleshoot your Azure job with a simple test pane before publishing your script.
More Quick Tips articles
- Using Azure DevOps Repos in your Azure Cloud Shell
- Restarting your Azure Application Gateway with PowerShell
- Renaming your repos in Azure DevOps
- Visual Studio Code keyboard shortcut to manage your code
- Using Azure ephemeral disks when provisioning VMs with ARM