我正在尝试使用ARM模板部署文件系统API连接.我找不到此连接的parametersValue架构,因此尝试命名Azure门户上显示的参数
编辑在Azure门户1上拍摄的API连接屏幕
{
"apiVersion": "2016-06-01",
"name": "filesystem",
"type": "Microsoft.Web/connections",
"location": "[resourceGroup().location]",
"properties": {
"api": {
"id": "[concat(subscription().id,'/providers/Microsoft.Web/locations/westus/managedApis/filesystem')]"
},
"parameterValues": {
"displayName": "FileSyetem",
"rootFolder": "[parameters('rootFolder')]",
"authenticationType":"Windows",
"username": "[parameters('username')]",
"password": "[parameters('password')]"
}
}
但是,由于错误的parameterValue名称displayName和authenticationType,部署失败
以下是部署日志中的错误 - 错误请求
输入参数无效.详细信息请参见详细信息.详细信息:errorCode:ParameterNotDefined.消息:连接上不允许参数'displayName',因为在注册API时未将其定义为连接参数...
有谁知道文件系统连接的正确json架构?我在https://resources.azure.com上找不到它.
我正在尝试部署一个 Azure 逻辑应用程序,其中包含使用 ARM 模板在服务总线上发送消息的操作。
除了部署逻辑应用程序,ARM 模板还部署了一个服务总线命名空间、一个队列和两个 AuthorizationRule(一个用于发送,一个用于侦听)。
我想动态设置发送服务总线消息操作的连接信息,以使用为支持发送的 AuthorizationRule 生成的连接字符串。
当我在门户编辑器中创建它时(指定用于发送的连接字符串),我注意到在代码视图中生成了以下内容...
"Send_message.": {
"conditions": [
{
"dependsOn": "<previous action>"
}
],
"inputs": {
"body": {
"ContentData": "@{encodeBase64(triggerBody())}"
},
"host": {
"api": {
"runtimeUrl": "https://logic-apis-westus.azure-apim.net/apim/servicebus"
},
"connection": {
"name": "@parameters('$connections')['servicebus']['connectionId']"
}
},
"method": "post",
"path": "/@{encodeURIComponent(string('<queuename>'))}/messages"
},
"type": "apiconnection"
}
Run Code Online (Sandbox Code Playgroud)
},
我假设连接信息以某种方式埋在 @parameters('$connections')['servicebus']['connectionId']"
然后,我使用resources.azure.com导航到逻辑应用程序,以查看是否可以获得有关如何@parameters('$connections')['servicebus']['connectionId']"定义的更多详细信息。
我找到了这个:
"parameters": {
"$connections": {
"value": {
"servicebus": {
"connectionId": "/subscriptions/<subguid>/resourceGroups/<rgname>/providers/Microsoft.Web/connections/servicebus",
"connectionName": "servicebus",
"id": "/subscriptions/<subguid>/providers/Microsoft.Web/locations/westus/managedApis/servicebus"
}
}
}
}
Run Code Online (Sandbox Code Playgroud)
但是我仍然没有看到连接字符串在哪里设置。
在哪里可以使用以下内容在 ARM …
azure azure-servicebus-queues azure-logic-apps azure-rm-template
azure ×1