Hello @Cayir Aydar, Aysegul The error message you’re seeing, “One of the specified inputs is invalid”, is typically returned when there’s an issue with the inputs provided to the Cosmos DB operation. Here are a few things you could check:
- Connection Strings: Ensure that the connection strings for your Azure Blob Storage and Cosmos DB are correctly specified in your
local.settings.json
file. - Database and Container Names: Verify that the
databaseName
andcontainerName
values exist in your Azure Cosmos DB account If you’re using automatic value replacement (using%settingName%
patterns), make sure that the name of the setting exists in your Azure function app. - Managed Identity: If you’re using Managed Identity, ensure that you have both
accountEndpoint
andcredential
specified in yourlocal.settings.json
fileThecredential
should be set tomanagedidentity
. - Dependencies: The Azure Functions trigger and bindings for Azure Cosmos DB depend on the extension package
Microsoft.Azure.WebJobs.Extensions.CosmosDB
over the base Azure Functions runtime. Always keep these packages updated, because they include fixes and new features that can help you address any potential issues you might encounter. - Singleton Pattern: If you’re manually creating your own instance of the Azure Cosmos DB SDK client, you should follow the pattern of having only one instance of the client and use a singleton pattern approach This process avoids the potential socket issues in your operations.
Please review these points and update your configuration accordingly. Let us know if this helps your query