在 Azure 逻辑应用程序 ARM 模板中,AuthType 属性 对于使用本地数据网关的 SQL 服务器连接器的可能值是多少?

In Azure Logic Apps ARM template, what are the possible values for the AuthType property for a SQL Server connector using On-Premise Data Gateway?

我有一个带有 SQL 服务器连接器的 Azure 逻辑应用程序,通过本地数据网关连接,连接是使用 SQL 服务器身份验证建立的。它在逻辑应用程序设计器中运行良好。

SQL 服务器连接的 ARM 模板中没有存储有关连接的详细信息,因此如果我想自动部署逻辑应用程序,我需要向 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 Authentication"对应的authType属性的正确值。接受值 windowsbasic,但找不到 "SQL Server Authentication".

的值

谁能告诉我 "SQL Server Authentication" 对应的 authType 属性 的值是多少?

在您的网络 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"

这应该可以解决问题