CmdID

CmdID / az / az containerapp / az containerapp env / az containerapp env storage

az containerapp env storage set

Create or update a storage. Azure CLI reference

AzureFile storage supports account key, Azure Key Vault secret, or managed identity authentication. Before using Azure Files managed identity authentication with --azure-file-identity, assign the identity to the managed environment, enable Managed Identity for SMB on the storage account, and grant the identity the Storage File Data SMB MI Admin role (a235d3ee-5935-4cfb-8cc5-a3303ad5995e) at storage account scope.

1 example Its page in the Azure CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from the Azure CLI, each command read by CmdID

Create a storage.

az containerapp env storage set -g MyResourceGroup -n MyEnv --storage-name MyStorageName --access-mode ReadOnly --azure-file-account-key MyAccountKey --azure-file-account-name MyAccountName --azure-file-share-name MyShareNameIdentify
-gName of resource group.
-nName of the Container Apps environment.
--storage-nameName of the storage.
--access-modeAccess mode for the AzureFile storage.
--azure-file-account-keyKey of the AzureFile storage account.
--azure-file-account-nameName of the AzureFile storage account.
--azure-file-share-nameName of the share on the AzureFile storage.