Creating Application Load Balancer

To find all the related cmdlets for working with Application Load Balancer, you can use the following command:

PS C:\> Get-Command *ELB* |Where-Object {$_.Name -Like "*ELB2*"}

This will list all the cmdlets for Application Load Balancer. Note that if you run the preceding cmdlet without a filter, you will notice that there are cmdlets without ELB2 in them. Any cmdlet without ELB2 in it is meant for Classic Load Balancer.

To get a list of existing Application Load Balancers, run the following command:

PS C:\> Get-ELB2LoadBalancer

To obtain the Application Load Balancer limits on the account, you can use the following cmdlet. If the limit needs to be lifted, you have to contact AWS:

PS C:\> Get-ELB2AccountLimit ...

Get AWS Tools for PowerShell 6 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.