Skip to content

Flexible Server

Deploys a MySQL Flexible Server in Azure.

Summary

Module to deploy a MySQL Flexible Server with specified settings.

Module Information

Property Value
Owner platform-team
Support Support
Version 1.1.0

Resource Types

Resource Type
Microsoft.DBforMySQL/flexibleServers
Microsoft.DBforMySQL/flexibleServers/administrators
Microsoft.DBforMySQL/flexibleServers/firewallRules

Usage

module flexibleservers 'br:geitbicepmodweucr01.azurecr.io/bicep/modules/mysql-server-flexibleservers/flexibleservers:1.1.0' = {
  name: 'flexibleservers'
  params: {
    // Required parameters
    par_mysql_server_name: <string>
    par_mysql_collation_server_user_password: <securestring>
  }
}

Parameters

Name Type Description Default
par_location string Location for all resources. [resourceGroup().location]
par_mysql_aad_administrator_login string The server administrator login account name. ``
par_mysql_aad_administrator_sid string The server administrator Sid (Secure ID). ``
par_mysql_aad_identity_resource_id string Resource ID of the user-assigned managed identity the server uses to authenticate to Microsoft Entra ID. Required when an Entra administrator is configured. ``
par_mysql_allow_azure_services bool Configures the servers firewall to accept connections from all Azure resources, including resources not in your subscription. False
par_mysql_backup_geo_redundant string Enable Geo-redundant or not for server backup. Disabled
par_mysql_backup_retention_days int Backup retention days for the server. 7
par_mysql_collation_server_user_name string The administrators login name of a server. Can only be specified when the server is being created and is required for creation. The login name is required when updating password. admsql
par_mysql_collation_server_user_password securestring The password of the administrator login. required
par_mysql_ha_availability_zone string Availability zone number 1,2,3 ``
par_mysql_ha_mode string Same zone and zone redundant high availability provide additional server resilience in the event of a failure Disabled
par_mysql_ha_standby_availability_zone string Availability zone of the standby server number 1,2,3. ``
par_mysql_server_name string Azure MySQL Server name. required
par_mysql_server_version string The version of a server. 8.0.21
par_mysql_sku_name string The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8. Standard_B1s
par_mysql_sku_tier string The tier of the particular SKU, e.g. Burstable. GeneralPurpose
par_mysql_storage_auto_grow string Enable Storage Auto Grow. Enabled
par_mysql_storage_iops int Azure database for MySQL storage Iops. 360
par_mysql_storage_size_gb int Max storage allowed for a server in GB. 10
par_tags object Tags to apply to the server. ``

Outputs

Name Type Description
out_mysql_fully_qualified_domain_name string The fully qualified domain name of the MySQL server.

Versions

Pin an exact version. Ranges are not supported.

Version Reference
1.1.0 (latest) br/Euvic-Modules:mysql-server-flexibleservers/flexibleservers:1.1.0
1.0.0 br/Euvic-Modules:mysql-server-flexibleservers/flexibleservers:1.0.0