locked
How to know Azure server location RRS feed

  • Question

  • User-534300708 posted

    Hi All,

    I have Azure VM. How to find location of this Azure server.. 

    Wednesday, May 9, 2018 5:44 PM

Answers

  • User61956409 posted

    Hi Chait,

    I have Azure VM. How to find location of this Azure server.. 

    Firstly, you can use the Get-AzureRmVM cmdlet to gets the properties of a virtual machine.

    Example: Get-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07"

    Secondly, you can also get the location of a virtual machine by using REST API.

    GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}?api-version=2017-12-01

    With Regards,

    Fei Han

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, May 10, 2018 8:27 AM