Azure Automation Update Management Boolean Value is Broken

Leo D'Arcy 1 Reputation point

Within Azure Automation Update Management I have a script which requires a boolean value.


As you can see this was working on the 14/05/2020


However when attempting to rerun the same script with no changes this morning I was faced with failure. It appears that a change has been made to wrap all variables as strings which breaks the Boolean input.




Is this a supported senario?

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
814 questions
{count} votes

1 answer

Sort by: Most helpful
  1. bharathn-msft 4,976 Reputation points Microsoft Employee

    @Leo D'Arcy - Create script which accepts string as input as work around and see if it works.

    For Example:

    Param( [Parameter(Mandatory=$false,HelpMessage="Enter the value of what if ")] [String]$WhatIf = "False" ) if($WhatIf -eq "True"){ $NewWhatIf = $True }else{ $NewWhatIf = $False }  
    Write-Output $NewWhatIf.GetType()  
    Write-Output $NewWhatIf  

    Hope this information helps, please revert back if you have any further queries. Thank you.

    0 comments No comments