-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
easy-init: Switch to avm (Azure Verified Modules) (#4455)
With this change, we switch easy-init's generated infrastructure to use avm (Azure Verified Modules). Since AVM allows us to express resource definitions in a more condensed form, we employ the strategy of having a single ` resources.bicep` that uses all the different modules available is employed. Notable behavioral changes introduced: **Postgres** - Server version upgraded from version 13 to version 15. - Storage size reduced from 128GB to 32GB (AVM default). **MongoDB** - Server version upgraded from 4.0 to 4.2. **Redis** - Redis is now implemented as an Azure Cache for Redis instance instead of previously as a container app image. Environment variables are also standardized: - POSTGRES_URL, MONGODB_URL, REDIS_URL all serves as the full connection string URI to the respective instances. Contributes to: Azure/azure-dev-pr#1682
- Loading branch information
1 parent
09cd9c4
commit 7511467
Showing
17 changed files
with
520 additions
and
1,928 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
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
29 changes: 29 additions & 0 deletions
29
cli/azd/resources/scaffold/base/modules/set-redis-conn.bicep
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,29 @@ | ||
param name string | ||
param keyVaultName string | ||
param passwordSecretName string | ||
param urlSecretName string | ||
|
||
resource redisConn 'Microsoft.Cache/redis@2024-03-01' existing = { | ||
name: name | ||
} | ||
|
||
resource keyVault 'Microsoft.KeyVault/vaults@2022-07-01' existing = { | ||
name: keyVaultName | ||
} | ||
|
||
resource passwordSecret 'Microsoft.KeyVault/vaults/secrets@2022-07-01' = { | ||
name: passwordSecretName | ||
parent: keyVault | ||
properties: { | ||
value: redisConn.listKeys().primaryKey | ||
} | ||
} | ||
|
||
resource urlSecret 'Microsoft.KeyVault/vaults/secrets@2022-07-01' = { | ||
name: urlSecretName | ||
parent: keyVault | ||
properties: { | ||
value: 'rediss://:${redisConn.listKeys().primaryKey}@${redisConn.properties.hostName}:${redisConn.properties.sslPort}' | ||
} | ||
} | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.