Use Microsoft Azure java SDK Resource Management API or Service Management API?

送分小仙女□ 提交于 2020-01-07 03:05:43

问题


I am able to successfully connect to resource management API using Java SDK.

Once the connection is successful, can I continue with ARM to list resources at subscription level like os images, locations, regions etc using ARM? Or do I need to again shift to Service Mgmt API? Is every operation doable with the new ARM API?


回答1:


According to your comment for @juvchan, I knew you want to list os images and vm images for creating a VM in Azure Java SDK.

As @juvchan said, the ARM APIs are different from ASM APIs for Azure Virtual Machine. You can refer to the VM REST APIs documemts for ARM(https://msdn.microsoft.com/en-us/library/azure/mt163647.aspx) and ASM(https://msdn.microsoft.com/en-us/library/azure/jj157206.aspx) to know the differences.

So you can use the Azure Service Management API includes operations for manageing the Virtual Machines in your subscription to implement your needs. And for authenticating Service Management Requests, you can refer to the docment https://msdn.microsoft.com/en-us/library/azure/ee460782.aspx and the blog https://azure.microsoft.com/en-us/blog/getting-started-with-the-azure-java-management-libraries/.




回答2:


Yes, you definitely can use ARM API to list resources at subscription level.

Please see List the resources in a subscription

For the difference between ARM and Service Management API, you can refer to this reference from Microsoft.

Understanding Resource Manager deployment and classic deployment



来源:https://stackoverflow.com/questions/33996642/use-microsoft-azure-java-sdk-resource-management-api-or-service-management-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!