Bazsi1
Apr 29, 2021Nimbostratus
APM Advanced Resource Assignment from iRule
Hi All,
I'm working on a dynamically assigned RDP solution based on this and a comment on this article but I'm completely stuck with assigning resources from iRule. I've created a simple LAB environment:
The Advanced Resource Assign contains a webtop and a RDP with user defined destination. The iRule event after this looks like this:
when ACCESS_POLICY_AGENT_EVENT {
if {[ACCESS::policy agent_id] equals "DynRDP"}
{
set RDP "/Common/RDP_1"
ACCESS::session data set session.assigned.resources.rd1 $RDP
}
}
After checking the test session's variables the variable assigned indeed but the RDP_1 resource doesn't appear. I've tried a few things like placing the iRule event before the webtop assign or remove all rdp resources and assign only one with ...resources.rd but no luck.
I'm running on 15.1.3 at the moment.
Can you please guys point me to the right direction?