Bicep resource definition
The dataConnectors resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log.
To create a Microsoft.SecurityInsights/dataConnectors resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.SecurityInsights/dataConnectors@2022-08-01' = {
etag: 'string'
name: 'string'
kind: 'string'
// For remaining properties, see Microsoft.SecurityInsights/dataConnectors objects
}
Microsoft.SecurityInsights/dataConnectors objects
Set the kind property to specify the type of object.
For AmazonWebServicesCloudTrail, use:
{
kind: 'AmazonWebServicesCloudTrail'
properties: {
awsRoleArn: 'string'
dataTypes: {
logs: {
state: 'string'
}
}
}
}
For AzureActiveDirectory, use:
{
kind: 'AzureActiveDirectory'
properties: {
dataTypes: {
alerts: {
state: 'string'
}
}
tenantId: 'string'
}
}
For AzureAdvancedThreatProtection, use:
{
kind: 'AzureAdvancedThreatProtection'
properties: {
dataTypes: {
alerts: {
state: 'string'
}
}
tenantId: 'string'
}
}
For AzureSecurityCenter, use:
{
kind: 'AzureSecurityCenter'
properties: {
dataTypes: {
alerts: {
state: 'string'
}
}
subscriptionId: 'string'
}
}
For MicrosoftCloudAppSecurity, use:
{
kind: 'MicrosoftCloudAppSecurity'
properties: {
dataTypes: {
alerts: {
state: 'string'
}
discoveryLogs: {
state: 'string'
}
}
tenantId: 'string'
}
}
For MicrosoftDefenderAdvancedThreatProtection, use:
{
kind: 'MicrosoftDefenderAdvancedThreatProtection'
properties: {
dataTypes: {
alerts: {
state: 'string'
}
}
tenantId: 'string'
}
}
For Office365, use:
{
kind: 'Office365'
properties: {
dataTypes: {
exchange: {
state: 'string'
}
sharePoint: {
state: 'string'
}
teams: {
state: 'string'
}
}
tenantId: 'string'
}
}
For ThreatIntelligence, use:
{
kind: 'ThreatIntelligence'
properties: {
dataTypes: {
indicators: {
state: 'string'
}
}
tenantId: 'string'
tipLookbackPeriod: 'string'
}
}
Property Values
Microsoft.SecurityInsights/dataConnectors
| Name |
Description |
Value |
| etag |
Etag of the azure resource |
string |
| kind |
Set to 'AmazonWebServicesCloudTrail' for type AwsCloudTrailDataConnector. Set to 'AzureActiveDirectory' for type AADDataConnector. Set to 'AzureAdvancedThreatProtection' for type AatpDataConnector. Set to 'AzureSecurityCenter' for type ASCDataConnector. Set to 'MicrosoftCloudAppSecurity' for type McasDataConnector. Set to 'MicrosoftDefenderAdvancedThreatProtection' for type MdatpDataConnector. Set to 'Office365' for type OfficeDataConnector. Set to 'ThreatIntelligence' for type TIDataConnector. |
'AmazonWebServicesCloudTrail' 'AzureActiveDirectory' 'AzureAdvancedThreatProtection' 'AzureSecurityCenter' 'MicrosoftCloudAppSecurity' 'MicrosoftDefenderAdvancedThreatProtection' 'Office365' 'ThreatIntelligence' (required) |
| name |
The resource name |
string (required) |
| scope |
Use when creating a resource at a scope that is different than the deployment scope. |
Set this property to the symbolic name of a resource to apply the extension resource. |
AADDataConnector
| Name |
Description |
Value |
| kind |
The data connector kind |
'AzureActiveDirectory' (required) |
| properties |
AAD (Azure Active Directory) data connector properties. |
AADDataConnectorProperties |
AADDataConnectorProperties
| Name |
Description |
Value |
| dataTypes |
The available data types for the connector. |
AlertsDataTypeOfDataConnector |
| tenantId |
The tenant id to connect to, and get the data from. |
string |
AatpDataConnector
| Name |
Description |
Value |
| kind |
The data connector kind |
'AzureAdvancedThreatProtection' (required) |
| properties |
AATP (Azure Advanced Threat Protection) data connector properties. |
AatpDataConnectorProperties |
AatpDataConnectorProperties
| Name |
Description |
Value |
| dataTypes |
The available data types for the connector. |
AlertsDataTypeOfDataConnector |
| tenantId |
The tenant id to connect to, and get the data from. |
string |
AlertsDataTypeOfDataConnector
ASCDataConnector
| Name |
Description |
Value |
| kind |
The data connector kind |
'AzureSecurityCenter' (required) |
| properties |
ASC (Azure Security Center) data connector properties. |
ASCDataConnectorProperties |
ASCDataConnectorProperties
| Name |
Description |
Value |
| dataTypes |
The available data types for the connector. |
AlertsDataTypeOfDataConnector |
| subscriptionId |
The subscription id to connect to, and get the data from. |
string |
AwsCloudTrailDataConnector
| Name |
Description |
Value |
| kind |
The data connector kind |
'AmazonWebServicesCloudTrail' (required) |
| properties |
Amazon Web Services CloudTrail data connector properties. |
AwsCloudTrailDataConnectorProperties |
AwsCloudTrailDataConnectorDataTypes
AwsCloudTrailDataConnectorDataTypesLogs
| Name |
Description |
Value |
| state |
Describe whether this data type connection is enabled or not. |
'Disabled' 'Enabled' |
AwsCloudTrailDataConnectorProperties
| Name |
Description |
Value |
| awsRoleArn |
The Aws Role Arn (with CloudTrailReadOnly policy) that is used to access the Aws account. |
string |
| dataTypes |
The available data types for the connector. |
AwsCloudTrailDataConnectorDataTypes |
DataConnectorDataTypeCommon
| Name |
Description |
Value |
| state |
Describe whether this data type connection is enabled or not. |
'Disabled' 'Enabled' |
McasDataConnector
| Name |
Description |
Value |
| kind |
The data connector kind |
'MicrosoftCloudAppSecurity' (required) |
| properties |
MCAS (Microsoft Cloud App Security) data connector properties. |
McasDataConnectorProperties |
McasDataConnectorDataTypes
McasDataConnectorProperties
| Name |
Description |
Value |
| dataTypes |
The available data types for the connector. |
McasDataConnectorDataTypes |
| tenantId |
The tenant id to connect to, and get the data from. |
string |
MdatpDataConnector
| Name |
Description |
Value |
| kind |
The data connector kind |
'MicrosoftDefenderAdvancedThreatProtection' (required) |
| properties |
MDATP (Microsoft Defender Advanced Threat Protection) data connector properties. |
MdatpDataConnectorProperties |
MdatpDataConnectorProperties
| Name |
Description |
Value |
| dataTypes |
The available data types for the connector. |
AlertsDataTypeOfDataConnector |
| tenantId |
The tenant id to connect to, and get the data from. |
string |
OfficeDataConnector
| Name |
Description |
Value |
| kind |
The data connector kind |
'Office365' (required) |
| properties |
Office data connector properties. |
OfficeDataConnectorProperties |
OfficeDataConnectorDataTypes
OfficeDataConnectorDataTypesExchange
| Name |
Description |
Value |
| state |
Describe whether this data type connection is enabled or not. |
'Disabled' 'Enabled' |
OfficeDataConnectorDataTypesSharePoint
| Name |
Description |
Value |
| state |
Describe whether this data type connection is enabled or not. |
'Disabled' 'Enabled' |
OfficeDataConnectorDataTypesTeams
| Name |
Description |
Value |
| state |
Describe whether this data type connection is enabled or not. |
'Disabled' 'Enabled' |
OfficeDataConnectorProperties
| Name |
Description |
Value |
| dataTypes |
The available data types for the connector. |
OfficeDataConnectorDataTypes |
| tenantId |
The tenant id to connect to, and get the data from. |
string |
TIDataConnector
| Name |
Description |
Value |
| kind |
The data connector kind |
'ThreatIntelligence' (required) |
| properties |
TI (Threat Intelligence) data connector properties. |
TIDataConnectorProperties |
TIDataConnectorDataTypes
TIDataConnectorDataTypesIndicators
| Name |
Description |
Value |
| state |
Describe whether this data type connection is enabled or not. |
'Disabled' 'Enabled' |
TIDataConnectorProperties
| Name |
Description |
Value |
| dataTypes |
The available data types for the connector. |
TIDataConnectorDataTypes |
| tenantId |
The tenant id to connect to, and get the data from. |
string |
| tipLookbackPeriod |
The lookback period for the feed to be imported. |
string |
Usage Examples
Azure Verified Modules
The following Azure Verified Modules can be used to deploy this resource type.
ARM template resource definition
The dataConnectors resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log.
To create a Microsoft.SecurityInsights/dataConnectors resource, add the following JSON to your template.
{
"etag": "string",
"name": "string",
"kind": "string"
// For remaining properties, see Microsoft.SecurityInsights/dataConnectors objects
}
Microsoft.SecurityInsights/dataConnectors objects
Set the kind property to specify the type of object.
For AmazonWebServicesCloudTrail, use:
{
"kind": "AmazonWebServicesCloudTrail",
"properties": {
"awsRoleArn": "string",
"dataTypes": {
"logs": {
"state": "string"
}
}
}
}
For AzureActiveDirectory, use:
{
"kind": "AzureActiveDirectory",
"properties": {
"dataTypes": {
"alerts": {
"state": "string"
}
},
"tenantId": "string"
}
}
For AzureAdvancedThreatProtection, use:
{
"kind": "AzureAdvancedThreatProtection",
"properties": {
"dataTypes": {
"alerts": {
"state": "string"
}
},
"tenantId": "string"
}
}
For AzureSecurityCenter, use:
{
"kind": "AzureSecurityCenter",
"properties": {
"dataTypes": {
"alerts": {
"state": "string"
}
},
"subscriptionId": "string"
}
}
For MicrosoftCloudAppSecurity, use:
{
"kind": "MicrosoftCloudAppSecurity",
"properties": {
"dataTypes": {
"alerts": {
"state": "string"
},
"discoveryLogs": {
"state": "string"
}
},
"tenantId": "string"
}
}
For MicrosoftDefenderAdvancedThreatProtection, use:
{
"kind": "MicrosoftDefenderAdvancedThreatProtection",
"properties": {
"dataTypes": {
"alerts": {
"state": "string"
}
},
"tenantId": "string"
}
}
For Office365, use:
{
"kind": "Office365",
"properties": {
"dataTypes": {
"exchange": {
"state": "string"
},
"sharePoint": {
"state": "string"
},
"teams": {
"state": "string"
}
},
"tenantId": "string"
}
}
For ThreatIntelligence, use:
{
"kind": "ThreatIntelligence",
"properties": {
"dataTypes": {
"indicators": {
"state": "string"
}
},
"tenantId": "string",
"tipLookbackPeriod": "string"
}
}
Property Values
Microsoft.SecurityInsights/dataConnectors
| Name |
Description |
Value |
| apiVersion |
The api version |
'2022-08-01' |
| etag |
Etag of the azure resource |
string |
| kind |
Set to 'AmazonWebServicesCloudTrail' for type AwsCloudTrailDataConnector. Set to 'AzureActiveDirectory' for type AADDataConnector. Set to 'AzureAdvancedThreatProtection' for type AatpDataConnector. Set to 'AzureSecurityCenter' for type ASCDataConnector. Set to 'MicrosoftCloudAppSecurity' for type McasDataConnector. Set to 'MicrosoftDefenderAdvancedThreatProtection' for type MdatpDataConnector. Set to 'Office365' for type OfficeDataConnector. Set to 'ThreatIntelligence' for type TIDataConnector. |
'AmazonWebServicesCloudTrail' 'AzureActiveDirectory' 'AzureAdvancedThreatProtection' 'AzureSecurityCenter' 'MicrosoftCloudAppSecurity' 'MicrosoftDefenderAdvancedThreatProtection' 'Office365' 'ThreatIntelligence' (required) |
| name |
The resource name |
string (required) |
| type |
The resource type |
'Microsoft.SecurityInsights/dataConnectors' |
AADDataConnector
| Name |
Description |
Value |
| kind |
The data connector kind |
'AzureActiveDirectory' (required) |
| properties |
AAD (Azure Active Directory) data connector properties. |
AADDataConnectorProperties |
AADDataConnectorProperties
| Name |
Description |
Value |
| dataTypes |
The available data types for the connector. |
AlertsDataTypeOfDataConnector |
| tenantId |
The tenant id to connect to, and get the data from. |
string |
AatpDataConnector
| Name |
Description |
Value |
| kind |
The data connector kind |
'AzureAdvancedThreatProtection' (required) |
| properties |
AATP (Azure Advanced Threat Protection) data connector properties. |
AatpDataConnectorProperties |
AatpDataConnectorProperties
| Name |
Description |
Value |
| dataTypes |
The available data types for the connector. |
AlertsDataTypeOfDataConnector |
| tenantId |
The tenant id to connect to, and get the data from. |
string |
AlertsDataTypeOfDataConnector
ASCDataConnector
| Name |
Description |
Value |
| kind |
The data connector kind |
'AzureSecurityCenter' (required) |
| properties |
ASC (Azure Security Center) data connector properties. |
ASCDataConnectorProperties |
ASCDataConnectorProperties
| Name |
Description |
Value |
| dataTypes |
The available data types for the connector. |
AlertsDataTypeOfDataConnector |
| subscriptionId |
The subscription id to connect to, and get the data from. |
string |
AwsCloudTrailDataConnector
| Name |
Description |
Value |
| kind |
The data connector kind |
'AmazonWebServicesCloudTrail' (required) |
| properties |
Amazon Web Services CloudTrail data connector properties. |
AwsCloudTrailDataConnectorProperties |
AwsCloudTrailDataConnectorDataTypes
AwsCloudTrailDataConnectorDataTypesLogs
| Name |
Description |
Value |
| state |
Describe whether this data type connection is enabled or not. |
'Disabled' 'Enabled' |
AwsCloudTrailDataConnectorProperties
| Name |
Description |
Value |
| awsRoleArn |
The Aws Role Arn (with CloudTrailReadOnly policy) that is used to access the Aws account. |
string |
| dataTypes |
The available data types for the connector. |
AwsCloudTrailDataConnectorDataTypes |
DataConnectorDataTypeCommon
| Name |
Description |
Value |
| state |
Describe whether this data type connection is enabled or not. |
'Disabled' 'Enabled' |
McasDataConnector
| Name |
Description |
Value |
| kind |
The data connector kind |
'MicrosoftCloudAppSecurity' (required) |
| properties |
MCAS (Microsoft Cloud App Security) data connector properties. |
McasDataConnectorProperties |
McasDataConnectorDataTypes
McasDataConnectorProperties
| Name |
Description |
Value |
| dataTypes |
The available data types for the connector. |
McasDataConnectorDataTypes |
| tenantId |
The tenant id to connect to, and get the data from. |
string |
MdatpDataConnector
| Name |
Description |
Value |
| kind |
The data connector kind |
'MicrosoftDefenderAdvancedThreatProtection' (required) |
| properties |
MDATP (Microsoft Defender Advanced Threat Protection) data connector properties. |
MdatpDataConnectorProperties |
MdatpDataConnectorProperties
| Name |
Description |
Value |
| dataTypes |
The available data types for the connector. |
AlertsDataTypeOfDataConnector |
| tenantId |
The tenant id to connect to, and get the data from. |
string |
OfficeDataConnector
| Name |
Description |
Value |
| kind |
The data connector kind |
'Office365' (required) |
| properties |
Office data connector properties. |
OfficeDataConnectorProperties |
OfficeDataConnectorDataTypes
OfficeDataConnectorDataTypesExchange
| Name |
Description |
Value |
| state |
Describe whether this data type connection is enabled or not. |
'Disabled' 'Enabled' |
OfficeDataConnectorDataTypesSharePoint
| Name |
Description |
Value |
| state |
Describe whether this data type connection is enabled or not. |
'Disabled' 'Enabled' |
OfficeDataConnectorDataTypesTeams
| Name |
Description |
Value |
| state |
Describe whether this data type connection is enabled or not. |
'Disabled' 'Enabled' |
OfficeDataConnectorProperties
| Name |
Description |
Value |
| dataTypes |
The available data types for the connector. |
OfficeDataConnectorDataTypes |
| tenantId |
The tenant id to connect to, and get the data from. |
string |
TIDataConnector
| Name |
Description |
Value |
| kind |
The data connector kind |
'ThreatIntelligence' (required) |
| properties |
TI (Threat Intelligence) data connector properties. |
TIDataConnectorProperties |
TIDataConnectorDataTypes
TIDataConnectorDataTypesIndicators
| Name |
Description |
Value |
| state |
Describe whether this data type connection is enabled or not. |
'Disabled' 'Enabled' |
TIDataConnectorProperties
| Name |
Description |
Value |
| dataTypes |
The available data types for the connector. |
TIDataConnectorDataTypes |
| tenantId |
The tenant id to connect to, and get the data from. |
string |
| tipLookbackPeriod |
The lookback period for the feed to be imported. |
string |
Usage Examples
The dataConnectors resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log.
To create a Microsoft.SecurityInsights/dataConnectors resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
etag = "string"
name = "string"
kind = "string"
// For remaining properties, see Microsoft.SecurityInsights/dataConnectors objects
}
Microsoft.SecurityInsights/dataConnectors objects
Set the kind property to specify the type of object.
For AmazonWebServicesCloudTrail, use:
{
kind = "AmazonWebServicesCloudTrail"
properties = {
awsRoleArn = "string"
dataTypes = {
logs = {
state = "string"
}
}
}
}
For AzureActiveDirectory, use:
{
kind = "AzureActiveDirectory"
properties = {
dataTypes = {
alerts = {
state = "string"
}
}
tenantId = "string"
}
}
For AzureAdvancedThreatProtection, use:
{
kind = "AzureAdvancedThreatProtection"
properties = {
dataTypes = {
alerts = {
state = "string"
}
}
tenantId = "string"
}
}
For AzureSecurityCenter, use:
{
kind = "AzureSecurityCenter"
properties = {
dataTypes = {
alerts = {
state = "string"
}
}
subscriptionId = "string"
}
}
For MicrosoftCloudAppSecurity, use:
{
kind = "MicrosoftCloudAppSecurity"
properties = {
dataTypes = {
alerts = {
state = "string"
}
discoveryLogs = {
state = "string"
}
}
tenantId = "string"
}
}
For MicrosoftDefenderAdvancedThreatProtection, use:
{
kind = "MicrosoftDefenderAdvancedThreatProtection"
properties = {
dataTypes = {
alerts = {
state = "string"
}
}
tenantId = "string"
}
}
For Office365, use:
{
kind = "Office365"
properties = {
dataTypes = {
exchange = {
state = "string"
}
sharePoint = {
state = "string"
}
teams = {
state = "string"
}
}
tenantId = "string"
}
}
For ThreatIntelligence, use:
{
kind = "ThreatIntelligence"
properties = {
dataTypes = {
indicators = {
state = "string"
}
}
tenantId = "string"
tipLookbackPeriod = "string"
}
}
Property Values
Microsoft.SecurityInsights/dataConnectors
| Name |
Description |
Value |
| etag |
Etag of the azure resource |
string |
| kind |
Set to 'AmazonWebServicesCloudTrail' for type AwsCloudTrailDataConnector. Set to 'AzureActiveDirectory' for type AADDataConnector. Set to 'AzureAdvancedThreatProtection' for type AatpDataConnector. Set to 'AzureSecurityCenter' for type ASCDataConnector. Set to 'MicrosoftCloudAppSecurity' for type McasDataConnector. Set to 'MicrosoftDefenderAdvancedThreatProtection' for type MdatpDataConnector. Set to 'Office365' for type OfficeDataConnector. Set to 'ThreatIntelligence' for type TIDataConnector. |
'AmazonWebServicesCloudTrail' 'AzureActiveDirectory' 'AzureAdvancedThreatProtection' 'AzureSecurityCenter' 'MicrosoftCloudAppSecurity' 'MicrosoftDefenderAdvancedThreatProtection' 'Office365' 'ThreatIntelligence' (required) |
| name |
The resource name |
string (required) |
| parent_id |
The ID of the resource to apply this extension resource to. |
string (required) |
| type |
The resource type |
"Microsoft.SecurityInsights/dataConnectors@2022-08-01" |
AADDataConnector
| Name |
Description |
Value |
| kind |
The data connector kind |
'AzureActiveDirectory' (required) |
| properties |
AAD (Azure Active Directory) data connector properties. |
AADDataConnectorProperties |
AADDataConnectorProperties
| Name |
Description |
Value |
| dataTypes |
The available data types for the connector. |
AlertsDataTypeOfDataConnector |
| tenantId |
The tenant id to connect to, and get the data from. |
string |
AatpDataConnector
| Name |
Description |
Value |
| kind |
The data connector kind |
'AzureAdvancedThreatProtection' (required) |
| properties |
AATP (Azure Advanced Threat Protection) data connector properties. |
AatpDataConnectorProperties |
AatpDataConnectorProperties
| Name |
Description |
Value |
| dataTypes |
The available data types for the connector. |
AlertsDataTypeOfDataConnector |
| tenantId |
The tenant id to connect to, and get the data from. |
string |
AlertsDataTypeOfDataConnector
ASCDataConnector
| Name |
Description |
Value |
| kind |
The data connector kind |
'AzureSecurityCenter' (required) |
| properties |
ASC (Azure Security Center) data connector properties. |
ASCDataConnectorProperties |
ASCDataConnectorProperties
| Name |
Description |
Value |
| dataTypes |
The available data types for the connector. |
AlertsDataTypeOfDataConnector |
| subscriptionId |
The subscription id to connect to, and get the data from. |
string |
AwsCloudTrailDataConnector
| Name |
Description |
Value |
| kind |
The data connector kind |
'AmazonWebServicesCloudTrail' (required) |
| properties |
Amazon Web Services CloudTrail data connector properties. |
AwsCloudTrailDataConnectorProperties |
AwsCloudTrailDataConnectorDataTypes
AwsCloudTrailDataConnectorDataTypesLogs
| Name |
Description |
Value |
| state |
Describe whether this data type connection is enabled or not. |
'Disabled' 'Enabled' |
AwsCloudTrailDataConnectorProperties
| Name |
Description |
Value |
| awsRoleArn |
The Aws Role Arn (with CloudTrailReadOnly policy) that is used to access the Aws account. |
string |
| dataTypes |
The available data types for the connector. |
AwsCloudTrailDataConnectorDataTypes |
DataConnectorDataTypeCommon
| Name |
Description |
Value |
| state |
Describe whether this data type connection is enabled or not. |
'Disabled' 'Enabled' |
McasDataConnector
| Name |
Description |
Value |
| kind |
The data connector kind |
'MicrosoftCloudAppSecurity' (required) |
| properties |
MCAS (Microsoft Cloud App Security) data connector properties. |
McasDataConnectorProperties |
McasDataConnectorDataTypes
McasDataConnectorProperties
| Name |
Description |
Value |
| dataTypes |
The available data types for the connector. |
McasDataConnectorDataTypes |
| tenantId |
The tenant id to connect to, and get the data from. |
string |
MdatpDataConnector
| Name |
Description |
Value |
| kind |
The data connector kind |
'MicrosoftDefenderAdvancedThreatProtection' (required) |
| properties |
MDATP (Microsoft Defender Advanced Threat Protection) data connector properties. |
MdatpDataConnectorProperties |
MdatpDataConnectorProperties
| Name |
Description |
Value |
| dataTypes |
The available data types for the connector. |
AlertsDataTypeOfDataConnector |
| tenantId |
The tenant id to connect to, and get the data from. |
string |
OfficeDataConnector
| Name |
Description |
Value |
| kind |
The data connector kind |
'Office365' (required) |
| properties |
Office data connector properties. |
OfficeDataConnectorProperties |
OfficeDataConnectorDataTypes
OfficeDataConnectorDataTypesExchange
| Name |
Description |
Value |
| state |
Describe whether this data type connection is enabled or not. |
'Disabled' 'Enabled' |
OfficeDataConnectorDataTypesSharePoint
| Name |
Description |
Value |
| state |
Describe whether this data type connection is enabled or not. |
'Disabled' 'Enabled' |
OfficeDataConnectorDataTypesTeams
| Name |
Description |
Value |
| state |
Describe whether this data type connection is enabled or not. |
'Disabled' 'Enabled' |
OfficeDataConnectorProperties
| Name |
Description |
Value |
| dataTypes |
The available data types for the connector. |
OfficeDataConnectorDataTypes |
| tenantId |
The tenant id to connect to, and get the data from. |
string |
TIDataConnector
| Name |
Description |
Value |
| kind |
The data connector kind |
'ThreatIntelligence' (required) |
| properties |
TI (Threat Intelligence) data connector properties. |
TIDataConnectorProperties |
TIDataConnectorDataTypes
TIDataConnectorDataTypesIndicators
| Name |
Description |
Value |
| state |
Describe whether this data type connection is enabled or not. |
'Disabled' 'Enabled' |
TIDataConnectorProperties
| Name |
Description |
Value |
| dataTypes |
The available data types for the connector. |
TIDataConnectorDataTypes |
| tenantId |
The tenant id to connect to, and get the data from. |
string |
| tipLookbackPeriod |
The lookback period for the feed to be imported. |
string |
Usage Examples
A basic example of deploying Data Connector.
terraform {
required_providers {
azapi = {
source = "Azure/azapi"
}
azurerm = {
source = "hashicorp/azurerm"
}
}
}
provider "azurerm" {
features {
}
}
provider "azapi" {
skip_provider_registration = false
}
variable "resource_name" {
type = string
default = "acctest0001"
}
variable "location" {
type = string
default = "westeurope"
}
data "azurerm_client_config" "current" {
}
resource "azapi_resource" "resourceGroup" {
type = "Microsoft.Resources/resourceGroups@2020-06-01"
name = var.resource_name
location = var.location
}
resource "azapi_resource" "workspace" {
type = "Microsoft.OperationalInsights/workspaces@2022-10-01"
parent_id = azapi_resource.resourceGroup.id
name = var.resource_name
location = var.location
body = {
properties = {
features = {
disableLocalAuth = false
enableLogAccessUsingOnlyResourcePermissions = true
}
publicNetworkAccessForIngestion = "Enabled"
publicNetworkAccessForQuery = "Enabled"
retentionInDays = 30
sku = {
name = "PerGB2018"
}
workspaceCapping = {
dailyQuotaGb = -1
}
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
resource "azapi_resource" "onboardingState" {
type = "Microsoft.SecurityInsights/onboardingStates@2023-06-01-preview"
parent_id = azapi_resource.workspace.id
name = "default"
body = {
properties = {
customerManagedKey = false
}
}
}
resource "azapi_resource" "dataConnector" {
type = "Microsoft.SecurityInsights/dataConnectors@2022-10-01-preview"
parent_id = azapi_resource.workspace.id
name = var.resource_name
body = {
kind = "MicrosoftThreatIntelligence"
properties = {
dataTypes = {
bingSafetyPhishingURL = {
lookbackPeriod = ""
state = "Disabled"
}
microsoftEmergingThreatFeed = {
lookbackPeriod = "1970-01-01T00:00:00Z"
state = "enabled"
}
}
tenantId = data.azurerm_client_config.current.tenant_id
}
}
schema_validation_enabled = false
response_export_values = ["*"]
depends_on = [azapi_resource.onboardingState]
}