我有一个 ARM 模板,它使用以下图像部署多个 Azure VM:
"SQL2008R2SP3-WS2008R2SP1",
"SQL2012SP4-WS2012R2",
"SQL2014SP2-WS2012R2",
"SQL2016SP2-WS2016",
"SQL2017-WS2016"
SQLIaaS VM 扩展没有让 SQL Server 处于 SQL 身份验证模式,也没有创建 SQL 身份验证帐户。否则一切正常。这是 ARM 模板的 SQLIaaS 部分的片段。为什么没有设置 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')]"
}
}
}
}