Migrate Sentinel to code

Occasional Contributor

Hi,

 

We are migrating our existing Sentinel configuration to code. Now working on the Alert rules we see 181 active rules in the portal. But when executing:
az sentinel alert-rule list --resource-group [rg] --workspace-name [workspace] --query "[] | length(@)" we get a result of 141 rules.

Is there someone who can enlighten me which rules cannot be listed by this command and if there is a way to get all the rules?

Thank!

 

Regard, Erik

0 Replies