Get Cosmos DB access key

Run the following command to store the access key in an environment variable:

export KEY=$(az cosmosdb keys list --resource-group {RESOURCE_GROUP} --name {COSMOS_NAME} --output tsv --query primaryMasterKey)

Comments

Leave a Comment

All fields are required. Your email address will not be published.