PutAzureCosmosDBRecord 2025.10.9.21

Bundle

org.apache.nifi | nifi-azure-nar

Description

This processor is a record-aware processor for inserting data into Cosmos DB with Core SQL API. It uses a configured record reader and schema to read an incoming record set from the body of a Flowfile and then inserts those records into a configured Cosmos DB Container.

Tags

azure, cosmos, insert, put, record

Input Requirement

REQUIRED

Supports Sensitive Dynamic Properties

false

Properties

PropertyDescription
Cosmos DB Access KeyCosmos DB Access Key from Azure Portal (Settings->Keys). Choose a read-write key to enable database or container creation at run time
Cosmos DB Conflict Handling StrategyChoose whether to ignore or upsert when conflict error occurs during insertion
Cosmos DB Connection ServiceIf configured, the controller service used to obtain the connection string and access key
Cosmos DB Consistency LevelChoose from five consistency levels on the consistency spectrum. Refer to Cosmos DB documentation for their differences
Cosmos DB Container IDThe unique identifier for the container
Cosmos DB NameThe database name or id. This is used as the namespace for document collections or containers
Cosmos DB Partition KeyThe partition key used to distribute data among servers
Cosmos DB URICosmos DB URI, typically in the form of https://{databaseaccount}.documents.azure.com:443/ Note this host URL is for Cosmos DB with Core SQL API from Azure Portal (Overview->URI)
Insert Batch SizeThe number of records to group together for one single insert operation against Cosmos DB
Record ReaderSpecifies the Controller Service to use for parsing incoming data and determining the data’s schema

Relationships

NameDescription
failureAll FlowFiles that cannot be written to Cosmos DB are routed to this relationship
successAll FlowFiles that are written to Cosmos DB are routed to this relationship