hashicorp / terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
Mozilla Public License 2.0
4.47k stars 4.55k forks source link

Support for linking database to static web app #25649

Open ottoville opened 3 months ago

ottoville commented 3 months ago

Is there an existing issue for this?

Community Note

Description

A database could be connected to SWA. This is detailed at Microsoft document

New or Affected Resource(s)/Data Source(s)

azurerm_static_web_app_database

Potential Terraform Configuration

resource "azurerm_static_web_app_database" "example" {
  static_web_app_id = azurerm_static_web_app.example.id
  database_id   = azurerm_mssql_database.example.id
}

References

https://learn.microsoft.com/en-us/azure/static-web-apps/database-overview https://learn.microsoft.com/en-us/azure/static-web-apps/database-configuration

lawrenceadams commented 1 month ago

Is this not now possible with this? https://stackoverflow.com/a/77477608/8162159 (forgive me if not what you want)

ottoville commented 1 month ago

Is this not now possible with this? https://stackoverflow.com/a/77477608/8162159 (forgive me if not what you want)

Database linking is not done by adjusting application settings or secrets, so no.