Azure 用の最新の Java SDK を使用しています。すべての VM を取得すると、仮想マシン (クラシック) から VM を取得できません
ServiceClientCredentials credentials = new ApplicationTokenCredentials(client, tenant, key, AzureEnvironment.AZURE);
Azure azure = Azure.authenticate(credentials).withSubscription(subscriptionId);
PagedList<VirtualMachine> vms = azure.virtualMachines().list();