-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Redis AVM's secretsExportConfiguration
param to store secrets in Key Vault
#4719
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -389,28 +389,23 @@ module {{bicepName .Name}} 'br/public:avm/res/app/container-app:0.8.0' = { | |
{{- end}} | ||
|
||
{{- if .DbRedis}} | ||
module redis 'br/public:avm/res/cache/redis:0.3.2' = { | ||
module redis 'br/public:avm/res/cache/redis:0.9.0' = { | ||
name: 'redisDeployment' | ||
params: { | ||
// Required parameters | ||
name: '${abbrs.cacheRedis}${resourceToken}' | ||
// Non-required parameters | ||
location: location | ||
skuName: 'Basic' | ||
{{- if .Services}} | ||
secretsExportConfiguration: { | ||
keyVaultResourceId: keyVault.outputs.resourceId | ||
primaryAccessKeyName: 'REDIS-PASSWORD' | ||
primaryConnectionStringName: 'REDIS-URL' | ||
Comment on lines
+403
to
+404
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are these There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
} | ||
{{- end}} | ||
} | ||
} | ||
|
||
{{- if .Services}} | ||
module redisConn './modules/set-redis-conn.bicep' = { | ||
name: 'redisConn' | ||
params: { | ||
name: redis.outputs.name | ||
passwordSecretName: 'REDIS-PASSWORD' | ||
urlSecretName: 'REDIS-URL' | ||
keyVaultName: keyVault.outputs.name | ||
} | ||
} | ||
{{- end}} | ||
{{- end}} | ||
|
||
{{- if .Services}} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have a process yet for when/how we upgrade to new versions of AVM modules?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a very good question. Do you have any suggestions? And if there's a need for something solid to be in-place today?
In general, it feels not too different to me than when we update
api-version
fħr any Azure resources, which boils down to when a version upgrade is required for a specific feature. Currently, this is mostly hidden away from the user so it wouldn't matter too much.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure about this, @weikanglim do you know?