My variable is the following in powershell:
$lcr=@{"tierToCool"=@{"daysAfterModificationGreaterThan"=1};"tierToArchive"=@{"daysAfterModificationGreaterThan"=2}}
Then when I run the template using an az cli command to pass the variable as an object into my arm template:
az deployment group create --subscription <hidden> --resource-group <hidden> --template-file <hidden> --parameters lcr=$lcr
I get the following error:
Failed to parse JSON: System.Collections.Hashtable
Error Detail: Expecting value: line 1 column 1 (char 0)
Is there something wrong with the way I'm passing the parameter into the template or the way I'm formatting it? Any help is greatly appreciated.