File tree Expand file tree Collapse file tree 6 files changed +13
-23
lines changed Expand file tree Collapse file tree 6 files changed +13
-23
lines changed Original file line number Diff line number Diff line change 79
79
- name : Deploy bicep
80
80
uses : azure/CLI@v1
81
81
with :
82
- azcliversion : 2.29.2
83
82
inlineScript : |
84
83
az group create -g ${{ secrets.RESOURCE_GROUP }} -l canadacentral
85
84
az deployment group create -g ${{ secrets.RESOURCE_GROUP }} -f ./with-dapr/deploy/main.bicep \
Original file line number Diff line number Diff line change 80
80
- name : Deploy bicep
81
81
uses : azure/CLI@v1
82
82
with :
83
- azcliversion : 2.29.2
84
83
inlineScript : |
85
84
az group create -g ${{ secrets.RESOURCE_GROUP }} -l canadacentral
86
85
az deployment group create -g ${{ secrets.RESOURCE_GROUP }} -f ./with-fqdn/deploy/main.bicep \
Original file line number Diff line number Diff line change @@ -12,19 +12,18 @@ param environmentVars array = []
12
12
@secure ()
13
13
param containerRegistryPassword string
14
14
15
- resource containerApp 'Microsoft.Web /containerApps@2021-03 -01' = {
15
+ resource containerApp 'Microsoft.App /containerApps@2022-01 -01-preview ' = {
16
16
name : containerAppName
17
- kind : 'containerapp'
18
17
location : location
19
18
properties : {
20
- kubeEnvironmentId : environmentId
19
+ managedEnvironmentId : environmentId
21
20
configuration : {
22
21
secrets : [
23
22
{
24
23
name : 'registry-password'
25
24
value : containerRegistryPassword
26
25
}
27
- ]
26
+ ]
28
27
registries : [
29
28
{
30
29
server : containerRegistry
@@ -36,6 +35,11 @@ resource containerApp 'Microsoft.Web/containerApps@2021-03-01' = {
36
35
external : isExternalIngress
37
36
targetPort : containerPort
38
37
}
38
+ dapr : {
39
+ enabled : true
40
+ appPort : containerPort
41
+ appId : containerAppName
42
+ }
39
43
}
40
44
template : {
41
45
containers : [
@@ -48,11 +52,6 @@ resource containerApp 'Microsoft.Web/containerApps@2021-03-01' = {
48
52
scale : {
49
53
minReplicas : 0
50
54
}
51
- dapr : {
52
- enabled : true
53
- appPort : containerPort
54
- appId : containerAppName
55
- }
56
55
}
57
56
}
58
57
}
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ param location string
2
2
param environmentName string
3
3
param logAnalyticsWorkspaceName string = 'logs-${environmentName }'
4
4
5
-
6
5
resource logAnalyticsWorkspace 'Microsoft.OperationalInsights/workspaces@2020-03-01-preview' = {
7
6
name : logAnalyticsWorkspaceName
8
7
location : location
@@ -17,12 +16,10 @@ resource logAnalyticsWorkspace 'Microsoft.OperationalInsights/workspaces@2020-03
17
16
})
18
17
}
19
18
20
- resource environment 'Microsoft.Web/kubeEnvironments@2021-02 -01' = {
19
+ resource environment 'Microsoft.App/managedEnvironments@2022-01 -01-preview ' = {
21
20
name : environmentName
22
21
location : location
23
22
properties : {
24
- type : 'managed'
25
- internalLoadBalancerEnabled : false
26
23
appLogsConfiguration : {
27
24
destination : 'log-analytics'
28
25
logAnalyticsConfiguration : {
Original file line number Diff line number Diff line change @@ -12,19 +12,18 @@ param environmentVars array = []
12
12
@secure ()
13
13
param containerRegistryPassword string
14
14
15
- resource containerApp 'Microsoft.Web /containerApps@2021-03 -01' = {
15
+ resource containerApp 'Microsoft.App /containerApps@2022-01 -01-preview ' = {
16
16
name : containerAppName
17
- kind : 'containerapp'
18
17
location : location
19
18
properties : {
20
- kubeEnvironmentId : environmentId
19
+ managedEnvironmentId : environmentId
21
20
configuration : {
22
21
secrets : [
23
22
{
24
23
name : 'registry-password'
25
24
value : containerRegistryPassword
26
25
}
27
- ]
26
+ ]
28
27
registries : [
29
28
{
30
29
server : containerRegistry
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ param location string
2
2
param environmentName string
3
3
param logAnalyticsWorkspaceName string = 'logs-${environmentName }'
4
4
5
-
6
5
resource logAnalyticsWorkspace 'Microsoft.OperationalInsights/workspaces@2020-03-01-preview' = {
7
6
name : logAnalyticsWorkspaceName
8
7
location : location
@@ -17,12 +16,10 @@ resource logAnalyticsWorkspace 'Microsoft.OperationalInsights/workspaces@2020-03
17
16
})
18
17
}
19
18
20
- resource environment 'Microsoft.Web/kubeEnvironments@2021-02 -01' = {
19
+ resource environment 'Microsoft.App/managedEnvironments@2022-01 -01-preview ' = {
21
20
name : environmentName
22
21
location : location
23
22
properties : {
24
- type : 'managed'
25
- internalLoadBalancerEnabled : false
26
23
appLogsConfiguration : {
27
24
destination : 'log-analytics'
28
25
logAnalyticsConfiguration : {
You can’t perform that action at this time.
0 commit comments