Where is the storage account key for cosmos db?

Shittu Adesoji (NHQ-AC-CONSULTANT) 10 Reputation points
2023-01-27T14:46:21.0766667+00:00

I have a copy data pipeline which loads data from a json file within a blob to a cosmos DB collection. Now the sink is the cosmos dB connection . At creation time account selection method is Azure subscription , subscription is selected and then Azure cosmos dB account is selected and then it shows an error message "Cannot get storage account key. [object Object]".

How can this be resolved ?

Other part when i enter the account selection method manually everything connects ok but while executing full pipeline it fails to find the connection and i get errors similiar to "The operation failed with server error. ConnectionId: '{ ServerId : { ClusterId : 1, EndPoint : "Unspecified/<cosmosdb url>:10255" }, LocalValue : 3"

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,911 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,646 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dillon Silzer 57,831 Reputation points Volunteer Moderator
    2023-01-27T22:35:58.55+00:00

    Hello,

    Go to Settings > Keys in Azure under Cosmos DB.

    User's image

    User's image


    If this is helpful please accept answer.


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.