Skip to content

Instantly share code, notes, and snippets.

@pkhabazi
Last active October 8, 2020 19:44
Show Gist options
  • Save pkhabazi/45adb3dcf332da4d89c232eb5c92e438 to your computer and use it in GitHub Desktop.
Save pkhabazi/45adb3dcf332da4d89c232eb5c92e438 to your computer and use it in GitHub Desktop.

Import-AzSentinelDataConnector

SYNOPSIS

Import Azure Sentinel Data Connectors

SYNTAX

Import-AzSentinelDataConnector [-SubscriptionId <String>] -WorkspaceName <String> -SettingsFile <FileInfo>
 [<CommonParameters>]

DESCRIPTION

This function imports Azure Sentinel Data Connectors

EXAMPLES

EXAMPLE 1

Import-AzSentinelDataConnector -WorkspaceName "" -SettingsFile ".\examples\DataConnectors.json"
In this example all the Data Conenctors configured in the JSON file will be created or updated
{
"AzureSecurityCenter": [
{
"subscriptionId": "ebdab2f1-0b79-4181-a70d-82f0ff39243e",
"state": "Enabled"
},
{
"subscriptionId": "ebdab2f1-0b79-4181-a70d-82f0ff39243e",
"state": "Enabled"
}
],
"AzureActivityLog": [
{
"subscriptionId": "ebdab2f1-0b79-4181-a70d-82f0ff39243e"
},
{
"subscriptionId": "ebdab2f1-0b79-4181-a70d-82f0ff39243e"
}
],
"ThreatIntelligenceTaxii": [
{
"friendlyName": "testserver",
"taxiiServer": "https://limo.anomali.com/api/v1/taxii2/feeds/",
"collectionId": "107",
"username": "guest",
"password": "guest",
"state": "enabled"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment