-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcontainer-apps-environment-dapr-secretstores-key-vault.bicep
44 lines (40 loc) · 1.42 KB
/
container-apps-environment-dapr-secretstores-key-vault.bicep
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
@description('Name of the resource.')
param name string
@description('Name for the Container Apps Environment associated with the Dapr component.')
param containerAppsEnvironmentName string
@description('Name of the Key Vault associated with the Dapr component.')
param keyVaultName string
@description('Client ID for the Managed Identity associated with the Dapr component.')
param identityClientId string
@description('Container App names for the scopes to configure for the Dapr component.')
param scopes array = []
resource containerAppsEnvironment 'Microsoft.App/managedEnvironments@2024-03-01' existing = {
name: containerAppsEnvironmentName
}
resource daprComponent 'Microsoft.App/managedEnvironments/daprComponents@2024-03-01' = {
name: name
parent: containerAppsEnvironment
properties: {
componentType: 'secretstores.azure.keyvault'
version: 'v1'
ignoreErrors: false
initTimeout: '5s'
metadata: [
{
name: 'vaultName'
value: keyVaultName
}
{
name: 'azureClientId'
value: identityClientId
}
]
scopes: scopes
}
}
@description('The deployed Dapr component resource.')
output resource resource = daprComponent
@description('ID for the deployed Dapr component resource.')
output id string = daprComponent.id
@description('Name for the deployed Dapr component resource.')
output name string = daprComponent.name