Is the “Param” section of the -endpoint parameter able to support multiple params? So far I haven’t been able to get it to work. I’m basically doing something that looks like this.
$Auth_Policy_Name = “MyName”
New-UDAuthorizationPolicy -Name $Auth_Policy_Name -Endpoint {
Param (
$User,
$Auth_Policy_name )
Write-LogMessage -Message “User is $($User) and Auth_Policy is $($Auth_Policy)” }
I’m finding in this oversimplified example, that $auth_policy AND $User don’t seem to be making it into the endpoint. The log message is empty. Do i need to do something like $ArgumentList[0]?