This file contains hidden or 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
| // ... | |
| var containerVariables = [ | |
| // ... | |
| { | |
| name: 'database__client' | |
| value: 'mysql' | |
| } |
This file contains hidden or 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
| resource frontDoorOrigin 'Microsoft.Cdn/profiles/originGroups/origins@2025-09-01-preview' = { | |
| name: frontDoorOriginName | |
| parent: frontDoorOriginGroup | |
| properties: { | |
| hostName: frontDoorOriginHostName | |
| httpPort: 80 | |
| httpsPort: 443 | |
| originHostHeader: frontDoorOriginHostName | |
| priority: 1 | |
| weight: 1000 |
This file contains hidden or 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
| // ... | |
| containerSecrets: [ | |
| { | |
| name: 'database-password' // This should be lower case alphanumeric characters, '-', and must start and end with an alphanumeric character | |
| keyVaultUrl: keyVault.outputs.secretUri // Your secret URI | |
| identity: managedIdentity.outputs.id // The identity to use to access the secret | |
| } | |
| ] |
This file contains hidden or 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
| // ... | |
| containerVolumes: [ | |
| { | |
| name: ghostContentFileShareName // A folder name in your file share to use | |
| storageName: containerAppEnvironmentStorageName | |
| storageType: 'nfsAzureFile' // This must be the same type as the Azure File share you are connecting to | |
| } | |
| ] | |
| containerVolumeMounts: [ |
This file contains hidden or 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
| var containerProbes = [ | |
| { | |
| type: 'Liveness' | |
| httpGet: { // There are different types of probes with different configuration parameters | |
| path: '/' | |
| port: containerPort | |
| } | |
| initialDelaySeconds: 10 | |
| periodSeconds: 5 | |
| } |
This file contains hidden or 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
| resource containerApp 'Microsoft.App/containerApps@2026-01-01' = { | |
| name: containerAppName | |
| location: location | |
| identity: { | |
| type: 'UserAssigned' | |
| userAssignedIdentities: { | |
| '${managedIdentityId}': {} | |
| } | |
| } | |
| properties: { |
This file contains hidden or 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
| resource environmentStorage 'Microsoft.App/managedEnvironments/storages@2026-01-01' = { | |
| parent: containerEnvironment | |
| name: containerAppEnvironmentStorageName | |
| properties: { | |
| // SMB file share as an example | |
| /* azureFile: { | |
| accessMode: 'ReadWrite' | |
| accountName: storageAccountName | |
| accountKey: existingStorageAccount.listKeys().keys[0].value |
This file contains hidden or 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
| resource containerEnvironment 'Microsoft.App/managedEnvironments@2026-01-01' = { | |
| name: containerAppEnvironmentName | |
| location: location | |
| properties: { | |
| appLogsConfiguration: { | |
| destination: 'log-analytics' | |
| logAnalyticsConfiguration: { | |
| customerId: existingWorkspace.properties.customerId | |
| sharedKey: existingWorkspace.listKeys().primarySharedKey | |
| } |
This file contains hidden or 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
| extension radius | |
| extension radiusResources | |
| @description('The Radius Application ID. Injected automatically by the rad CLI.') | |
| param application string | |
| @description('The env ID of your Radius Environment. Set automatically by the rad CLI.') | |
| param environment string | |
| @description('Tag to pull for the WordPress container image.') |
This file contains hidden or 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
| @description('Information about what resource is calling this Recipe. Generated by Radius.') | |
| param context object | |
| @description('MySQL database name') | |
| param database string = context.application.name | |
| @description('MySQL username') | |
| param user string = '${context.application.name}-user' | |
| @description('MySQL password') |
NewerOlder