File tree 2 files changed +51
-2
lines changed
2 files changed +51
-2
lines changed Original file line number Diff line number Diff line change
1
+ param name string
2
+ param location string = resourceGroup ().location
3
+ param containerAppEnvironmentId string
4
+ param repositoryImage string = 'mcr.microsoft.com/azuredocs/containerapps-helloworld:latest'
5
+ param envVars array = []
6
+ param registry string
7
+ param minReplicas int = 1
8
+ param maxReplicas int = 1
9
+ param registryUsername string
10
+ @secure ()
11
+ param registryPassword string
12
+
13
+ resource containerApp 'Microsoft.App/containerApps@2022-01-01-preview' ={
14
+ name : name
15
+ location : location
16
+ properties :{
17
+ managedEnvironmentId : containerAppEnvironmentId
18
+ configuration : {
19
+ activeRevisionsMode : 'multiple'
20
+ secrets : [
21
+ {
22
+ name : 'container-registry-password'
23
+ value : registryPassword
24
+ }
25
+ ]
26
+ registries : [
27
+ {
28
+ server : registry
29
+ username : registryUsername
30
+ passwordSecretRef : 'container-registry-password'
31
+ }
32
+ ]
33
+ }
34
+ template : {
35
+ containers : [
36
+ {
37
+ image : repositoryImage
38
+ name : name
39
+ env : envVars
40
+ }
41
+ ]
42
+ scale : {
43
+ minReplicas : minReplicas
44
+ maxReplicas : maxReplicas
45
+ }
46
+ }
47
+ }
48
+ }
49
+
50
+ output fqdn string = containerApp .properties .configuration .ingress .fqdn
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ module service 'container_app.bicep' = {
61
61
}
62
62
63
63
// create the worker container app
64
- module worker 'container_app .bicep' = {
64
+ module worker 'container_app_no_ingress .bicep' = {
65
65
name : 'worker'
66
66
params : {
67
67
name : 'worker'
@@ -71,7 +71,6 @@ module worker 'container_app.bicep' = {
71
71
containerAppEnvironmentId : env .outputs .id
72
72
registry : acr .name
73
73
envVars : union (shared_config , client_config )
74
- externalIngress : false
75
74
}
76
75
}
77
76
You can’t perform that action at this time.
0 commit comments