gpt4 book ai didi

azure - 用于 acsemail API 连接的 Bicep

转载 作者:行者123 更新时间:2023-12-03 06:19:57 44 4
gpt4 key购买 nike

有人设法为 acs API 连接创建 Bicep 吗?通过逻辑应用设计器创建它时,您可以指定连接字符串。但是,我无法计算出 Bicep 文件的正确语法。如果我指定这个:

resource cn_communicationservices 'Microsoft.Web/connections@2018-07-01-preview' = {
name: connectionType
location: location
kind: 'V2'
properties: {
displayName: connectionName
parameterValues: {
connectionString: connString
}
api: {
name: connectionType
displayName: connectionName
description: 'Connector to send Email using the domains linked to the Azure Communication Services in your subscription'
iconUri: 'https://connectoricons-prod.azureedge.net/releases/v1.0.1619/1.0.1619.3185/${connectionType}/icon.png'
id: '/subscriptions/${subId}/providers/Microsoft.Web/locations/${location}/managedApis/acsemail'
type: 'Microsoft.Web/locations/managedApis'
}
testLinks: []
}
}

我收到此错误:

Parameter 'connectionString' is not allowed on the connection since it was not defined as aconnection parameter when the API was registeredI have tried many other things but none have worked, has anyone done this successfully?

最佳答案

请尝试使用以下参数来提供 ACS 连接字符串,

     parameterValues: {
api_key : connString
}

我运行了本地测试并确认它可以创建 API 连接。

关于azure - 用于 acsemail API 连接的 Bicep,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/75970423/

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