File tree Expand file tree Collapse file tree 1 file changed +18
-12
lines changed Expand file tree Collapse file tree 1 file changed +18
-12
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,25 @@ var registryName = '${uniqueString(resourceGroup().id)}mpnpreg'
13
13
var registrySku = 'Standard'
14
14
var imageName = 'techexcel/dotnetcoreapp'
15
15
var startupCommand = ''
16
+ var redisCacheName = '${uniqueString (resourceGroup ().id )}-mpnp-redis'
17
+ var redisCacheSku = 'Basic'
16
18
19
+ resource redisCache 'Microsoft.Cache/Redis@2023-08-01' = {
20
+ name : redisCacheName
21
+ location : location
22
+ properties : {
23
+ sku : {
24
+ name : redisCacheSku
25
+ family : 'C'
26
+ capacity : 0
27
+ }
28
+ enableNonSslPort : false
29
+ minimumTlsVersion : '1.2'
30
+ redisConfiguration : {
31
+ 'maxmemory-policy' : 'volatile-lru'
32
+ }
33
+ }
34
+ }
17
35
18
36
resource logAnalyticsWorkspace 'Microsoft.OperationalInsights/workspaces@2021-12-01-preview' = {
19
37
name : logAnalyticsName
@@ -29,18 +47,6 @@ resource logAnalyticsWorkspace 'Microsoft.OperationalInsights/workspaces@2021-12
29
47
}
30
48
}
31
49
32
- resource redisCache 'Microsoft.Cache/Redis@2020-06-01' = {
33
- name : 'myRedisCachefw' // Replace with your Redis cache name
34
- location : resourceGroup ().location
35
- sku : {
36
- name : 'Basic'
37
- family : 'C'
38
- capacity : 0
39
- }
40
- properties : {
41
- enableNonSslPort : false
42
- }
43
- }
44
50
45
51
46
52
resource appInsights 'Microsoft.Insights/components@2020-02-02-preview' = {
You can’t perform that action at this time.
0 commit comments