Azure API for Java

1.2k Views Asked by At

Tell me please, how can I get all options for instance on Azure using Java ?

For example, I mean all VM parameters: name, instance type, launch time and etc. So that I can use them in my code and get a detailed message in case of all kinds of errors associated with the VM on Azure. Thanks

1

There are 1 best solutions below

2
On BEST ANSWER

You can use Azure virtual machine libraries to manage your virtual machines.

To use Azure management library, firstly, you need to get authenticated. For more details, you may refer to: Authentication in Azure Management Libraries for Java


Another way is to use Azure REST API. Here is the tutorial for your getting started: https://learn.microsoft.com/en-us/rest/api/azure/

You can use HttpClient or You can also directly try that API on the page:

enter image description here