gpt4 book ai didi

mysql - 此订阅被限制在此区域配置 MySQL 服务器请选择具有服务的其他区域,订阅限制问题类型

转载 作者:行者123 更新时间:2023-12-03 05:37:42 37 4
gpt4 key购买 nike

我在该地区和其他地区配置 Mysql 数据库时遇到以下错误,有关详细信息,我有 Microsoft Azure 赞助,但仍然出现错误。

这是我用来配置的 mysql terraform 脚本:

> Error: Error creating MySQL Server "mysql-db-server" (Resource Group
> "devopspoc-360f-primary1"): mysql.ServersClient#Create: Failure
> sending request: StatusCode=400 -- Original Error:
> Code="ProvisioningDisabled" Message="This subscription is restricted
> from provisioning MySQL servers in this region. Please choose a
> different region or open a support request with service and
> subscription limits (quotas) issue type."

main.tf:

resource "azurerm_mysql_server" "mysql" {
name = var.mysql_server_name
location = var.location
resource_group_name = var.resource_group_name
depends_on = [var.resource_group_name]
#sku_name = "B_Gen5_2"
sku_name = "GP_Gen5_2"

storage_profile {
storage_mb = 5120
backup_retention_days = 7
geo_redundant_backup = "Disabled"
}

administrator_login = "var.mysql_un"
administrator_login_password = "var.mysql_pw"
version = "8.0"
ssl_enforcement = "Enabled"
tags = {
environment = "Test"
}
}

resource "azurerm_mysql_database" "mysql" {
name = var.db_name
resource_group_name = var.resource_group_name
server_name = azurerm_mysql_server.mysql.name
charset = "utf8"
collation = "utf8_unicode_ci"

}
resource "azurerm_mysql_firewall_rule" "mysql" {
name = var.mysql_firewall_rule_name
resource_group_name = var.resource_group_name
server_name = azurerm_mysql_server.mysql.name
start_ip_address = "xx.x.x.x"
end_ip_address = "xx.x.x.x"
}

resource "azurerm_mysql_virtual_network_rule" "mysql" {
name = var.mysql_vnet_rule
resource_group_name = var.resource_group_name
server_name = azurerm_mysql_server.mysql.name
subnet_id = var.backend_vnet_subnet_id
}

我再次尝试了不同的 sku 版本,仍然得到相同的结果。

最佳答案

它现在可能由于计算短缺(sars-cov-2)而被禁用。否则尝试使用不同的区域。但据我所知,大多数免费订阅现在都不起作用

关于mysql - 此订阅被限制在此区域配置 MySQL 服务器请选择具有服务的其他区域,订阅限制问题类型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61253488/

37 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com