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

  • Reading more then 10K records in D3FOE OData API

    11 July’ 2018

    Introduction: We all know Dynamics 365 Finance and Operations has limitation of 10K records to be fetched at a time usi...

    Read more
  • Paging in D365 Customer Engagement v9.0

    10 July’ 2018

    Introduction: The Xrm.retrieveMultipleRecords method is used to retrieve a collection of records in Dynamics 365 Custom...

    Read more
  • Set up Dynamics 365 connection in Microsoft Social Engagement

    10 July’ 2018

    Introduction: This blog explains how to Set up Dynamics 365 connection in Microsoft Social Engagement. Steps to be follo...

    Read more
  • Voice of the Customer failed to install

    10 July’ 2018

    Introduction: Many people face issues in installing Voice of Customer solution on v9 environment and trying repeatedly ...

    Read more
  • Scribe Insight AX as a Web Service Find Block issue

    10 July’ 2018

    Introduction: If we need to look up for any value from AX then we do it by using a Find Block in Scribe Insight Eg: Basi...

    Read more