Usually updating all Azure Automation modules work for me. Please follow steps here.
Even when runbooks that have been working for some time, all of a sudden can start failing intermittently, and updating the modules fix the problems.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I'm trying to test the process to autoscale a SQL DB using a runbook triggered by an alert, as per instructions here :
https://techcommunity.microsoft.com/t5/azure-database-support-blog/how-to-auto-scale-azure-sql-databases/ba-p/2235441
I amended the script in the couple of places where it calls AzureRM commands to use those for Az.sql.
When the alert is triggered the runbook is called but encounters this error:
"The 'Get-AzSqlDatabase' command was found in the module 'Az.Sql', but the module could not be loaded."
How can I fix this? Apologies if it's a dumb question, I'm pretty much a powershell newbie.
Usually updating all Azure Automation modules work for me. Please follow steps here.
Even when runbooks that have been working for some time, all of a sudden can start failing intermittently, and updating the modules fix the problems.