Is automating App Registration on Azure possible through ARM Template on the User's tenant?

时光怂恿深爱的人放手 提交于 2021-01-07 02:42:25

问题


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.

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.

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.


回答1:


No, it's impossible.

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.

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




回答2:


I'm facing a similar problem and seems that ARM deployment scripts may be the answer:

https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/deployment-script-template

this post gives an example on how to create app registrations with ARM deployment scripts:

https://moimhossain.com/2020/04/03/azure-ad-app-via-arm-template-deployment-scripts/



来源:https://stackoverflow.com/questions/64789758/is-automating-app-registration-on-azure-possible-through-arm-template-on-the-use

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