Azure VM – Creating Private IP Addresses

creatingvmipaddress

$vnet = Get-AzureRmVirtualNetwork -ResourceGroupName AdatumRG -Name AdatumVNet
$subnet = $vnet.Subnets[0].Id
$nic = New-AzureRmNetworkInterface -Name AdatumNIC -ResourceGroupName AdatumRG -Location
centralus -SubnetId $vnet.Subnets[0].Id -PrivateIpAddress 192.168.0.10
Add-AzureRmVMNetworkInterface -VM $vm -Id $nic.Id
Set-AzureRmNetworkInterface -NetworkInterface $nic

Leave a Reply

Your email address will not be published. Required fields are marked *

86 + = 89