How To Set A Public IP Address On An Azure Virtual Machine With PowerShell

If you want to connect to an Azure VM over the Internet it’s got to have a public IP address. You could use the Azure portal but who does that anyway? Instead, Adam shows us how cool he is that he can use the AzureRm PowerShell module using the New-AzureRmPublicIpAddress cmdlet with the Set-AzureRmNetworkInterface cmdlet to assign a public IP to an Azure VM.