
Azure Batch
CertifiedRun transactional batch creates
Azure Batch
Run transactional batch creates
Executes a single-partition transactional batch of item creates; all operations share one partition key value and succeed or fail together.
type: io.kestra.plugin.azure.storage.cosmosdb.BatchExamples
id: azure_cosmos_container_batch_create_item
namespace: company.team
tasks:
- id: batch_create
type: io.kestra.plugin.azure.storage.cosmosdb.Batch
endpoint: "https://yourcosmosaccount.documents.azure.com"
databaseId: your_data_base_id
containerId: your_container_id
partitionKeyValue: europe
tenantId: "{{ secret('AZURE_TENANT_ID') }}"
clientId: "{{ secret('AZURE_CLIENT_ID') }}"
clientSecret: "{{ secret('AZURE_CLIENT_SECRET') }}"
items:
- id: item_one
region: europe
key: value
- id: item_two
region: europe
key: value
Properties
containerId *Requiredstring
Container ID
Container (collection) name within the database; must already exist.
databaseId *Requiredstring
Database ID
Target database name inside the account; required.
items *Requiredarray
Documents to create
List of JSON documents; each must include the partition key field matching partitionKeyValue.
partitionKeyValue *Requiredstring
Partition key value for batch
Value common to every item (e.g. "US" for a /country key); batch cannot span partitions.
tenantId *Requiredstring
Azure AD tenant ID (GUID)
clientId string
Client ID of the Azure AD application
Application (client) ID used for service principal authentication.
clientSecret string
Client secret for the Azure AD application
Secret value associated with the client ID; store in a Kestra secret.
connectionString string
Cosmos connection string
Full connection string from Azure portal; overrides endpoint and Azure AD credentials when set.
consistencyLevel string
SessionSTRONGBOUNDED_STALENESSSESSIONEVENTUALCONSISTENT_PREFIXChoose request consistency
Consistency level sent to Cosmos; defaults to SESSION.
contentResponseOnWriteEnabled booleanstring
trueReturn payload on writes
When true (default), write responses include the document body; set false to reduce payload size.
endpoint string
Cosmos account endpoint
Base account URL (e.g. https://
pemCertificate string
PEM-encoded certificate content for client authentication
PEM text for certificate-based auth; alternative to clientSecret.
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
Outputs
activityId string
Activity id
diagnostics
Diagnostics
com.azure.cosmos.CosmosDiagnostics
com.azure.cosmos.implementation.FeedResponseDiagnostics
com.azure.cosmos.implementation.ClientSideRequestStatistics
date-timedate-timecom.azure.cosmos.implementation.query.QueryInfo-QueryPlanDiagnosticsContext
date-timedate-timecom.azure.cosmos.implementation.QueryMetrics
durationdurationdurationdurationduration string
durationDuration
errorMessage string
Error message
requestCharge number
Request charge
responseHeaders object
Response headers
responseLength integer
Response length
results array
Results
com.azure.cosmos.models.CosmosBatchOperationResult
com.azure.cosmos.CosmosItemSerializer
retryAfterDuration string
durationRetry after duration
sessionToken string
Session token
statusCode integer
Status code
subStatusCode integer
Sub status code
successStatusCode boolean
Success status code