Forum Discussion
Jalees_Ahmed_19
Nimbostratus
Hi Joel,
I tried to set the context to Client SSL profile. But, it doesn't seem to work. Could you please take a look at the below code once?:
If ($profiles){
$profile1 = New-Object -TypeName iControl.LocalLBVirtualServerVirtualServerProfile
$profile1.profile_context = "PROFILE_CONTEXT_TYPE_CLIENT"
$profile1.profile_name = $vip
(Get-F5.iControl).LocalLBVirtualServer.get_profile($profile1.profile_name)
write-output "Virtual Server: $Vip"
Write-Output "Profiles: `r`n " + $profiles
}
Joel_Newton_449
Jan 25, 2019Cirrus
Hi, Jalees, I actually haven't used the iControl COM object in years. Are you getting a specific error with your attempts, or does it just fail silently?
I exclusively use iControlREST to automate anything related to the F5. I've created a PowerShell module to do this: https://github.com/joel74/POSH-LTM-Rest