Azure / Azure/azure-quickstart-templates
Can't use variable to specify dependsOn
- Dominant language
- Bicep
- Stars
- 14.9k
- Forks
- 16.2k
- Avg merge
- 6d 21h
- Merged PRs (30d)
- 6
Description
If you put an array of strings into a variable, and then try to use that variable for dependsOn you get an error stating it can't convert the value to a System.String[]
```
New-AzureRmResourceGroupDeployment : 12:02:37 AM - Error: Code=InvalidRequestContent; Message=The request
content was invalid and could not be deserialized: 'Error converting value "[variables('dependsOnVar')]" to
type 'System.String[]'. Path 'properties.template.resources[1].dependsOn', line 68, position 53.'.
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the Azure Resource Group deployment described in the issue with an array-valued variable used for dependsOn. Check how the deployment template serializes that expression and verify completion by confirming the template is accepted without the System.String[] deserialization error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure
- Domain
- cloud
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100