Skip to content

Commit 92f0407

Browse files
committed
Add Redis cache resource to main.bicep
1 parent 4192f07 commit 92f0407

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/InfrastructureAsCode/main.bicep

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,21 @@ var imageName = 'techexcel/dotnetcoreapp'
1515
var startupCommand = ''
1616

1717

18+
var redisCacheName = '${uniqueString(resourceGroup().id)}-mpnp-redis'
19+
20+
resource redisCache 'Microsoft.Cache/Redis@2021-06-01' = {
21+
name: redisCacheName
22+
location: location
23+
properties: {
24+
sku: {
25+
name: 'Basic'
26+
family: 'C'
27+
capacity: 0
28+
}
29+
enableNonSslPort: false
30+
}
31+
}
32+
1833
resource logAnalyticsWorkspace 'Microsoft.OperationalInsights/workspaces@2021-12-01-preview' = {
1934
name: logAnalyticsName
2035
location: location

0 commit comments

Comments
 (0)