

Obtain the web app's fully qualified domain name (FQDN) with the az container show command: az container show -resource-group $ACI_PERS_RESOURCE_GROUP \

Once the container starts up, you can use the simple web app deployed via the Microsoft aci-hellofiles image to create small text files in the Azure file share at the mount path you specified.
#Docker mount volume filewatcher detect changes update#
Update the value in the preceding command if you receive a DNS name label error message when you execute the command. The -dns-name-label value must be unique within the Azure region where you create the container instance. azure-file-volume-share-name $ACI_PERS_SHARE_NAME \ azure-file-volume-account-key $STORAGE_KEY \ azure-file-volume-account-name $ACI_PERS_STORAGE_ACCOUNT_NAME \ If you followed the previous steps, you can mount the share you created earlier by using the following command to create a container: az container create \ To mount an Azure file share as a volume in a container by using the Azure CLI, specify the share and volume mount point when you create the container with az container create. Storage account key - This value can be found using the following command: STORAGE_KEY=$(az storage account keys list -resource-group $ACI_PERS_RESOURCE_GROUP -account-name $ACI_PERS_STORAGE_ACCOUNT_NAME -query ".value" -output tsv) Share name - This value is already known (defined as acishare in the preceding script) To see the account name, type: echo $ACI_PERS_STORAGE_ACCOUNT_NAME Storage account name - If you used the preceding script, the storage account name was stored in the $ACI_PERS_STORAGE_ACCOUNT_NAME variable. To mount an Azure file share as a volume in Azure Container Instances, you need three values: the storage account name, the share name, and the storage access key. account-name $ACI_PERS_STORAGE_ACCOUNT_NAME

resource-group $ACI_PERS_RESOURCE_GROUP \ # Create the storage account with the parameters # Change these four parameters as neededĪCI_PERS_STORAGE_ACCOUNT_NAME=mystorageaccount$RANDOM The storage account name must be globally unique, so the script adds a random value to the base string. Run the following script to create a storage account to host the file share, and the share itself. Create an Azure file shareīefore using an Azure file share with Azure Container Instances, you must create it. If you are deploying container groups into an Azure Virtual Network, you must add a service endpoint to your Azure Storage Account.
