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 *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Click Here!
July 2024
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
293031  
Scroll to Top