nested/linked templates must use a parameter for the baseUri
- Dominant language
- PowerShell
- Stars
- 468
- Forks
- 208
- PR merge metrics
- No merged PRs in 30d
Description
https://github.com/Azure/azure-quickstart-templates/tree/master/101-automation-configuration
For any deployments resource with a templateLink.uri property, the property value must contain a parameter for the base uri
1) check that the property value of the templateLink.uri property does not *start with* concat (it should be the uri() function).
2) the expression for the property value, that contains uri() must use a parameter as the baseUri param in the function
The sample above, is a passing test (it's done correctly)
"provisionConfigurationURL": "[uri(parameters('_artifactsLocation'), concat('nested/provisionConfiguration.json', parameters('_artifactsLocationSasToken')))]",
{
"name": "provisionConfiguration",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2018-02-01",
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "[variables('provisionConfigurationURL')]",
"contentVersion": "1.0.0.0"
},
This one should fail: https://github.com/Azure/azure-quickstart-templates/tree/master/201-nsg-add-to-existing-subnet
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.