Question 110
A Bicep template uses an existing resource declaration for a Key Vault in subscription A but the deployment runs in subscription B. Deployment cannot resolve the vault because the scope is assumed incorrectly. What must change?
Explanation
Correct Answer
Existing-resource references resolve resources at their declared scope. Cross-scope references must explicitly target the correct subscription/resource group where supported.
Incorrect Answers
RBAC may permit reads but does not direct Bicep to the correct subscription and resource-group scope for the referenced vault.
An existing-resource declaration resolves according to an explicit or default scope. Cross-subscription resources require the correct scope.
Changing the resource name input does not change which Azure subscription contains the referenced Key Vault.