{"id":13505696,"url":"https://github.com/metadevpro/terraform-azurerm-sqlserver-seed","last_synced_at":"2025-04-10T16:40:22.221Z","repository":{"id":66094297,"uuid":"108576349","full_name":"metadevpro/terraform-azurerm-sqlserver-seed","owner":"metadevpro","description":"Terraform module for creating an Azure SQL Server Database and initialize it with a SQL script.","archived":false,"fork":false,"pushed_at":"2023-09-12T16:33:50.000Z","size":8,"stargazers_count":8,"open_issues_count":2,"forks_count":14,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-24T14:21:23.363Z","etag":null,"topics":["azurerm","db-initialize","db-seed","sqlserver","terraform-module"],"latest_commit_sha":null,"homepage":null,"language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/metadevpro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-10-27T17:41:02.000Z","updated_at":"2024-08-27T14:57:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"147f9ce0-3c77-4605-bc37-b33a2b35ba07","html_url":"https://github.com/metadevpro/terraform-azurerm-sqlserver-seed","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metadevpro%2Fterraform-azurerm-sqlserver-seed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metadevpro%2Fterraform-azurerm-sqlserver-seed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metadevpro%2Fterraform-azurerm-sqlserver-seed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metadevpro%2Fterraform-azurerm-sqlserver-seed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/metadevpro","download_url":"https://codeload.github.com/metadevpro/terraform-azurerm-sqlserver-seed/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248252724,"owners_count":21072702,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["azurerm","db-initialize","db-seed","sqlserver","terraform-module"],"created_at":"2024-08-01T00:01:11.817Z","updated_at":"2025-04-10T16:40:22.203Z","avatar_url":"https://github.com/metadevpro.png","language":"HCL","funding_links":[],"categories":["Community Modules","HCL"],"sub_categories":["Miscellaneous"],"readme":"# Create an Azure SQL Server Database with a SQL script initialization\n\nThis **Terraform module** creates an SQL Server Database on Azure allowing to execute a SQL script to setup and initialize the database such as: users, schemas and data.\n\nThe database **server** must be created beforehand. This module is not going to create the server if does not exist, it will only create the database plus initialization.\n\n## Prerequisites\n\nThis module uses the tool `slqcmd` as a local provisioner to connect and inject the SQL initialization.\n\nTherefore, the following dependencies must be installed beforehand on your machine:\n\n1. Microsoft [OBDC Driver 13.1](https://www.microsoft.com/en-us/download/details.aspx?id=53339).\n2. Install the Microsoft [sqlcmd](https://docs.microsoft.com/en-us/sql/tools/sqlcmd-utility) utility.\n\n## Usage\n\n```hcl\nmodule \"azurerm_sql_sever_init\" {\n  source             = \"Azure/database-seed/azurerm\"\n  location           = \"westeurope\"\n  resource_group     = \"myresourcegroup007\"\n  db_server_fqdn     = \"${azurerm_sql_server.db1.fully_qualified_domain_name}\"\n  sql_admin_username = \"${azurerm_sql_server.db1.administrator_login}\"\n  sql_admin_password = \"${azurerm_sql_server.db1.administrator_login_password}\"\n  db_name             = \"mydatabase\"\n  init_script_file    = \"mydatabase.init.sql\"\n  log_file            = \"mydatabase.init.log\"\n\n  tags = {\n    environment = \"qa\"\n    project     = \"acme\"\n    provisioner = \"terraform\"\n  }\n}\n```\n## License\n\nApache v. 2.0\n\n## Authors\n\n[Pedro J. Molina, PhD.](https://github.com/pjmolina) @ [Metadev](https://metadev.pro)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetadevpro%2Fterraform-azurerm-sqlserver-seed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmetadevpro%2Fterraform-azurerm-sqlserver-seed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetadevpro%2Fterraform-azurerm-sqlserver-seed/lists"}