Complete the code to create a container group with Azure CLI.
az container create --resource-group myResourceGroup --name mycontainer --image [1] --cpu 1 --memory 1.5
The nginx image is a common lightweight web server image used for simple container runs.
Complete the code to specify the container's restart policy as 'Never'.
az container create --resource-group myResourceGroup --name mycontainer --image nginx --restart-policy [1]The Never restart policy means the container will not restart automatically after it stops.
Fix the error in the command to expose port 80 on the container.
az container create --resource-group myResourceGroup --name mycontainer --image nginx --ports [1]Port 80 is the standard HTTP port and should be exposed for web servers like nginx.
Fill both blanks to set environment variables for the container.
az container create --resource-group myResourceGroup --name mycontainer --image nginx --environment-variables [1]=[2]
Setting ENVIRONMENT=production is a common way to configure containers for production use.
Fill all three blanks to create a container group with a volume mount.
az container create --resource-group myResourceGroup --name mycontainer --image nginx --azure-file-volume-share-name [1] --azure-file-volume-account-name [2] --azure-file-volume-account-key [3] --azure-file-volume-mount-path /data
These parameters specify the Azure File share name, storage account name, and account key needed to mount a volume in the container.