Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save andrewmatveychuk/eb0bf7194f2f2a78df8d296c670a6d06 to your computer and use it in GitHub Desktop.

Select an option

Save andrewmatveychuk/eb0bf7194f2f2a78df8d296c670a6d06 to your computer and use it in GitHub Desktop.
Configuring Azure File shares as external storage for Container App Environments
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