Initialize the LoadMaster Connection Parameters
- Last Updated: May 14, 2025
- 1 minute read
- LoadMaster
- LoadMaster GA
- Documentation
In the above examples, the required parameters, LoadBalancer and Credential, can be initialized before running the commands with the Initialize-LmConnectionParameters command. If you do this, it is not necessary to specify these parameters in each command.
For example:
lma = Initialize-LmConnectionParameters -Address $LMIP -Credential $creds$lma | Format-ListReturnCode : 200Response : Command successfully executed.Data : @{Connection=; Login=}After the initialization, for example, the command to create a vs will became:$vs = New-AdcVirtualService -VirtualService $VSIP -VSPort $VSPORT ` -VSProtocol $VSPROTOCOLif ($vs.ReturnCode -ne 200) {# ERROR: exitreturn $vs}