是否可以通过用户租户上的ARM模板在Azure上自动进行App注册? [英] Is automating App Registration on Azure possible through ARM Template on the User's tenant?

查看:89
本文介绍了是否可以通过用户租户上的ARM模板在Azure上自动进行App注册?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过ARM模板将解决方案部署为托管应用程序.为了使部署正常进行,我需要已注册应用程序的客户端ID和客户端密钥以及租户ID.

I am trying to deploy a solution as a managed application through ARM Template. For the deployment to work, I need the Client Id and Client Secret of a registered Application along with the Tenant Id.

在我先前的研究范围中,我假设用户已经注册了一个现有的应用程序,但是现在我想为该用户自动化应用程序注册过程,并能够在用户的租户中注册具有O365 API权限的应用程序.

In my previous scope, I was assuming that the user would have an existing App Registered but now I want to Automate the App registration process for the user and be able to register an application having O365 API Permissions in user's tenant.

下面是我之前遵循的方法.

Below is the approach I were following earlier.

因此,与上述方法不同,我现在尝试创建Web应用程序或功能应用程序,以对用户进行身份验证并为其注册应用程序.

So unlike above approach, I am now trying to create either a Web Application or a Function Application which would authenticate the User and register the Application for them.

推荐答案

不,这不可能.

ARM模板用于在Azure订阅下创建Azure资源.但是,应用程序注册是Azure AD模块的资源.他们是两个不同的领域.

ARM Template is used to create Azure resources under Azure subscription. But App Registration is the resource of Azure AD module. They are two different areas.

此处进行类似的讨论,供您参考.

A similar discussion here for your reference.

您可以使用Azure AD Powershell通过使用 New-AzureADApplicationPasswordCredential .

You can use Azure AD Powershell to create the Azure AD app and create the client secret by using New-AzureADApplication and New-AzureADApplicationPasswordCredential.

这篇关于是否可以通过用户租户上的ARM模板在Azure上自动进行App注册?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆