0

I see it int he compute docs

https://learn.microsoft.com/en-us/rest/api/compute/virtual-machines/list

But I dont see it in the azure package

https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute/src/computeManagementClient.ts

Am I overlooking how they're translating the restful pattern to the JS SDK?

A.com
  • 1,466
  • 4
  • 19
  • 31

2 Answers2

0

They do! I don't know why I didn't see it in that file, but my VScode autocomplete (their package is well typed) showed what I'm looking for:

const result = await this.ComputeManagementClient.virtualMachines.list('testing_group')
A.com
  • 1,466
  • 4
  • 19
  • 31
0

They do list the VM

//this is used to list all the VM's
const vm_list = await compute_client.virtualMachines.listAll();
//this is used to list the VM
const vm_list = await compute_client.virtualMachines.list();