Microsoft Azure Developer Associate AZ-204 Practice Question
When deploying a Linux container as a scheduled batch workload in Azure Container Instances, you want the container to terminate after it exits successfully and avoid any automatic restart. Which restart policy should you specify when you create the container group with the Azure CLI?
Azure Container Instances supports the restart policies Always (default), OnFailure, and Never. Always restarts the container regardless of exit code, and OnFailure restarts only when the exit code is non-zero. Setting the restart policy to Never prevents any automatic restart regardless of the exit code, so the container stops permanently after a successful run, which is the required behavior for a batch job. The value Manual is not a valid restart policy in Azure Container Instances.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is Azure Container Instances?
Open an interactive chat with Bash
What are restart policies in Azure Container Instances?
Open an interactive chat with Bash
How do you configure a restart policy when creating an Azure Container Instance with Azure CLI?
Open an interactive chat with Bash
Microsoft Azure Developer Associate AZ-204
Develop Azure compute solutions
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .