Start here! Get your feet wet with the Microsoft cloud and begin your journey to earning your Microsoft Certified: Azure Fundamentals certification!
Prepare and test your skills

Prepare and test your skills

Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
An organization is designing an Azure Resource Manager (ARM) template to automate the deployment of virtual machines and storage resources across multiple environments. The administrator needs to configure the template so that a new storage account is provisioned only when deploying to a production environment.
Which ARM template element should be used to deploy the resource only when this requirement is met?
The condition element in an Azure Resource Manager (ARM) template is a resource-level property used to control conditional deployments. It accepts an expression that evaluates dynamically to a boolean value (true or false) at runtime during template execution.
condition element to the storage account definition, the template evaluates whether the target environment equals production (e.g., "[equals(parameters('environment'), 'production')]").true, Azure Resource Manager deploys the resource. When it evaluates to false, Azure Resource Manager skips creating the resource.false and is not deployed, Azure Resource Manager automatically removes it from the required dependency graph, allowing dependent resources to proceed without failing.equals(), bool(), and if().The condition element is the built-in declarative mechanism in ARM templates specifically designed to toggle resource provisioning based on parameters or logical expressions without requiring external scripting.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.