An administrator needs to deploy a containerized application to Azure Container Instances (ACI) to run a one-time data migration script. The application will perform the migration and then exit. The container group must be deployed into an Azure virtual network to access a private database. Which configuration should the administrator use for the deployment?
- ASet the restart policy to Always, and deploy the container group to a subnet delegated to Microsoft.ContainerInstance/containerGroups.
- BSet the restart policy to Never, and assign the Storage Blob Data Contributor role to the target subnet.
- Set the restart policy to Never, and deploy the container group to a subnet delegated to Microsoft.ContainerInstance/containerGroups.Cevap
- DSet the restart policy to Never, and link the target virtual network to an Azure Private DNS Zone.
Cevap
Set the restart policy to Never, and deploy the container group to a subnet delegated to Microsoft.ContainerInstance/containerGroups.
For a one-time task that executes a script and exits, the restart policy must be set to Never (or OnFailure) to prevent the container from restarting continuously. Additionally, deploying Azure Container Instances (ACI) into an Azure virtual network requires deploying the container group into a dedicated subnet delegated to Microsoft.ContainerInstance/containerGroups.
Adım Adım Çözüm
Anahtar Kavram
Azure Container Instances virtual network deployment and restart policy configuration
Tahmini Süre:1m 30s