Skip to content

Commit 6547e6a

Browse files
committed
Update azuredeploy.bicep
1 parent 81e6806 commit 6547e6a

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

Labs/deploy/azuredeploy.bicep

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ This Azure resource deployment template uses some of the following practices:
55
- [Abbrevation examples for Azure resources](https://learn.microsoft.com/en-us/azure/cloud-adoption-framework/ready/azure-best-practices/resource-abbreviations)
66
*/
77

8-
9-
108
/* *************************************************************** */
119
/* Parameters */
1210
/* *************************************************************** */
@@ -97,6 +95,12 @@ var appServiceSettings = {
9795
}
9896
}
9997

98+
// Define a variable for the tag values
99+
var tags = {
100+
name: 'AzureCosmosDB-DevGuide'
101+
repo: 'https://github.com/solliancenet/cosmos-db-nosql-openai-python-dev-guide'
102+
}
103+
100104
/* *************************************************************** */
101105
/* Azure Cosmos DB for NoSQL */
102106
/* *************************************************************** */
@@ -105,6 +109,7 @@ resource cosmosAccount 'Microsoft.DocumentDB/databaseAccounts@2024-05-15' = {
105109
name: '${name}-cosmos'
106110
location: location
107111
kind: 'GlobalDocumentDB'
112+
tags: tags
108113
properties: {
109114
databaseAccountOfferType: 'Standard'
110115
enableMultipleWriteLocations: false
@@ -141,6 +146,7 @@ resource openAiAccount 'Microsoft.CognitiveServices/accounts@2023-05-01' = {
141146
sku: {
142147
name: openAiSettings.sku
143148
}
149+
tags: tags
144150
kind: 'OpenAI'
145151
properties: {
146152
customSubDomainName: openAiSettings.name
@@ -190,6 +196,7 @@ resource openAiCompletionsModelDeployment 'Microsoft.CognitiveServices/accounts/
190196
resource logAnalytics 'Microsoft.OperationalInsights/workspaces@2021-06-01' = {
191197
name: '${name}-loganalytics'
192198
location: location
199+
tags: tags
193200
properties: {
194201
sku: {
195202
name: 'PerGB2018'
@@ -199,6 +206,7 @@ resource logAnalytics 'Microsoft.OperationalInsights/workspaces@2021-06-01' = {
199206
resource appServiceWebInsights 'Microsoft.Insights/components@2020-02-02' = {
200207
name: '${appServiceSettings.web.name}-appi'
201208
location: location
209+
tags: tags
202210
kind: 'web'
203211
properties: {
204212
Application_Type: 'web'
@@ -212,6 +220,7 @@ resource appServiceWebInsights 'Microsoft.Insights/components@2020-02-02' = {
212220
resource appServicePlan 'Microsoft.Web/serverfarms@2022-03-01' = {
213221
name: '${appServiceSettings.plan.name}-asp'
214222
location: location
223+
tags: tags
215224
sku: {
216225
name: appServiceSettings.plan.sku
217226
}
@@ -229,6 +238,7 @@ resource appServicePlan 'Microsoft.Web/serverfarms@2022-03-01' = {
229238
resource appServiceWeb 'Microsoft.Web/sites@2022-03-01' = {
230239
name: appServiceSettings.web.name
231240
location: location
241+
tags: tags
232242
properties: {
233243
serverFarmId: appServicePlan.id
234244
httpsOnly: true
@@ -267,6 +277,7 @@ resource appServiceWebDeployment 'Microsoft.Web/sites/sourcecontrols@2021-03-01'
267277
resource containerRegistry 'Microsoft.ContainerRegistry/registries@2023-01-01-preview' = {
268278
name: replace('${name}registry','-', '')
269279
location: location
280+
tags: tags
270281
sku: {
271282
name: acrSku
272283
}
@@ -281,6 +292,7 @@ resource containerRegistry 'Microsoft.ContainerRegistry/registries@2023-01-01-pr
281292
resource containerAppEnvironment 'Microsoft.App/managedEnvironments@2023-05-01' = {
282293
name: '${name}-containerappenv'
283294
location: location
295+
tags: tags
284296
properties: {
285297
appLogsConfiguration: {
286298
destination: 'log-analytics'
@@ -308,6 +320,7 @@ resource containerAppEnvironment 'Microsoft.App/managedEnvironments@2023-05-01'
308320
resource backendApiContainerApp 'Microsoft.App/containerApps@2023-05-01' = {
309321
name: '${name}-api'
310322
location: location
323+
tags: tags
311324
properties: {
312325
environmentId: containerAppEnvironment.id
313326
configuration: {

0 commit comments

Comments
 (0)