Where is the storage account key for cosmos db?

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,442 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,545 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dillon Silzer 54,471 Reputation points
    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.