
Answer-first summary for fast verification
Answer: Specify the target resource group using the appropriate parameter., Choose the deployment mode that deletes untemplated existing resources.
To achieve the deployment requirements, you need to use the '-ResourceGroupName' parameter to specify the target resource group (Option A). Additionally, selecting the 'Complete' deployment mode ensures that Resource Manager deletes resources not specified in the template, thus meeting the requirement to remove all existing resources in RG1 before deploying the new ones (Option B).
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
In an Azure subscription with a resource group RG1, how can you deploy new resources using an ARM template while ensuring all existing resources in RG1 are removed prior to the deployment?
A
Specify the target resource group using the appropriate parameter.
B
Choose the deployment mode that deletes untemplated existing resources.
C
Define the new resources in the ARM template.
D
Run the deployment with the necessary parameters to enact the changes.