Azure 如何使用ARM模板启用SQL身份验证?

Azure 如何使用ARM模板启用SQL身份验证?,azure,azure-sql-database,azure-resource-manager,azure-template,Azure,Azure Sql Database,Azure Resource Manager,Azure Template,我有一个ARM模板,它部署了多个Azure虚拟机,其中包含以下映像: "SQL2008R2SP3-WS2008R2SP1", "SQL2012SP4-WS2012R2", "SQL2014SP2-WS2012R2", "SQL2016SP2-WS2016", "SQL2017-WS2016" SQLIaaS VM扩展没有使SQL Server处于SQL身份验证模式,也没有创建SQL身份验证帐户。否则其他一切都很好。以下是SQLIaaS作为ARM模板一部分

我有一个ARM模板,它部署了多个Azure虚拟机,其中包含以下映像:

    "SQL2008R2SP3-WS2008R2SP1",
    "SQL2012SP4-WS2012R2",
    "SQL2014SP2-WS2012R2",
    "SQL2016SP2-WS2016",
    "SQL2017-WS2016"
SQLIaaS VM扩展没有使SQL Server处于SQL身份验证模式,也没有创建SQL身份验证帐户。否则其他一切都很好。以下是SQLIaaS作为ARM模板一部分的代码片段。知道为什么没有设置SQL Auth吗

{
      "apiVersion": "2015-06-15",
      "type": "Microsoft.Compute/virtualMachines/extensions",
      "name": "[concat(parameters('virtualMachineName'), copyIndex(1), '/SqlIaasExtension')]",
      "location": "[parameters('location')]",
      "condition": "[parameters('deploySqlIaasExtension')]",
      "tags": {
        "displayName": "SQLIaas VM Extension"
      },
      "dependsOn": [
        "[concat(parameters('virtualMachineName'),copyIndex(1))]",    
        "[concat('Microsoft.Storage/storageAccounts','/', variables('storageNameSQLBackups'))]"
      ],
      "copy": {
        "name": "virtualMachineExtensionsGroup",
        "count": "[parameters('sqlServerCount')]"
      },
      "properties": {
        "type": "SqlIaaSAgent",
        "publisher": "Microsoft.SqlServer.Management",
        "typeHandlerVersion": "1.2",
        "autoUpgradeMinorVersion": "true",
        "settings": {
          "AutoTelemetrySettings": {
            "Region": "[parameters('location')]"
          },
          "AutoPatchingSettings": {
            "PatchCategory": "WindowsMandatoryUpdates",
            "Enable": true,
            "DayOfWeek": "Sunday",
            "MaintenanceWindowStartingHour": "0",
            "MaintenanceWindowDuration": "240"
          },
          "AutoBackupSettings": {
            "Enable": true,
            "RetentionPeriod": "[parameters('sqlAutobackupRetentionPeriod')]",
            "EnableEncryption": false,
            "BackupSystemDbs": "[parameters('backupSystemDbs')]"
          },
          "ServerConfigurationsManagementSettings": {
            "SQLConnectivityUpdateSettings": {
              "ConnectivityType": "Public",
              "Port": "[parameters('sqlPortNumber')]"
            },
            "SQLWorkloadTypeUpdateSettings": {
              "SQLWorkloadType": "General"
            },
            "AdditionalFeaturesServerConfigurations": {
              "IsRServicesEnabled": "false"
            }
          },
          "protectedSettings": {
            "SQLAuthUpdateUserName": "[parameters('sqlAuthenticationLogin')]",
            "SQLAuthUpdatePassword": "[parameters('sqlAuthenticationPassword')]"
          }
        }
      }
    }

我从来没有弄清这件事的真相,但它现在起作用了。我不确定这是否有帮助,但我想回答这个问题