-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathapp.bicep
More file actions
68 lines (63 loc) · 1.63 KB
/
Copy pathapp.bicep
File metadata and controls
68 lines (63 loc) · 1.63 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
66
67
68
extension radius
@description('The ID of your Radius Environment. Set automatically by the rad CLI.')
param environment string
resource app 'Radius.Core/applications@2025-08-01-preview' = {
name: 'redis-azure-test'
properties: {
environment: environment
}
}
resource redis 'Radius.Data/redisCaches@2025-08-01-preview' = {
name: 'redis'
properties: {
environment: environment
application: app.id
size: 'S'
}
}
resource demoImage 'Radius.Compute/containerImages@2025-08-01-preview' = {
name: 'redis-demo-image'
properties: {
environment: environment
application: app.id
tag: 'demo-e2e'
build: {
source: 'git::https://github.com/radius-project/samples.git//samples/demo?ref=190d9c4c84278980d9fae402330bd5ead76b31a5'
}
}
}
resource democontainer 'Radius.Compute/containers@2025-08-01-preview' = {
name: 'democontainer'
properties: {
environment: environment
application: app.id
containers: {
demo: {
image: 'ghcr.io/radius-project/samples/demo:latest'
// The recipe's secret output(s) are materialized into a managed
// Radius.Security/secrets resource and consumed here BY REFERENCE via
// secretKeyRef — the value never lands on redis state.
env: {
REDIS_URL: {
valueFrom: {
secretKeyRef: {
secretName: redis.properties.secrets.name
key: 'url'
}
}
}
}
ports: {
web: {
containerPort: 3000
}
}
}
}
connections: {
redis: {
source: redis.id
}
}
}
}