Getting an error when trying to run a pipeline.
/devops/templates/app-deployment-template.yml (Line: 50, Col: 27): Unable to convert from Array to String. Value: Array
This is the parameter in my yaml file that I'm trying to pass further down into an ARM template. At the top level, this is a string array with elements such as UKSouth, NorthEurope, etc.
parameters:
- name: locations
type: object
default: []
# other parameters
# other jobs and tasks
- task: AzureResourceManagerTemplateDeployment@3
displayName: 'Deploy Azure Core Infrastructure'
inputs:
deploymentScope: 'Resource Group'
azureResourceManagerConnection: '${{parameters.subscriptionName}}'
action: 'Create Or Update Resource Group'
resourceGroupName: '${{parameters.environmentName}}-${{parameters.resourceGroupName}}'
location: 'North Europe'
templateLocation: 'Linked artifact'
csmFile: '$(Pipeline.Workspace)/artifacts/infrastructure/appserviceplan.json'
csmParametersFile: '$(Pipeline.Workspace)/artifacts/infrastructure/appserviceplan.parameters.json'
deploymentMode: 'Incremental'
overrideParameters: '-name ${{parameters.environmentName}}-${{parameters.resourceGroupName}} -locations ${{parameters.locations}}'