While learning how to create VM's my session timed out and I lost my variable for the NIC, so I am trying to figure out how to add the NIC. As you can see it does not accept the NIC ID. Any thoughts?
PS Azure:\> $nicId = (Get-AzureRmNetworkInterface -ResourceGroupName "myRG" -Name "NIC1").Id
PS Azure:\> $nicID
PS Azure:\> $vm = Add-AzureRmVMNetworkInterface -VM $vm -Id $nicID
PS Azure:\> New-AzureRmVM -ResourceGroupname myRG -Location westUS -VM $vm
You must be logged in to reply to this topic.