You can create a Virtual Service using a template by using the New-AdcVirtualService command. An example command with output is provided below. To retrieve the name of the template (which is used as the value for the Template parameter), run the Get-Template command.

$newvs = New-AdcVirtualService -VirtualService 10.154.11.125 -VSPort 80 -VSProtocol tcp -Template "Dynamics CRM HTTP"
 
 
$getvs = Get-AdcVirtualService -VirtualService 10.154.11.125 -VSPort 80 -VSProtocol tcp
 
 
$getvs | Format-List
 
 
ReturnCode : 200
Response   : Command successfully executed.
Data       : @{VS=}
 
$getvs.Data
 
VS
--
@{Status=Down; Index=6; VSAddress=10.154.11.125; VSPort=80; Layer=7; NickName=Dynamics CRM HTTP; Enable=Y; SSLReverse=N; SSLReencrypt=N; Intercept=N; InterceptOpts=; AlertThreshold=0; Tran...
 
 
$getvs.Data.VS
 
Status                : Down
Index                 : 6
VSAddress             : 10.154.11.125
VSPort                : 80
Layer                 : 7
NickName              : Dynamics CRM HTTP
Enable                : Y
SSLReverse            : N
SSLReencrypt          : N
Intercept             : N
InterceptOpts         : @{Opt=System.Object[]}
AlertThreshold        : 0
Transactionlimit      : 0
Transparent           : N
SubnetOriginating     : Y
ServerInit            : 0
StartTLSMode          : 0
Idletime              : 660
Cache                 : N
Compress              : N
Verify                : 0
UseforSnat            : N
ForceL4               : N
ForceL7               : Y
MultiConnect          : N
ClientCert            : 0
SecurityHeaderOptions : 0
ErrorCode             : 0
CheckUrl              : /
CheckUse1.1           : N
MatchLen              : 0
CheckUseGet           : 0
SSLRewrite            : 0
VStype                : http
FollowVSID            : 0
Protocol              : tcp
Schedule              : lc
CheckType             : http
Persist               : super
PersistTimeout        : 3600
CheckPort             : 0
NRules                : 0
NRequestRules         : 0
NResponseRules        : 0
NMatchBodyRules       : 0
NPreProcessRules      : 0
EspEnabled            : N
InputAuthMode         : 0
OutputAuthMode        : 0
MasterVS              : 0
MasterVSID            : 0
IsTransparent         : 2
AddVia                : 0
QoS                   : 0
TlsType               : 0
NeedHostName          : N
OCSPVerify            : N
AllowHTTP2            : N
EnhancedHealthChecks  : N
RsMinimum             : 0
NumberOfRSs           : 0