Surface the application associated to a Managed Service Identity service principal in AAD app registrations

谁都会走 提交于 2019-12-14 02:33:08

问题


I've got a service principal in Azure which was created when i turned on Managed Service Identity for one of my Azure assets. I'd like to grant permissions to this SP using the App Registrations area in the portal (I know I can do it with New-AzureADServiceAppRoleAssignment, but I'd like to create an application in this case).

The Service Principal has an associated application whose guid is visible in the Enterprise Applications section of the AAD blade, but that application id isn't visible in the app registrations section and Get-AzureRmADApplication doesn't see it either.

Can I use powershell or the REST API to somehow change make the application associated with the MSI's service principal show up in this area?


回答1:


If you enable the MSI, it will create a service principal automatically.

The Service Principal has an associated application whose guid is visible in the Enterprise Applications section of the AAD blade

What you have seen in the Enterprise Applications is also called service principal. You could understand that the Enterprise Application equals service principal.

but that application id isn't visible in the app registrations section and Get-AzureRmADApplication doesn't see it either.

If you create app registration, it will also create a service principal in the Enterprise Applications. But if you enable MSI, there will not be an AD app(app registration). You could not make the Enterprise Application(service principal) show up in the App registration. Also, when you granting permission to an AD app, it essentially grants the permission to the service principal.

For more details about App registration and Service principal, refer to this link.



来源:https://stackoverflow.com/questions/51792016/surface-the-application-associated-to-a-managed-service-identity-service-princip

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