Add example for MySQL Flexible Server Database

This commit is contained in:
neil-yechenwei
2022-03-02 14:26:28 +08:00
parent 112c5b5192
commit c70498ea85
7 changed files with 80 additions and 0 deletions

View File

@ -0,0 +1,17 @@
resource "random_pet" "rg-name" {
prefix = var.name_prefix
}
resource "azurerm_resource_group" "default" {
name = random_pet.rg-name.id
location = var.location
}
resource "azurerm_mysql_flexible_server" "test" {
name = "${var.name_prefix}-server"
resource_group_name = azurerm_resource_group.default.name
location = azurerm_resource_group.default.location
administrator_login = "adminTerraform"
administrator_password = "QAZwsx123"
sku_name = "B_Standard_B1s"
}