Skip to content

Commit 887212e

Browse files
Update Bicep and Azure YAML configurations
Renamed connection string resource to 'appsettings' and updated its properties. Added HTTP logging settings for the app service. Enhanced `azure.yaml` with schema reference, project metadata, and defined a deployment workflow. Configured backend service with project details and hosting environment.
1 parent d069a45 commit 887212e

File tree

2 files changed

+19
-5
lines changed

2 files changed

+19
-5
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-dev/main/schemas/v1.0/azure.yaml.json
2+
3+
name: community-toolkit-datasync-server
4+
metadata:
5+
6+
7+
workflows:
8+
up:
9+
steps:
10+
- azd: provision
11+
- azd: deploy --all
12+
13+
services:
14+
backend:
15+
project: ./src
16+
language: csharp
17+
host: appservice

samples/datasync-server-cosmosdb-singlecontainer/infra/resources.bicep

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,9 @@ resource appService 'Microsoft.Web/sites@2022-09-01' = {
129129
}
130130

131131
resource connectionStrings 'config' = {
132-
name: 'connectionstrings'
132+
name: 'appsettings'
133133
properties: {
134-
DefaultConnection: {
135-
value: account.listConnectionStrings().connectionStrings[0].connectionString
136-
type: 'DocDb'
137-
}
134+
ConnectionStrings__DefaultConnection: account.listConnectionStrings().connectionStrings[0].connectionString
138135
}
139136
}
140137
}

0 commit comments

Comments
 (0)