Share via


Microsoft.SecurityInsights fileImports 2025-01-01-preview

Bicep resource definition

The fileImports resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.SecurityInsights/fileImports resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.SecurityInsights/fileImports@2025-01-01-preview' = {
  scope: resourceSymbolicName or scope
  name: 'string'
  properties: {
    contentType: 'string'
    importFile: {
      fileFormat: 'string'
      fileName: 'string'
      fileSize: int
    }
    ingestionMode: 'string'
    source: 'string'
  }
}

Property Values

Microsoft.SecurityInsights/fileImports

Name Description Value
name The resource name string (required)
properties File import properties FileImportProperties
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.

FileImportProperties

Name Description Value
contentType The content type of this file. 'BasicIndicator'
'StixIndicator'
'Unspecified' (required)
importFile Represents the imported file. FileMetadata (required)
ingestionMode Describes how to ingest the records in the file. 'IngestAnyValidRecords'
'IngestOnlyIfAllAreValid'
'Unspecified' (required)
source The source for the data in the file. string (required)

FileMetadata

Name Description Value
fileFormat The format of the file 'CSV'
'JSON'
'Unspecified'
fileName The name of the file. string
fileSize The size of the file. int

ARM template resource definition

The fileImports resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.SecurityInsights/fileImports resource, add the following JSON to your template.

{
  "type": "Microsoft.SecurityInsights/fileImports",
  "apiVersion": "2025-01-01-preview",
  "name": "string",
  "properties": {
    "contentType": "string",
    "importFile": {
      "fileFormat": "string",
      "fileName": "string",
      "fileSize": "int"
    },
    "ingestionMode": "string",
    "source": "string"
  }
}

Property Values

Microsoft.SecurityInsights/fileImports

Name Description Value
apiVersion The api version '2025-01-01-preview'
name The resource name string (required)
properties File import properties FileImportProperties
type The resource type 'Microsoft.SecurityInsights/fileImports'

FileImportProperties

Name Description Value
contentType The content type of this file. 'BasicIndicator'
'StixIndicator'
'Unspecified' (required)
importFile Represents the imported file. FileMetadata (required)
ingestionMode Describes how to ingest the records in the file. 'IngestAnyValidRecords'
'IngestOnlyIfAllAreValid'
'Unspecified' (required)
source The source for the data in the file. string (required)

FileMetadata

Name Description Value
fileFormat The format of the file 'CSV'
'JSON'
'Unspecified'
fileName The name of the file. string
fileSize The size of the file. int

Usage Examples

Terraform (AzAPI provider) resource definition

The fileImports resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.SecurityInsights/fileImports resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.SecurityInsights/fileImports@2025-01-01-preview"
  name = "string"
  parent_id = "string"
  body = {
    properties = {
      contentType = "string"
      importFile = {
        fileFormat = "string"
        fileName = "string"
        fileSize = int
      }
      ingestionMode = "string"
      source = "string"
    }
  }
}

Property Values

Microsoft.SecurityInsights/fileImports

Name Description Value
name The resource name string (required)
parent_id The ID of the resource to apply this extension resource to. string (required)
properties File import properties FileImportProperties
type The resource type "Microsoft.SecurityInsights/fileImports@2025-01-01-preview"

FileImportProperties

Name Description Value
contentType The content type of this file. 'BasicIndicator'
'StixIndicator'
'Unspecified' (required)
importFile Represents the imported file. FileMetadata (required)
ingestionMode Describes how to ingest the records in the file. 'IngestAnyValidRecords'
'IngestOnlyIfAllAreValid'
'Unspecified' (required)
source The source for the data in the file. string (required)

FileMetadata

Name Description Value
fileFormat The format of the file 'CSV'
'JSON'
'Unspecified'
fileName The name of the file. string
fileSize The size of the file. int