I get teh same error above as Cory, same version of BIG-IP. Here is the full error returned, at least for me.
script did not successfully complete: (can't read "advanced": no such variable
while executing
"subst $aaa_port($advanced,$::apm__ad_secure)"
invoked from within
"iapp_conf create ltm monitor ldap ${app}_ldap base \"$::apm__ad_tree\" chase-referrals yes debug no defaults-from ldap destination *:[subst $aaa_port(..."
invoked from within
"subst $aaa_monitor($::apm__ad_monitor)"
invoked from within
"iapp_conf create ltm pool ${app}_aaa [iapp_pool_members $::apm__active_directory_servers -port any -aaa_pool] load-balancing-mode "round-robin" mon..."
invoked from within
"subst $aaa_pool($multiple_ad)"
invoked from within
"iapp_conf create apm aaa active-directory ${app}_apm_aaa \{ admin-encrypted-password [expr { $credentials ? "[iapp_make_safe_password $::apm__active..."
invoked from within
"subst $substa_out"
invoked from within
"if { [info exists [set substa_in]] } {
set substa_out [subst $$substa_in]
set substa_out [subst $substa_out]
} else {
..."
("uplevel" body line 3)
invoked from within
"uplevel {
append ::substa_debug "\n$substa_in"
if { [info exists [set substa_in]] } {
set substa_out [subst $$substa_in]
..."
(procedure "iapp_substa" line 9)
invoked from within
"iapp_substa aaa_server($do_new_aaa)"
(procedure "configure_apm" line 40)
invoked from within
"configure_apm"
(procedure "configure_adfs_deployment" line 230)
invoked from within
"configure_adfs_deployment" line:557)