简体   繁体   English

在资源管理器模式下通过Java SDK进行Azure身份验证

[英]Azure Authenticating via java sdk in Resource manager mode

I am a Mac user and don't have access to the powershell cli tools. 我是Mac用户,无法访问powershell cli工具。 I want to authenticate my java program to the azure in resource manager mode (arm) 我想在资源管理器模式下将我的Java程序认证为Azure(手臂)

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. 根据我到目前为止阅读的文档,我已经在Active目录中创建了一个应用程序,但是我看不到将任何证书上载到应用程序以进行UI身份验证的任何选项。 Also, I don't see any option in the UI for assigning privilege to the application for using resource manager api. 另外,我在用户界面中看不到用于为应用程序分配特权以使用资源管理器api的任何选项。

Is using powershell the only option to do the above tasks ? 使用Powershell是执行上述任务的唯一选择吗?

I am a Mac user and don't have access to the powershell cli tools. 我是Mac用户,无法访问powershell cli工具。 I want to authenticate my java program to the azure in resource manager mode (arm) 我想在资源管理器模式下将我的Java程序认证为Azure(手臂)

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. CLI工具是使用node.js构建的(因此在所有平台上都可用),并且与Azure PowerShell Cmdlet不同。 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/ . 请参阅此链接以了解如何将CLI工具与Azure资源管理器一起使用-https: //azure.microsoft.com/zh-cn/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. 根据我到目前为止阅读的文档,我已经在Active目录中创建了一个应用程序,但是我看不到将任何证书上载到应用程序以进行UI身份验证的任何选项。

With Azure Resource Manager, you don't have to do that. 使用Azure资源管理器,您不必这样做。 The authentication/authorization will be done via Azure Active Directory. 身份验证/授权将通过Azure Active Directory完成。 Certificate based authentication is for Azure Service Management API. 基于证书的身份验证适用于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. 另外,我在用户界面中看不到用于为应用程序分配特权以使用资源管理器api的任何选项。

This, you can do through Azure Preview Portal . 这可以通过Azure Preview Portal See this screenshot below where I have assigned permission to an application on my Azure Subscription. 请参见下面的屏幕截图,其中我已在Azure订阅上为应用程序分配了权限。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM