зеркало из https://github.com/Azure/CCOInsights.git
Add tagging (#349)
This commit is contained in:
Родитель
8e8a4fa1cb
Коммит
b0e99cbcb8
|
@ -18,7 +18,7 @@ Before you begin, make sure you have the following:
|
|||
- Go to https://github.com/{user}/CCOInsights/settings/secrets/actions.
|
||||
- Click on `New repository secret`.
|
||||
- Add `AZURE_CREDENTIALS` as the secret name.
|
||||
- Paste the Service Principal credentials as the secret value.
|
||||
- Paste the Service Principal credentials JSON as the secret value.
|
||||
5. Deploy the infrastructure and the code:
|
||||
- Navigate to the `Actions` tab in the repository and select the `Deployment Workflow` (https://github.com/{user}/CCOInsights/actions/workflows/deployment.yml).
|
||||
- Click on Run workflow and fill in the required parameters:
|
||||
|
|
|
@ -6,6 +6,7 @@ param dlsname string = ''
|
|||
|
||||
@description('Location where resources should be deployed')
|
||||
param location string = resourceGroup().location
|
||||
var version = 'CCOInsights v0.1'
|
||||
|
||||
//scope tests
|
||||
// @description('Location where resources should be deployed')
|
||||
|
@ -21,6 +22,9 @@ module appServicePlan '../../CARML/modules/Microsoft.Web/serverfarms/deploy.bice
|
|||
name: 'P0v3'
|
||||
capacity: 1
|
||||
}
|
||||
tags: {
|
||||
version: version
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -30,6 +34,9 @@ module storage '../../CARML/modules/Microsoft.Storage/storageAccounts/deploy.bic
|
|||
name: toLower('${name}ccost')
|
||||
location: location
|
||||
storageAccountSku: 'Standard_LRS'
|
||||
tags: {
|
||||
version: version
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -59,6 +66,9 @@ module appService '../../CARML/modules/Microsoft.Web/sites/deploy.bicep' = {
|
|||
}
|
||||
httpsOnly: true //by default
|
||||
storageAccountRequired: false //default value is false (not required)
|
||||
tags: {
|
||||
version: version
|
||||
}
|
||||
}
|
||||
}
|
||||
//keyvault reference identity
|
||||
|
@ -84,6 +94,9 @@ module logAnalyticsWorkspace '../../CARML/modules/Microsoft.OperationalInsights/
|
|||
name: '${name}-cco-la'
|
||||
dataRetention: 120
|
||||
useResourcePermissions: true
|
||||
tags: {
|
||||
version: version
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -95,6 +108,9 @@ module appInsights '../../CARML/modules/Microsoft.Insights/components/deploy.bic
|
|||
name: '${name}-cco-ai'
|
||||
kind: 'web'
|
||||
workspaceResourceId: logAnalyticsWorkspace.outputs.resourceId
|
||||
tags: {
|
||||
version: version
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -114,6 +130,9 @@ module dataLakeStorage '../../CARML/modules/Microsoft.Storage/storageAccounts/de
|
|||
ipRules: []
|
||||
defaultAction: 'Allow'
|
||||
}
|
||||
tags: {
|
||||
version: version
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче