【发布时间】:2021-09-21 21:58:29
【问题描述】:
我正在尝试使用 ARM 模板和 terraform 部署 MySQL 灵活服务器集群(因为 terraform 没有 mysql_flexible 的任何资源)但它给了我以下“内部服务器错误”而没有任何有意义的信息。
请提供“版本”的字符串值(?寻求帮助):5.7 {"status":"Failed","error":{"code":"DeploymentFailed","message":"至少一项资源部署操作失败。请列出部署操作了解详情。使用详情请参阅https://aka.ms/DeployOperations .","details":[{"code":"Conflict","message":"{\r\n "status": "Failed",\r\n "error": {\r\n "code ": "ResourceDeploymentFailure",\r\n "message": "资源操作完成,终端配置状态为'失败'。",\r\n "details": [\r\n {\r\n "code" : "InternalServerError",\r\n "message": "处理请求时发生意外错误。跟踪 ID:'b8ab3a01-d4f2-40d5-92cf-2c9a239bdac3'"\r\n }\r\n ]\r\n }\r\n}"}]}}
当我将此跟踪 ID 粘贴到 Azure 活动日志中时,没有太多信息。 这是我正在使用的示例 template.json 文件。
{
"$schema" : "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#",
"contentVersion" : "1.0.0.0",
"parameters" : {
"administratorLogin" : {
"type" : "String"
},
"administratorLoginPassword" : {
"type" : "SecureString"
},
"availabilityZone" : {
"type" : "String"
},
"location" : {
"type" : "String"
},
"name" : {
"type" : "String"
},
"version" : {
"type" : "String"
}
},
"resources" : [
{
"apiVersion" : "2021-05-01-preview",
"identity" : {
"type" : "SystemAssigned"
},
"location" : "eastus",
"name" : "mysql-abcd-eastus",
"properties" : {
"administratorLogin" : "randomuser",
"administratorLoginPassword" : "randompasswd",
"availabilityZone" : "1",
"backup" : {
"backupRetentionDays" : "7",
"geoRedundantBackup" : "Disabled"
},
"createMode" : "Default",
"highAvailability" : {
"mode" : "Enabled",
"standbyAvailabilityZone" : "2"
},
"network" : {
"delegatedSubnetResourceId" : "myactualsubnetid",
"privateDnsZoneResourceId" : "myactualprivatednszoneid"
},
"version" : "[parameters('version')]"
},
"sku" : {
"name" : "Standard_E4ds_v4",
"tier" : "MemoryOptimized"
},
"type" : "Microsoft.DBforMySQL/flexibleServers"
}
]
}
【问题讨论】:
-
部署基础设施不是编程问题,因此这个问题在 SO 上是题外话。 SO 的 Serverfault 姊妹站点处理类似这样的问题。
标签: mysql azure terraform terraform-provider-azure azure-mysql-database