첨부 실행 코드는 나눔고딕코딩 폰트를 사용합니다.
------------------------------------------------------------------------------------------------------------------------------------------------------
728x90
728x170

■ New-AzNetworkInterface 명령을 사용해 네트워크 인터페이스를 생성하는 방법을 보여준다.

 

▶ 실행 명령

$subnet = New-AzVirtualNetworkSubnetConfig -Name TestSubnet -AddressPrefix 10.0.0.0/24

$vnet = New-AzVirtualNetwork `
    -ResourceGroupName TestResourceGroup `
    -Location EastUS `
    -Name TestVNet `
    -AddressPrefix 10.0.0.0/16 `
    -Subnet $subnet

$publicIPAddress = New-AzPublicIpAddress `
    -ResourceGroupName TestResourceGroup `
    -Location EastUS `
    -AllocationMethod Dynamic `
    -Name TestPublicIPAddress

New-AzNetworkInterface `
    -ResourceGroupName TestResourceGroup `
    -Location EastUS `
    -Name TestVM `
    -SubnetId $vnet.Subnets[0].Id `
    -PublicIpAddressId $publicIPAddress.Id

※ TestSubnet          : 서브넷명
   TestResourceGroup   : 리소스 그룹명
   EastUS              : 지역명
   TestVNet            : 가상 네트워크명
   TestPublicIPAddress : 공인 IP 주소명
   TestVM              : 가상 머신명
728x90
그리드형(광고전용)
Posted by icodebroker
,