I've been using Azure CLI to execute powershell scripts inside a vm, even using string parameters. But when the scripts contains a boolean parameter to add, the azure invoke command doesn't pass it to to the script execution. Anyone has succeded to find the correct syntax to pass boolean type parameters with Azure CLI Invoke RunPowerShellScript?
I have tried the following combinations but didn't work:
az vm run-command invoke -g <resource group> -n <vm name> --command-id RunPowerShellScript --scripts "@....\Desktop\write-host.ps1"...
--parameters boolean1=$true
--parameters boolean1=True
--parameters "-boolean1 $True"
--parameters "-boolean1 True"
--parameters "boolean1 $True"
--parameters "boolean1 True"
The microsoft documentation doesn't have any information related to passing boolean parameters.
I've put the same question in here that could provide some context to my problem.