Skip to content

Commit 6ebfe65

Browse files
committed
Rename the DB account
There seems to be some inconsistent validation applied here.
1 parent b221d3c commit 6ebfe65

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cosmos-todo-app/cosmos-sql-demo.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ spec:
1414
apiVersion: microsoft.documentdb.azure.com/v1alpha1api20210515
1515
kind: DatabaseAccount
1616
metadata:
17-
name: sample-db-account
17+
name: sampledbaccount
1818
namespace: cosmosdb
1919
spec:
2020
location: westcentralus
@@ -33,7 +33,7 @@ metadata:
3333
spec:
3434
location: westcentralus
3535
owner:
36-
name: sample-db-account
36+
name: sampledbaccount
3737
options:
3838
autoscaleSettings:
3939
maxThroughput: 4000

cosmos-todo-app/cosmos-todo-demo.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ You can also find the resource group in the [Azure portal](https://portal.azure.
6060
We need to provide the web application with access to the database.
6161
Once 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

6767
Then create the secret the pod will use with:

0 commit comments

Comments
 (0)