-
Notifications
You must be signed in to change notification settings - Fork 846
Expand file tree
/
Copy pathAzureContainerAppsTests.ConditionalBranchWithParameterReference.verified.bicep
More file actions
65 lines (57 loc) · 1.65 KB
/
AzureContainerAppsTests.ConditionalBranchWithParameterReference.verified.bicep
File metadata and controls
65 lines (57 loc) · 1.65 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
@description('The location for the resource(s) to be deployed.')
param location string = resourceGroup().location
param env_outputs_azure_container_apps_environment_default_domain string
param env_outputs_azure_container_apps_environment_id string
param env_outputs_azure_container_registry_endpoint string
param env_outputs_azure_container_registry_managed_identity_id string
param api_containerimage string
param enable_feature_value string
param connection_prefix_value string
resource api 'Microsoft.App/containerApps@2025-10-02-preview' = {
name: 'api'
location: location
properties: {
configuration: {
activeRevisionsMode: 'Single'
registries: [
{
server: env_outputs_azure_container_registry_endpoint
identity: env_outputs_azure_container_registry_managed_identity_id
}
]
runtime: {
dotnet: {
autoConfigureDataProtection: true
}
}
}
environmentId: env_outputs_azure_container_apps_environment_id
template: {
containers: [
{
image: api_containerimage
name: 'api'
env: [
{
name: 'OTEL_DOTNET_EXPERIMENTAL_OTLP_RETRY'
value: 'in_memory'
}
{
name: 'FEATURE_CONNECTION'
value: (toLower(enable_feature_value) == 'true') ? 'prefix-${connection_prefix_value}-enabled' : 'disabled'
}
]
}
]
scale: {
minReplicas: 1
}
}
}
identity: {
type: 'UserAssigned'
userAssignedIdentities: {
'${env_outputs_azure_container_registry_managed_identity_id}': { }
}
}
}