Authenticating to the LoadMaster
- Last Updated: May 14, 2025
- 1 minute read
- LoadMaster
- LoadMaster GA
- Documentation
To run PowerShell API commands, you need to establish authentication with the LoadMaster. There are two ways to establish authentication:
- Using credentials; a LoadMaster username (Credential) and password
- Using certificate-based authentication
Whichever option you use, you can either specify the parameters when running individual commands, or using the Initialize-LmConnectionParameters command.
You can also globally set the LoadMaster IP address that you are directing the commands to by using the Initialize-LmConnectionParameters command, for example:
Initialize-LmConnectionParameters -Address 10.11.0.60 -LBPort 443 -Credential bal -Verbose
You can either enter a username for the load balancer or provide a PSCredential object. When you enter a username, a prompt appears asking for the password. You can override the globally-provided LoadBalancer address and User Name on each individual command by using the LoadBalancer or Credential parameter within the command.
Similarly, you can specify the details to use certificate-based authentication using the Initialize-LmConnectionParameters command. For further information on the various steps involved to configure certificate-based authentication, refer to the below section.