18 Aug’15

Azure and Office 365Setting up a static IP address to Virtual Machine in Microsoft Azure – Part 1

The blog post will show you how we can assign a static IP address to one of the Microsoft Azure Virtual Machines, using Microsoft Azure Powershell.

Assumptions: Create Virtual Machine and Virtual Network in Microsoft Azure.

Steps in Microsoft Azure


  1. Create a Virtual Machine named test and Virtual Network testing as shown below, where Internal IP Address of test is
  2. 1

  3. Subnet-1 usable address rangeof – . The new static IP Address to be provided should fall in the usable range of address space.
  4. 3


Steps in Microsoft Azure Powershell

Step 1: Run Microsoft Azure Powershell as Administration.

Step 2: Add your Microsoft Azure Account using the command Add-AzureAccount in Powershell.


As shown in figure above it will ask the account details, I have selected my work account.

Note: If at all this login control redirects to your personal account while doing in Work account, type Remove-AzureAccount in Powershell and enter and confirm the details.

  1. Once the account is added you can see that your account is added with the subscriptions present in your account. By the commands like Get-AzureVM you can see all the VM’s that are present in your account.
  2. Since I want to set a static IP Address to my test VM which is present in the testing virtual network with Internal IP Address of, I will get that VM in Powershell by the command
  3. Get-AzureVM –ServiceName sampleax –Name test, by this command we can view all the details associated with that particular VM with corresponding service name and VM name.
    All these details are shown in the diagram below.
  4. new2

Step 3: Set IP Address to Test VM

Here by the command

Get-AzureVM –ServiceName sampleax –Name test | AzureStaticVNetIP –IPAddress | Update-AzureVM

As shown in figure above you can see the Succeeded message, this tells us that the corresponding IP is been set to the IP Address Provided in the command, here as

Step 4: To check the changed IP Address

Now to see whether the IP Address is been set type the command

Get-AzureVM –ServiceName sampleax – Name test

This command will show the details with related VM as shown below.

In the highlighted box we can see the IP is been set.

We can also check the updated IP Address in Microsoft Azure as shown below that Internal IP is been now updated.

Written by

Team Member


2 thoughts on “Setting up a static IP address to Virtual Machine in Microsoft Azure – Part 1”

Leave a Reply

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

Time limit is exhausted. Please reload the CAPTCHA.

Want to streamline your business processes?

  • This field is for validation purposes and should be left unchanged.

Recent Articles

  • Dynamics 365 Client Diagnostics

    15 March’ 2018

    Main cause of Performance Issues: Bandwidth and latency are the primary characteristics which affects the performance o...

    Read more
  • Closing Blind Shift in MPOS and CPOS in Dynamics 365 for Retail

    15 March’ 2018

    Manual For closing Blind shift in POS: Blind shifts terminate the currently ongoing shift and when logged in a new shif...

    Read more
  • Persistent Filters in the Power BI Service

    13 March’ 2018

    Introduction: The feature is finally release, and it is power BI has announced general availability of persistent filt...

    Read more
  • Cause and Solution for Scribe MSMQ not receiving Message from AX

    10 March’ 2018

    Issue: Microsoft Message Queuing (MSMQ) service running on Server might be unable to receive messages. Therefore, messa...

    Read more
  • User Privileges on SharePoint – D365 Document Integration

    10 March’ 2018

    Overview: Often, we wonder what could be wrong where we see a generic error on Documents in Dynamics 365. Something lik...

    Read more