Reading Time: < 1 minute

You can enable IP Forwarding on an Azure VM (ASM), with the following command.

$vmname = "MyVM"
$servicename = "MyCloudService"
$vm = Get-AzureVM -ServiceName $servicename -Name $vmname

Set-AzureIPForwarding -ServiceName $ServiceName -VM $VM -Enable

 

Share This