我正在尝试使用ARM模板在Azure中提供具有两个连接(Azure Active Directory V2和Online的共享点)的Bot资源。
我能够使其成功用于AADv2,并且一切正常。 当我手动配置资源时,我能够使其工作。 可悲的是,您无法导出机器人资源的模板...而且我无法成功使其联机用于Sharepoint,并且我不知道要设置的唯一参数是服务提供商ID,因为我能够手动测试其他设置。 当我使用与AADv2相同的名称时,提供的连接为AADv2(30dd229c-58e3-4a48-bdfd-91ec48eb906c)...
我提供此资源的模板是:
{
"name": "[concat(parameters('botId'),'/',parameters('SharepointConnectionName'))]",
"type": "Microsoft.BotService/botServices/Connections",
"apiVersion": "2017-12-01",
"location": "global",
"tags": {},
"sku": {
"name": "[parameters('sku')]"
},
"kind": "[parameters('kind')]",
"properties": {
"clientId": "[parameters('SharepointConnectionClientId')]",
"clientSecret": "[parameters('SharepointConnectionClientSecret')]",
"scopes": "[parameters('SharepointConnectionScopes')]",
"serviceProviderId": "[parameters('SharepointConnectionServiceProviderId')]",
"serviceProviderDisplayName": "[parameters('SharepointConnectionServiceProviderDisplayName')]",
"parameters": [
{
"key": "tenantId",
"value": "[parameters('SharepointConnectionTenantID')]"
},
{
"key": "clientId",
"value": "[parameters('SharepointConnectionClientId')]"
},
{
"key": "clientSecret",
"value": "[parameters('SharepointConnectionClientSecret')]"
},
{
"key": "GrantType",
"value": "[parameters('SharepointConnectionGrantType')]"
},
{
"key": "LoginURL",
"value": "[parameters('SharepointConnectionLoginURL')]"
},
{
"key": "DiscoveryURL",
"value": "[parameters('SharepointConnectionDiscoveryURL')]"
},
{
"key": "ResourceURL",
"value": "[parameters('SharepointConnectionResourceURL')]"
},
{
"key": "Capability",
"value": "[parameters('SharepointConnectionCapabilityURL')]"
}
]
},
"dependsOn": [
"[concat('Microsoft.BotService/botServices/', parameters('botId'))]"
]
}
答案 0 :(得分:0)
您可以尝试使用307d995f-f1ce-4918-bd3f-037685e9d241
吗?
我使用浏览器/ UI创建了两个SharePoint Online
连接,创建后,我使用资源浏览器显示了自己创建的内容。当307d995f-f1ce-4918-bd3f-037685e9d241
为serviceProviderId
时,两者都将serviceProviderDisplayName
用作SharePoint Online
。