powershell - Add-AzureInternalLoadBalancer command in "Azure Resource Manager" mode -
i'm interested achieve solution described in this post.
therefore, wanted add internal load balancer
in ms azure virtual network. created vnet in resource manager
mode , added 3 vms it, don't have access add-azureinternalloadbalancer
powershell command in arm mode.
if switch service management
mode, the problem don't see vms anymore.
how can add internal load balancer in resource manager
mode?
assume have setup ps subscription , user account.
# add load balancer cloud service wrapping vms add-azureinternalloadbalancer -servicename apptier ` -internalloadbalancername apptierplb -subnetname appsubnet ` -staticvnetipaddress 192.168.1.25 # add endpoints vms # vm1 get-azurevm -servicename apptier -name apptier01 | ` add-azureendpoint -lbsetname 'httpin' -name 'httpin' ` -defaultprobe -internalloadbalancername 'apptierplb' -protocol tcp ` -publicport 80 -localport 80 -loadbalancerdistribution sourceip | ` update-azurevm # vm2 get-azurevm -servicename apptier -name apptier02 | ` add-azureendpoint -lbsetname 'httpin' -name 'httpin' ` -defaultprobe -internalloadbalancername 'apptierplb' -protocol tcp ` -publicport 80 -localport 80 -loadbalancerdistribution sourceip | ` update-azurevm # can check distribution mode set get-azurevm –servicename apptier –name apptier01 | get-azureendpoint
related links : https://azure.microsoft.com/en-us/documentation/articles/load-balancer-internal-arm-powershell/
http://blog.kloud.com.au/2015/06/23/azure-internal-load-balancing-setting-distribution-mode/
Comments
Post a Comment