Hi,
Yes, I use the output binding, yes, the Partition Key attribute is set.
I resolved the issue - by manually creating the lease container 'Online_Event'. Please refer the blow. Then the problem disappeared. Though CreateIfNotExists =true, the lease container was not created for some reason.
[FunctionName("ArchiveFunction")]
public static async Task RunAsync([BlobTrigger("%BlobContainer%/{name}", Connection = "StorageConnection")] Stream myBlob, string name,
[CosmosDB(
databaseName: "PCArchive",
collectionName: "PCEvents",
ConnectionStringSetting = "CosmosDbConnectionString")]IAsyncCollector<dynamic> documentsOut, ILogger log,
[CosmosDB(
databaseName: "PCArchive",
collectionName: "Online_Event",
CreateIfNotExists =true,
ConnectionStringSetting = "CosmosDbConnectionString")]IAsyncCollector<dynamic> leaseSBOOut)
{