Cosmos DB connection configuration 'CosmosDB' does not exist. Make sure that it is a defined App Setting.

Jayanthrowth C V 0 Reputation points
2025-01-10T06:38:47.2033333+00:00

Facing this while connecting cosmosdb with azure function as input as per the training material and facing this 'Cosmos DB connection configuration 'CosmosDB' does not exist. Make sure that it is a defined App Setting.'

This question is related to the following Learning Module

Azure Training
Azure Training
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Training: Instruction to develop new skills.
1,985 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Rakesh Gurram 11,475 Reputation points Microsoft Vendor
    2025-01-16T19:57:39.3+00:00

    Hi Jayanthrowth C V,

    Thank you for reaching out to us on the Microsoft Q&A forum.

    Apologies for the delayed response.In the "Add a Container" section, please use the same names as provided in the module. In the next step, we are running code that relies on these exact names for proper execution, as referenced in the module documentation.

    Additionally, we have tried from our end and successfully completed the exercise, as illustrated in the screenshots provided below:

    User's image

    Cosmos 2

    Please reach out to us if you have any other queries.

    If the information is helpful, please Accept Answer & Upvote so that it would be helpful to other community members.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.