Question

Difficulty: EasyRun Containerized Solutions using Azure Container Instances

You need to deploy a container to Azure Container Instances (ACI). The container must mount a persistent volume to store application logs. You decide to use an Azure Files share for the volume. Which three actions should you perform in sequence to deploy the container? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.

  1. 1Create an Azure Storage account and a file share.
  2. 2Retrieve the storage account access key by running the az storage account keys list command.
  3. 3Deploy the container group by running the az container create command and specifying the volume parameters.

Answer

Create an Azure Storage account and file share, retrieve the storage account access key, and then run the az container create command specifying the volume parameters.
To mount an Azure Files share to a container in Azure Container Instances, you must first create the storage account and the file share. Next, you retrieve the storage account key, which is required by ACI for authentication. Finally, you execute the deployment using the az container create command, passing the file share name, storage account name, storage account key, and the mount path.

Step-by-Step Solution

1
Create storage resources
An Azure Storage account and a file share are created.
Before mounting an Azure Files share in ACI, the storage account and file share must exist.
2
Retrieve access key
The storage account access key is retrieved.
ACI requires the storage account access key to authenticate and mount the file share.
3
Deploy the container group
The container group is deployed with the file share mounted.
Running the az container create command with the appropriate volume parameters mounts the file share to the container.

Key Concept

Mounting persistent storage to Azure Container Instances using Azure Files
Rate this question