forked from oh-sless-t2/ice-cream-infrastructure
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Gordonby
committed
Dec 24, 2021
1 parent
a08e629
commit 1696867
Showing
6 changed files
with
51 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
param apimName string | ||
param redisName string | ||
|
||
resource apim 'Microsoft.ApiManagement/service@2021-04-01-preview' existing = { | ||
name: apimName | ||
} | ||
|
||
resource redis 'Microsoft.Cache/redis@2020-12-01' existing = { | ||
name: redisName | ||
} | ||
|
||
var redisconnectionstring = '${redis.properties.hostName}:${redis.properties.sslPort},password=${redis.listKeys().primaryKey},ssl=True,abortConnect=False' | ||
|
||
resource apimcache 'Microsoft.ApiManagement/service/caches@2021-04-01-preview' = { | ||
name: resourceGroup().location | ||
parent: apim | ||
properties: { | ||
useFromLocation: resourceGroup().location | ||
description: redis.properties.hostName | ||
resourceId: '${environment().resourceManager}${substring(redis.id,1)}' | ||
connectionString: redisconnectionstring | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters