Azure Authenticating via java sdk in Resource manager mode

元气小坏坏 提交于 2019-12-11 23:18:30

问题


I am a Mac user and don't have access to the powershell cli tools. I want to authenticate my java program to the azure in resource manager mode (arm)

According to the docs i have read so far, i have created a app in the Active directory, but I don't see any option to upload any certificate to the application for authentication in the UI. Also, I don't see any option in the UI for assigning privilege to the application for using resource manager api.

Is using powershell the only option to do the above tasks ?


回答1:


I am a Mac user and don't have access to the powershell cli tools. I want to authenticate my java program to the azure in resource manager mode (arm)

I'm not sure why you say that. CLI tools are built using node.js (thus available on all platforms) and are different than Azure PowerShell Cmdlets. Please see this link for using CLI tools with Azure Resource Manager - https://azure.microsoft.com/en-in/documentation/articles/xplat-cli-azure-resource-manager/.

According to the docs i have read so far, i have created a app in the Active directory, but I don't see any option to upload any certificate to the application for authentication in the UI.

With Azure Resource Manager, you don't have to do that. The authentication/authorization will be done via Azure Active Directory. Certificate based authentication is for Azure Service Management API.

Also, I don't see any option in the UI for assigning privilege to the application for using resource manager api.

This, you can do through Azure Preview Portal. See this screenshot below where I have assigned permission to an application on my Azure Subscription.



来源:https://stackoverflow.com/questions/33313950/azure-authenticating-via-java-sdk-in-resource-manager-mode

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