Azure automation powershell, not work int input parameter -
use azure automation,
, have code this
workflow report { param ( [parameter(mandatory=$true)] [string] $name, [parameter(mandatory=$true)] [int] $mycount ) inlinescript { write-verbose "name $name" write-verbose "count $mycount" } }
in test pane (on https://portal.azure.com) set next value parameters: "test" , 2
in console see next result:
name test count
$name working
$mycount not showed
according documentation i'm doing right
https://technet.microsoft.com/en-us/library/hh847743.aspx
how can use int input parameter?
according post https://technet.microsoft.com/en-us/library/jj574197.aspx
in inlinescript don't have access main variables
main variable need use $using
write-verbose "count $using:mycount"
Comments
Post a Comment