在Azure Logic Apps ARM模板中,使用内部部署数据网关的SQL Server连接器的AuthType属性的可能值为什么?

问题描述 投票:0回答:1

我有一个通过内部部署数据网关的带有SQL Server连接器的Azure Logic应用,该连接使用SQL Server身份验证进行。在Logic App Designer中可以正常工作。

enter image description here

关于连接的详细信息没有存储在SQL Server连接的ARM模板中,因此,如果要自动执行Logic App的部署,则需要向ARM模板添加一些值。即使我能够编写此模板,此文档也确实很差:

{
  "type": "MICROSOFT.WEB/CONNECTIONS",
  "apiVersion": "2018-07-01-preview",
  "name": "[parameters('sql_2_Connection_Name')]",
  "location": "[parameters('logicAppLocation')]",
  "properties": {
    "api": {
      "id": "[concat(subscription().id, '/providers/Microsoft.Web/locations/', parameters('logicAppLocation'), '/managedApis/', 'sql')]"
    },
    "displayName": "[parameters('sql_2_Connection_DisplayName')]",
    "parameterValues": {
      "server": "[parameters('sql_2_server')]",
      "database": "[parameters('sql_2_database')]",
      "username": "[parameters('sql_2_username')]",
      "password": "[parameters('sql_2_password')]",
      "authType": "[parameters('sql_2_authtype')]",
      "sqlConnectionString": "[parameters('sql_2_sqlConnectionString')]",
      "gateway": {
        "id": "[concat('subscriptions/', subscription().subscriptionId, '/resourceGroups/', parameters('dataGatewayResourceGroup'), '/providers/Microsoft.Web/connectionGateways/', parameters('dataGatewayName'))]"
      }
    }
  }
}

但是我找不到与“ SQL Server身份验证”相对应的authType属性的正确值。值windowsbasic被接受,但找不到“ SQL Server身份验证”的值。

谁能告诉我与“ SQL Server身份验证”相对应的authType属性的值是什么?

sql-server azure azure-logic-apps arm-template
1个回答
0
投票

在Web API连接中使用以下属性json

"properties": {
    "api": {
      "id": "/subscriptions/<YourSubscriptionIDHere>/providers/Microsoft.Web/locations/australiaeast/managedApis/sql"
    },
    "parameterValueSet": {
      "name": "sqlAuthentication",
      "values": {
        "server": {
          "value": "SampleServer"
        },
        "database": {
          "value": "WideWorldImporters"
        },
        "username": {
          "value": "sampleuser"
        },
        "password": {
          "value": "somepasssword"
        },
        "gateway": {
          "value": {
            "id": "/subscriptions/<subscriptionIDGoesHere>/resourceGroups/az-integration-study-rg/providers/Microsoft.Web/connectionGateways/<NameofTheGatewayHere>"
          }
        }
      }
    }
  },
  "location": "australiaeast"

这应该可以解决问题

© www.soinside.com 2019 - 2024. All rights reserved.