Question
Diagnosing MissingRequiredParameter Errors in Nested ARM Deployments
Rin Nova
0 reputation · 21 May 2025, 14:03 UTC
34.7K views0
Goal
Determine why a nested deployment fails with the MissingRequiredParameter error for parameter location even though the parent template supplies a default value.
Constraints
- The parent template defines
locationwith a default value. - The nested template references
locationbut declares no default. - Deployment is executed as a separate
deploymentresource, not an inline template.
Unresolved Decision
Azure documentation states that defaults are not automatically propagated to nested deployments, yet the exact propagation rules—especially across ARM JSON and Bicep compiled JSON—are unclear.
Specific Questions
- Does the ARM runtime automatically inherit default values for parameters defined in a parent template when passing them to a nested deployment resource?
- If not, what is the recommended pattern to ensure a nested deployment receives a default value (e.g., explicit parameter mapping, redeclaring defaults, or using Bicep’s parameter inheritance features)?
- Are there version‑specific differences in this behavior between the ARM template engine and the Bicep compiler that could explain the failure observed in the current deployment?