Verification
Live-testedReally deployed to a cloud sandbox, verified against its outputs and assertions, then destroyed - with the teardown confirmed.
Conformance
- Static validation (fmt · validate · tflint)
- Security scan clean (Checkov)
- Plan tests (mocked: validation rules · outputs)
Provenance
- SHA-256 checksum
- Cosign signature
Functional
- Live-tested - applied, verified, destroyed
Last verified 2026-08-04 · how we verify
Verify this download
cosign · sha-256Don't take our word for it. Every release is signed with cosign - check the bytes against our pinned public key before you trust them.
# 1. Our pinned public key - fetch once, trust out-of-band
curl -O https://www.iac-bazaar.com/cosign.pub
# 2. This module's Sigstore bundle
curl -o azure-mysql-flexible-1.0.0.sigstore.json \
https://www.iac-bazaar.com/api/artifacts/azure-mysql-flexible/signature
# 3. Verify the tarball you downloaded
cosign verify-blob \
--key cosign.pub \
--bundle azure-mysql-flexible-1.0.0.sigstore.json \
azure-mysql-flexible-1.0.0.tar.gz
# → Verified OK
# 4. (optional) confirm the checksum too
echo "3f99b765239c4c5bb1c1ec38e0941306e17b528d1e964348b474dac8ccca2003 azure-mysql-flexible-1.0.0.tar.gz" | sha256sum -cUse it from the registry
terraform · opentofumodule "mysql_flexible" {
source = "www.iac-bazaar.com/iac-bazaar/azure-mysql-flexible/azure"
version = "1.0.0"
}Paid module — needs a purchase (or a subscription that covers it) plus a registry token from /account/tokens. Full setup: registry docs.
Inputs & outputs
Create a free account to read this module's contract
The declared contract — every input name, type, default and description, plus every output — is shown to signed-in accounts, not to anonymous visitors.
A free account sees the contract of every Free module. This one is Premium, so its contract unlocks when you buy it.
Documentation
azure-mysql-flexible
Azure Database for MySQL Flexible Server with optional HA, private VNet
delegation, Entra (Azure AD) administration, firewall rules, databases and tuned
server parameters. Works with Terraform and OpenTofu (>= 1.6), azurerm
provider >= 4.0, < 5.0.
What you get beyond azurerm_mysql_flexible_server alone:
- TLS required by default —
require_secure_transport = ONis shipped as a managed server parameter so clients can't connect in the clear; override or extend viaserver_configurations - The delegated-subnet + private DNS zone link ordering handled correctly —
the module creates the zone (
<name>.private.mysql.database.azure.com), links it to your VNet, and forces the server to wait on the link (the classic mid-provisioning failure) - A single Entra (Azure AD) administrator wired to a user-assigned identity, with preconditions that catch invalid identity/CMK combinations at plan time
- HA failovers won't cause perpetual diffs (
zone/ standby zone are ignored after create), and HA-on-Burstable is rejected at plan time - Cheapest-by-default sizing: Burstable
B_Standard_B1ms, 20 GiB storage, no geo-redundant backup
Requirements
- Terraform or OpenTofu
>= 1.6 hashicorp/azurerm>= 4.0, < 5.0- For private networking the subnet must be delegated to
Microsoft.DBforMySQL/flexibleServersand must not host other resource types. - HA is not available on Burstable (B_) SKUs; geo-redundant backup cannot be toggled after create.
- CMK and the Entra administrator both require a user-assigned identity in
identity_ids(MySQL Flexible Server supports UserAssigned identities only).
Security notes
- Connections require TLS by default (
require_secure_transport = ON). Removing it is possible viaserver_configurationsbut not recommended. - A public-access server is only reachable through explicit
firewall_rules; with none set, no client can connect even though the endpoint is public. Prefer VNet delegation (network) for production. - The administrator password is
sensitiveand never printed in outputs.
License
Commercial — IaC Bazaar EULA. © IaC Bazaar. Original work (not derived from a third-party module).
Usage code & full reference unlock after purchase
The complete copy-paste usage, the full input/output reference, and operational notes ship with your licence - shown here and bundled in the download.
- Usage
- Inputs
- Outputs
Related modules
Azure Cache for Redis
Azure Cache for Redis done cheap by default - the Basic C0 tier with TLS 1.2 minimum and the non-SSL port disabled - scaling cleanly up to Standard and Premium via precondition-guarded inputs.
Azure Cosmos DB Account
Cosmos DB (NoSQL or MongoDB API) with multi-region failover, autoscale throughput, private endpoint and backup policy.
Azure SQL Database
Logical SQL server + database with Entra-only auth, firewall/private endpoint, auditing, TDE and failover-group option.
PostgreSQL Flexible Server
Flexible Server with HA option, private VNet delegation, Entra auth, firewall and tuned server parameters.