Error message that says "Command was found in the module, but the module could not be loaded."

713 Views Asked by At

https://github.com/javiersoriano/sentinel-all-in-one#getting-started

Hi guys, I am trying to use Powershell to automate the process of deploying Azure Sentinel in an environment. I have the .ps1 file and the .json file. When I run the script, I get an error message:

"command was found in the module 'AzSentinel', but the module could not be loaded." Error message Anyone know what might be the problem here?

1

There are 1 best solutions below

0
On

Make sure you are using powershell core, open a new powershell session, then import the module before running the command.

Import-Module -Name AzSentinel -Force