forked from radius-project/bicep
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathres-container-group.bicep
37 lines (37 loc) · 1.01 KB
/
res-container-group.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
// Container Group
resource /*${1:containerGroup}*/containerGroup 'Microsoft.ContainerInstance/containerGroups@2021-03-01' = {
name: /*${2:'name'}*/'name'
location: /*${3:location}*/'location'
properties: {
containers: [
{
name: /*${4:'containername'}*/'containername'
properties: {
image: /*${5:'mcr.microsoft.com/azuredocs/aci-helloworld:latest'}*/'mcr.microsoft.com/azuredocs/aci-helloworld:latest'
ports: [
{
port: /*${6:80}*/80
}
]
resources: {
requests: {
cpu: /*${7:1}*/1
memoryInGB: /*${8:4}*/4
}
}
}
}
]
restartPolicy: /*${9|'OnFailure','Always','Never'|}*/'OnFailure'
osType: /*${10|'Linux','Windows'|}*/'Linux'
ipAddress: {
type: 'Public'
ports: [
{
protocol: /*${11|'TCP','UDP'|}*/'TCP'
port: /*${12:80}*/80
}
]
}
}
}