0

I am deploying an ARM template via Powershell and using the following commands. The parameter in the ARM template is of type array and is named "backendIPAddresses". The below doesnt work. How can I pass parameters of type array to the template using -TemplateParameterObject

$Parameters = @{
    "backendIPAddresses" = "10.20.4.7", "10.20.4.8"
}

New-AzureRmResourceGroupDeployment -ResourceGroupName "resourcegroup" -TemplateUri $rg_templateuri  -TemplateParameterObject $Parameters

1 Answer 1

1

You need to define your backendIPAddresses property in your object as an array.

$Parameters = @{
    backendIPAddresses = @("10.20.4.7", "10.20.4.8")
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.