gpt4 book ai didi

azure - 如何通过二头肌脚本将身份提供者添加到应用程序服务?

转载 作者:行者123 更新时间:2023-12-02 23:35:26 25 4
gpt4 key购买 nike

我需要创建应用程序注册,然后以编程方式将其作为身份提供程序添加到应用程序服务(通过 bicep)。

有可能 to create app registration using Deployment Scripts .

但是我如何将其添加到应用服务中?

为了创建应用服务,我们使用 Microsoft.Web sites 2020-12-01 .

但我没有看到身份提供商的任何属性。

我们有属性(property)身份,但它是针对 ManagedServiceIdentity .

也许Microsoft.Web sites/config 'authsettings'

但是:

The sites/config resource type can be deployed to: Resource groups.

所以,问题是:是否可以通过二头肌添加身份提供程序,或者我应该手动添加身份提供程序?

最佳答案

您可以使用authsettingsV2。完整文档可以找到 here .

param webappname string

resource webapp 'Microsoft.Web/sites@2022-03-01' existing = {
name:webappname
}

resource authsettings 'Microsoft.Web/sites/config@2022-03-01' = {
parent: webapp
name: 'authsettingsV2'
properties:{
...
}
}

您也可以引用类似的帖子:ARM template for Azure Function with V2 Authentication .

关于azure - 如何通过二头肌脚本将身份提供者添加到应用程序服务?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73487911/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com