Created
May 14, 2026 17:31
-
-
Save andrewmatveychuk/eb0bf7194f2f2a78df8d296c670a6d06 to your computer and use it in GitHub Desktop.
Configuring Azure File shares as external storage for Container App Environments
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 | |
| shareName: fileShareName | |
| } */ | |
| // NFS file share to use with Linux containers | |
| nfsAzureFile: { | |
| accessMode: 'ReadWrite' | |
| shareName: '/${existingStorageAccount.name}/${fileShareName}' | |
| server: parseUri(existingStorageAccount.properties.primaryEndpoints.file).host | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment