Forum Discussion
Victor1989
Oct 10, 2022Copper Contributor
how to import a yaml rule in sentinel analytics
hi members , i am getting error when i try to deploy yaml rule in analytics from powershell.
i am following this : https://emptydc.com/2021/03/19/alertrule-from-github-to-azure-sentinel/
error i am getting below:
New-AzSentinelAlertRuleFromGitHub: The term 'New-AzSentinelAlertRuleFromGitHub' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
- AndySvintsSteel Contributor
Hello Victor1989,
It looks like you do not have alertRuleFromGHToSentinel.ps1 script downloaded and/or imported.
Please download and import it into your session prior to executing
New-AzSentinelAlertRuleFromGitHub cmdlet.
Hope that helps.
Thank you.