File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1414apiVersion : microsoft.documentdb.azure.com/v1alpha1api20210515
1515kind : DatabaseAccount
1616metadata :
17- name : sample-db-account
17+ name : sampledbaccount
1818 namespace : cosmosdb
1919spec :
2020 location : westcentralus
@@ -33,7 +33,7 @@ metadata:
3333spec :
3434 location : westcentralus
3535 owner :
36- name : sample-db-account
36+ name : sampledbaccount
3737 options :
3838 autoscaleSettings :
3939 maxThroughput : 4000
Original file line number Diff line number Diff line change @@ -60,8 +60,8 @@ You can also find the resource group in the [Azure portal](https://portal.azure.
6060We need to provide the web application with access to the database.
6161Once the database account is created, store the connection details into environment variables with the following commands:
6262``` sh
63- COSMOS_DB_ACCOUNT=" $( az cosmosdb show --resource-group aso-cosmos-demo --name sample-db-account -otsv --query ' locations[0].documentEndpoint' ) "
64- COSMOS_DB_KEY=" $( az cosmosdb keys list --resource-group aso-cosmos-demo --name sample-db-account -otsv --query ' primaryMasterKey' ) "
63+ COSMOS_DB_ACCOUNT=" $( az cosmosdb show --resource-group aso-cosmos-demo --name sampledbaccount -otsv --query ' locations[0].documentEndpoint' ) "
64+ COSMOS_DB_KEY=" $( az cosmosdb keys list --resource-group aso-cosmos-demo --name sampledbaccount -otsv --query ' primaryMasterKey' ) "
6565```
6666
6767Then create the secret the pod will use with:
You can’t perform that action at this time.
0 commit comments