azure-powershell
azure-powershell copied to clipboard
Get-AzSentinelAlertRuleTemplate "Tactics" value always empty
Description
The "Tactics" value appears to be always empty when retrieving all rule templates using Get-AzSentinelAlertRuleTemplate.
There do appear to be tactics associate with the templates when using the API or manually viewing the templates in the interface. (Sentinel => Configuration => Analytics => Rule templates)
Issue script & Debug output
Get-AzSentinelAlertRuleTemplate
Environment data
Name Value
---- -----
PSVersion 5.1.18362.1801
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.18362.1801
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Module versions
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Script 2.6.1 Az.Accounts {Add-AzEnvironment, Clear-AzContext, Clear-AzDefault, Conn...
Script 1.1.0 Az.SecurityInsights {Get-AzSentinelAlertRule, Get-AzSentinelAlertRuleAction, G...
Error output
No response
Thank you for your reporting. Tagging and routing to the team member best able to assist.
@ErnieBot I can confirm the same. Looks like it does populate for the Fusion Kind of the Rule Templates but not for the others. We are routing this to the appropriate team.
Hi @ErnieBot We are aware of this issue. The API version used by the PowerShell client does not always return tactics. Updated APIs are coming and we will be updating the module to use them.
Any movement on this one? I've got a Sentinel deployment script that creates ARM templates and tactics is still coming out as 'null'. I did work at some point but can't remember when it last did
Hi @opticon454 We have a new version in review. the PR is here https://github.com/Azure/azure-powershell/pull/17286
@dicolanl any updates on this? It doesn't appear that the fix is live yet.
@camalloy
They've released a v2 preview version. I haven't had a chance to test it yet for this specific issue
https://www.powershellgallery.com/packages/Az.SecurityInsights/2.0.0-preview
Just released!!!!
Can confirm that this works now, the preview fix now populates the Tactic field.

@dicolanl @camalloy Thanks for confirming! Closing this out.