I am trying to create an ARM template that creates Application Gateway and uploads dynamic number of SSL certs with passwords. Creating App Gateway is not a big problem, but I am stuck at passing dynamic number of SSL certificates with passwords from Powershell to ARM template.
The Powershell is setup to send in an array of [0..n] certificates paired with passwords in securestring to ARM template and parameter file. The resource definition for App Gateway requires password for each SSL certificate to be a securestring, but there doesn't seem to be a way to define parameter as either an array or object and define elements/attributes to be of type securestring.
There was an example for VM password passed via Key Vaults where you upload the password/certs to Key Vault via Powershell, then use "reference" for password value at the resource definition. However, this does not seem to work for SSL certs at Application Gateway and I run into error "After parsing a value an unexpected character was encountered: {" right after "password:"
Does anyone know a way to pass a dynamic number of securestrings to ARM template, or upload a dynamic number of SSL certs & passwords to Application Gateway via ARM template?