azure - 在 ARM 模板中引用 Azure AD 服务主体 ID

标签 azure azure-service-fabric azure-resource-manager

有没有办法通过内置的 ARM 模板函数获取 Azure AD 服务主体 ID?我正在寻找 Get-AzADServicePrincipal -DisplayName "Azure Service Fabric Resource Provider" 的 ARM 等效项并绘制空白。

上下文:我正在关注a tutorial on deploying a Service Fabric managed cluster using an existing load balancer ,并且本教程要求您运行 powershell 命令来获取资源提供者的服务主体 ID,然后将所述 ID 硬编码到 ARM 模板中。该 ID 预计会因租户而异,并且相同的模板将部署到多个租户。

最佳答案

对于某些 Azure 资源,您可以使用 reference template function with the full parameter检索身份属性。

但是,在 ARM 中没有检索服务主体 ID 的通用方法。 Get-AzADServicePrincipal powershell cmdlet 需要 Azure AD 图形权限,目前无法将这些权限授予 ARM 模板内的用户分配的 MSI。

关于azure - 在 ARM 模板中引用 Azure AD 服务主体 ID,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69168658/

相关文章:

azure - 将凭证从arm模板传递给DSC脚本

java - Page<Book> findByBookName(String name, Pageable pageable) 不适用于下一页?

azure - Web 平台安装程序 5.0 缺少 Service Fabric 2

android - MobileServicePushFailedException Azure Android

node.js - NodeJS 作为服务结构上的 guest 可执行文件

azure - 无法使用 "Connect-ServiceFabricCluster"连接到 ServiceFabricCluster

Azure ARM 模板为数组参数中的每个值添加前缀

azure - 使用现有 Azure SQL Server 的 Web 应用程序 + SQL 数据库的 ARM 模板

azure - 使用 terraform 到 Azure APIM 的多个版本集和每个版本集下的多个 API,目前我收到正文中提到的错误

asp.net-mvc-3 - Azure 托管 ASP.NET MVC 应用程序的最佳 Intellitrace 设置是什么