■ 부하 분산 장치에 가상 머신 추가하기

------------------------------------------------------------------------------------------------------------------------

 

$nic = Get-AzNetworkInterface -ResourceGroupName TestResourceGroup -Name TestVM2

                                                 -----------------       -------

                                                 리소스 그룹명           가상 머신명

 

$loadBalancer = Get-AzLoadBalancer -ResourceGroupName TestResourceGroup -Name TestLoadBalancer

                                                      -----------------       ----------------

                                                      리소스 그룹명           부하 분산 장치명

 

$nic.IpConfigurations[0].LoadBalancerBackendAddressPools = $loadBalancer.BackendAddressPools[0]

 

Set-AzNetworkInterface -NetworkInterface $nic

 

------------------------------------------------------------------------------------------------------------------------

Posted by 사용자 icodebroker

댓글을 달아 주세요