locked
Azure VM not visible via PowerShell RRS feed

  • Question

  • Hi.

    I was wondering if it is normal to NOT see virtual machines, provisioned via the Azure preview portal in PowerShell?

    Normally,

    get-azurevm
    would show them all.

    Sunday, December 6, 2015 7:30 PM

Answers

  • Just wanted to post the answer here, as I ended up finding it myself. It was actually not because of the preview portal, but because the chosen deployment was not classic, but "resource manager".

    To return virtual machines created in RM deployment mode, the *RM* cmdlets must be used. For example, to get the VMs, we can run:

    Get-AzureRmVM

    Simple, when you know how. :D

    • Marked as answer by Vadim Shupak Tuesday, December 8, 2015 9:26 PM
    Tuesday, December 8, 2015 9:26 PM