'ARM Template Functions with PowerShell TemplateUri TemplateParameterObject
When I use an ARM template and define a parameter _artifactsLocation with a default value of "[deployment().properties.templateLink.uri]", it uses the ARM Template deployment function and works well. If I define a hashset and send in the same string, the string gets evaluated as a literal instead of running the template function.
Is there any way around that? (Any way to use a template function with a PowerShell parameter?) Thank you!
$templateParameters = @{
_artifactsLocation = "[deployment().properties.templateLink.uri]"
_artifactsLocationSasToken = ""
}
New-AzResourceGroupDeployment -ResourceGroupName $resourceGroupName -TemplateUri $templateURI -TemplateParameterObject $templateParameters -Verbose
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
