Instructions below are relative to the .\TemplateValidator folder of the AzureStack-Tools repo. To Validate Compute Capabilities such as Images, Extensions & Sizes available in the CloudCapabilities.json add -IncludeComputeCapabilities Notes: The following are currently not supported
- StorageCapabilities(ex:Sku)
- Nested Templates
Import-Module ".\AzureRM.TemplateValidator.psm1"Create CloudCapabilities.json by using Get-AzureRMCloudCapabilities tool AzureStack-Tools repo/CloudCapabilities. or use the provided sample AzureStackCapabilities_TP2.json in this folder For Azure/AzureStack quickstart templates, git clone from below links https://github.com/Azure/AzureStack-QuickStart-Templates/ https://github.com/Azure/Azure-QuickStart-Templates/
$TemplatePath = "<Provide Template(s) Path>"
$CapabilitiesPath = ".\AzureStackCapabilities_TP2.json"
Test-AzureRMTemplate -TemplatePath $TemplatePath -CapabilitiesPath $CapabilitiesPath -Verbose #-IncludeComputeCapabilities