An open API service indexing awesome lists of open source software.

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

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'