Change Virtual Server Profile
Hi!,
I'm trying to change the Http profile on a group of virtual servers using the icontrol snapin for powershell, but when i keep getting errors here is my code
$http_profile = New-Object iControl.LocalLBVirtualServerVirtualServerProfile $http_profile.profile_name = $profileName $http_profile.profile_context = "PROFILE_CONTEXT_TYPE_ALL" $http_profile = (,$http_profile)
(Get-F5.iControl).LocalLBVirtualServer.add_profile($VirtualServer,$http_profile)
When i execute this code i get the following error ..
"Exception caught in LocalLB::urn:iControl:LocalLB/VirtualServer::add_profile() Exception: Common::OperationFailed primary_error_code : 17236119 (0x01070097) secondary_error_code : 0 error_string : 01070097:3: Virtual server www.devstage1.test.com_https lists duplicate profiles."
Does anyone have any idea? or knows the correct way to perform this task?
Thanks,
Horacio