🔥 3-day streak
Microsoft Azure Database Administrator Associate122 / 144
Question 122 of 144

You maintain a SQL Server 2022 instance on an Azure VM. A SQL Server Agent job contains a step of type 'PowerShell' that imports the SqlServer module and runs a maintenance cmdlet. The step succeeds when you run the same script manually in a 64-bit PowerShell console on the server, but the job step fails with an error indicating the module cannot be loaded. What is the most likely cause?

Reviewed for accuracy · Report an issueNext question