繁体   English   中英

在 Azure 逻辑应用 ARM 模板中,使用本地数据网关的 SQL Server 连接器的 AuthType 属性的可能值是什么?

[英]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 Server 连接器的 Azure 逻辑应用程序通过本地数据网关,连接是使用 SQL Server 身份验证建立的。 它在逻辑应用程序设计器中运行良好。

在此处输入图片说明

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属性的值是多少?

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

这应该够了吧

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM