Validating Azure Stack Integrated System Deployment for Azure Resource Manager Template | Microsoft Exam AZ-600

Which PowerShell cmdlet to use before running Test-AzureRMTemplate?

Question

Your company has an Azure Stack Integrated System having SQL Server Resource Provider.

There is an Azure Resource Manager template titled “TemplateA”

Your manager asks you to validate if TemplateA can be deployed to the integrated system.

Which PowerShell cmdlet would you run before running Test-AzureRMTemplate?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D. E.

Correct Answer: A

Before running Test-AzureRMTemplate cmdlet to validate the template, there is a need to make the cloud capabilities file which is possible through Get-AzureRMCloudCapability cmdlet.

Option A is correct.

To validate a template, it is necessary to first build a cloud capabilities file and then run the validation tool.Get-AzureRMCloudCapability is the cmdlet that is used to make the cloud capabilities file.

Option B is incorrect.

There is no cmdlet like Get-ValidateTemplate.

Option C is incorrect.

Get-AzureRMTemplate is an invalid cmdlet.

Option D is incorrect.

There is no cmdlet like Get-AzureRMCloudvalidate.

Option E is incorrect.

Get-RMSTemplate cmdlet is used to retrieve a list of templates from Azure RMS or AD RMS.

To know more about validating templates, please visit the below-given link:

The appropriate PowerShell cmdlet to validate if an Azure Resource Manager template can be deployed to an Azure Stack Integrated System having SQL Server Resource Provider is "Get-AzureRMTemplate". Therefore, the correct option is C.

Explanation:

  • A. Get-AzureRMCloudCapability: This cmdlet is used to get the capabilities of the Azure Stack cloud. It does not validate templates.
  • B. Get-ValidateTemplate: This cmdlet does not exist in Azure PowerShell. It is not a valid cmdlet.
  • C. Get-AzureRMTemplate: This cmdlet retrieves an Azure Resource Manager template from a local file or URL. It validates the template against Azure Resource Manager schema and returns errors if any. It is used to validate if a template can be deployed to an Azure Stack Integrated System having SQL Server Resource Provider.
  • D. Get-AzureRMCloudvalidate: This cmdlet does not exist in Azure PowerShell. It is not a valid cmdlet.
  • E. Get-RMSTemplate: This cmdlet is used to retrieve a Resource Manager template from Azure Stack Hub, validate the template, and return the template object. It is not the appropriate cmdlet to validate if a template can be deployed to an Azure Stack Integrated System having SQL Server Resource Provider.