https://github.com/flcdrg/terraform-azure-sql-db-replica
Example creating and importing Azure SQL Database with Geo Replica
https://github.com/flcdrg/terraform-azure-sql-db-replica
azure azure-sql terraform
Last synced: 14 days ago
JSON representation
Example creating and importing Azure SQL Database with Geo Replica
- Host: GitHub
- URL: https://github.com/flcdrg/terraform-azure-sql-db-replica
- Owner: flcdrg
- License: apache-2.0
- Created: 2025-01-23T04:51:12.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-08-25T01:08:34.000Z (9 months ago)
- Last Synced: 2025-08-29T07:56:10.198Z (9 months ago)
- Topics: azure, azure-sql, terraform
- Language: HCL
- Homepage:
- Size: 86.9 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# terraform-azure-sql-db-replica
Example creating and importing Azure SQL Database with Geo Replica
## HCP Terraform configuration
1. Create Azure resource group
```bash
az group create --name rg-georeplica-australiaeast --location australiaeast
```
2. Follow
Create a service principal that has contributor access to the resource group
```bash
az ad sp create-for-rbac --name sp-terraform-azure-sql-db-replica --role Contributor --scopes /subscriptions//resourceGroups/rg-georeplica-australiaeast
```
3. Then find app registration for this service principal in the portal and click on Manage | Authentication and **Add a platform**. Select Web and enter '' for the redirect URI.
4. Then follow
5. Add two federated credentials. One for 'plan' and one for 'apply'