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

When you work with Application Load Balancer, you do not add target EC2 instances directly on the ALB, as we did for Classic Load Balancer. Before you create the Application Load Balancer, you first create Target Group
and add Target
(EC2 instances...