Static IP and Azure Resource Manager

Static IP and Azure Resource Manager

If you deployed a VM using the new Resource Manager mode in Azure and need to find the IP and if it is static you may have ran across the “Get-AzureVM” command as an option to retrieve IP information.  This command is for “Clasic” mode and won’t work in Resource Manager mode.

To get IP information including the internal IP and if it is set dynamic or static, use this command:

Get-AzureRmNetworkInterface -name <NIC_Name> -ResourceGroupName <NIC_ResourceGroup>

Untitled picture

Notice that this does not specify the VM Name, it specifies the NIC attached to the VM.  The output will give you the IP address and indicate if it is static or dynamic.

Leave a Comment

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

December 2024
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
3031  
Scroll to Top