An Azure service that provides an event-driven serverless compute platform.
Error connecting Azure Function with CosmosDB
I'm trying to output a document to Azure CosmosDB for Table with Azure function Http Trigger. I followed the sample from the documentation but I ran into error after running the sample code
Executed 'Functions.HttpTrigger1' (Failed, Id=60ea69c6-ba44-431d-ad26-f3d385dc008b, Duration=344ms) [2023-06-07T15:16:50.349Z] System.Private.CoreLib: Exception while executing function: Functions.HttpTrigger1. Microsoft.Azure.DocumentDB.Core: Value cannot be null. (Parameter 'serviceEndpoint').
Here is my local.settings.json
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "",
"FUNCTIONS_WORKER_RUNTIME": "python",
"AzureCosmosDBConnectionString": "AZURE PRIMARY CONNECTION STRING"
}
}
Azure Functions
Azure Cosmos DB
An Azure NoSQL database service for app development.
1 answer
Sort by: Newest
-
Deleted
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
1 deleted comment
Comments have been turned off. Learn more