Powershell REST security-log-profiles config
I'm writing a PowerShell script utilizing Joel's REST modules. I am successfully building the nodes, the pools, the VIPS, and all the associated profiles and policies, however I can't seem to get the security-log-profiles to configure. If I use the following
$vs = Get-VirtualServer -Name $Value.VirtualServerName
I can then see the profile by running this. echo $vs.securitylogprofiles
which returns this "/Common/Log illegal requests"
However if I clear the profile from the VIP, and re-pull the data into $vs and manipulate it as shown below, it does not write the profile to the F5.
$vs | Add-Member -Force -Name securitylogprofiles -Value "/Common/Log illegal requests" -MemberType NoteProperty
$vs | Set-VirtualServer
When set manually this is what the bigip.cnf looks like this.
security-log-profiles {
"/Common/Log illegal requests"
}
Does anyone have any ideas on how to set this from PowerShell?