Skip to content

Commit 3598752

Browse files
committed
Updated script to add correct values for local dev db and container
1 parent 1a5b99a commit 3598752

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/set-app-config.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ push_development() {
108108
# Cosmos DB (same account as prod, separate container for dev data)
109109
# -------------------------------------------------------------------------
110110
set_key "$LABEL" "UseCosmosDb" "true"
111-
set_key "$LABEL" "CosmosDb:DatabaseName" "sudoku"
112-
set_key "$LABEL" "CosmosDb:ContainerName" "games-dev"
111+
set_key "$LABEL" "CosmosDb:DatabaseName" "sudoku-dev"
112+
set_key "$LABEL" "CosmosDb:ContainerName" "games"
113113
set_key "$LABEL" "CosmosDb:UseManagedIdentity" "true"
114114
set_key "$LABEL" "CosmosDb:AccountEndpoint" "https://cosmos-sudoku-prod.documents.azure.com:443/"
115115
set_key "$LABEL" "CosmosDb:ConnectionMode" "Direct"

src/backend/Sudoku.Infrastructure/Configuration/InfrastructureServiceCollectionExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ private IServiceCollection AddCosmosDbServices(IConfiguration configuration)
7373
throw new InvalidOperationException("CosmosDb:AccountEndpoint must be set when CosmosDb:UseManagedIdentity is true.");
7474
}
7575

76-
TokenCredential credential = new ManagedIdentityCredential();
76+
TokenCredential credential = new DefaultAzureCredential();
7777
return new CosmosClient(cosmosDbOptions.AccountEndpoint, credential, clientOptions);
7878
}
7979

0 commit comments

Comments
 (0)