Skip to content

Instantly share code, notes, and snippets.

@pkhabazi
Last active October 29, 2020 10:49
Show Gist options
  • Save pkhabazi/24609dc792c0a73237e2ad1f7fac921c to your computer and use it in GitHub Desktop.
Save pkhabazi/24609dc792c0a73237e2ad1f7fac921c to your computer and use it in GitHub Desktop.

Export-AzSentinel

SYNOPSIS

Export Azure Sentinel

SYNTAX

Export-AzSentinel [-SubscriptionId <String>] -WorkspaceName <String> -OutputFolder <FileInfo>
 -Kind <ExportType[]> [-TemplatesKind <Kind[]>] [<CommonParameters>]

DESCRIPTION

With this function you can export Azure Sentinel configuration

EXAMPLES

EXAMPLE 1

Export-AzSentinel -WorkspaceName '' -OutputFolder C:\Temp\ -Kind All
In this example you export Alert, Hunting and Template rules

EXAMPLE 2

Export-AzSentinel -WorkspaceName '' -OutputFolder C:\Temp\ -Kind Templates
In this example you export only the Templates

EXAMPLE 3

Export-AzSentinel -WorkspaceName '' -OutputFolder C:\Temp\ -Kind Alert
In this example you export only the Scheduled Alert rules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment