Retrieve VMs for Tenant RRS feed

  • Question

  • I have a registered application that has full access permissions towards my Azure Stack. The application is treated as a stack admin. Using the REST API I would like to get all virtual machines for a subscription on my stack.

    I retrieve all subscriptions on the stack with this call:

    request("GET", "/subscriptions/#{@default_provider_subscr_id}/providers/Microsoft.Subscriptions.Admin/subscriptions")

    For each of the returned subscriptions I would like to get created VMs. How can I do that?

    Thursday, January 25, 2018 12:46 PM


  • Hello,

    To retrieve additional subscription usage information please refer to the Provider Usage API call reference.



    Let us know how it goes


    We apologize for any inconvenience and appreciate your time and interest in Azure Stack.

    If you experience any issues with Azure Stack or the current ASDK release, please feel free to contact us.



    Gary Gallanes

    Friday, January 26, 2018 7:33 PM