You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-arc/data/managed-instance-disaster-recovery.md
+15-9Lines changed: 15 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,12 +27,14 @@ Azure failover groups use the same distributed availability groups technology th
27
27
## Prerequisites
28
28
29
29
The following prerequisites must be met before setting up Azure Failover groups between two Arc enabled SQL managed instances:
30
-
1. An Azure Arc data controller and an Arc enabled SQL managed instance provisioned at the primary site with `--license-type` as one of `BasePrice` or `LicenseIncluded`.
31
-
2. An Azure Arc data controller and an Arc enabled SQL managed instance provisioned at the secondary site with identical configuration as the primary in terms of CPU, memory, storage, Service tier etc. AND `--license-type` as `DisasterRecovery`
30
+
1. An Azure Arc data controller and an Arc enabled SQL managed instance provisioned at the primary site with `--license-type` as one of `BasePrice` or `LicenseIncluded`.
31
+
2. An Azure Arc data controller and an Arc enabled SQL managed instance provisioned at the secondary site with identical configuration as the primary in terms of CPU, memory, storage, Service tier, collation etc. AND `--license-type` as `DisasterRecovery`
32
32
33
+
> [!NOTE]
34
+
> - It is important to specify the `--license-type`**during** the Azure Arc SQL MI creation. This will allow the DR instance to be seeded from the primary instance in the primary data center. Updating this property post deployment will not have the same effect.
33
35
34
36
## Deployment process
35
-
Setting up Azure failover group between two Arc enabled SQL managed instances involves the following steps:
37
+
Setting up an Azure failover group between two Arc enabled SQL managed instances involves the following steps:
36
38
1. Create custom resource for distributed availability group at the primary site
37
39
1. Create custom resource for distributed availability group at the secondary site
38
40
1. Copy the binary data from the mirroring certificates
@@ -53,6 +55,10 @@ If primary and secondary sites are within a few miles of each other, `sync` mode
53
55
Follow the steps below if the Arc data services was deployed in `directly` connected mode.
54
56
Once the prerequisites are met, run the below command to setup Azure failover group between the two Arc enabled SQL managed instances:
55
57
58
+
```azurecli
59
+
az sql instance-failover-group-arc create --name <name of FOG> --mi <primary SQL MI> --partner-mi <Partner MI> --resource-group <name of RG> --partner-resource-group <name of partner MI RG>
@@ -123,7 +129,7 @@ Follow the steps below if the Arc data services was deployed in `indirectly` con
123
129
> Ensure the SQL instances have different names for both primary and secondary sites, and the `shared-name` value should be identical on both sites.
124
130
125
131
```azurecli
126
-
az sql instance-failover-group-arc create --shared-name <name of failover group> --name <name for primary DAG resource> --mi <local SQL managed instance name> --role primary --partner-mi <partner SQL managed instance name> --partner-mirroring-url tcp://<secondary IP> --partner-mirroring-cert-file <secondary.pem> --k8s-namespace <namespace> --use-k8s
132
+
az sql instance-failover-group-arc create --shared-name <name of failover group> --name <name for primary FOG resource> --mi <local SQL managed instance name> --role primary --partner-mi <partner SQL managed instance name> --partner-mirroring-url tcp://<secondary IP> --partner-mirroring-cert-file <secondary.pem> --k8s-namespace <namespace> --use-k8s
127
133
```
128
134
129
135
Example:
@@ -134,7 +140,7 @@ Follow the steps below if the Arc data services was deployed in `indirectly` con
134
140
On the secondary instance, run the following command to setup the FOG CR. The ```--partner-mirroring-cert-file``` in this case should point to a path that has the mirroring certificate file generated from the primary instance as described in 3(a) above.
135
141
136
142
```azurecli
137
-
az sql instance-failover-group-arc create --shared-name <name of failover group> --name <name for secondary DAG resource> --mi <local SQL managed instance name> --role secondary --partner-mi <partner SQL managed instance name> --partner-mirroring-url tcp://<primary IP> --partner-mirroring-cert-file <primary.pem> --k8s-namespace <namespace> --use-k8s
143
+
az sql instance-failover-group-arc create --shared-name <name of failover group> --name <name for secondary FOG resource> --mi <local SQL managed instance name> --role secondary --partner-mi <partner SQL managed instance name> --partner-mirroring-url tcp://<primary IP> --partner-mirroring-cert-file <primary.pem> --k8s-namespace <namespace> --use-k8s
138
144
```
139
145
140
146
Example:
@@ -181,7 +187,7 @@ Use `az sql instance-failover-group-arc update ...` command group to initiate a
181
187
Run the following command to initiate a manual failover, in `direct` connected mode using ARM APIs:
182
188
183
189
```azurecli
184
-
az sql instance-failover-group-arc update --name <shared name of DAG> --mi <primary Arc SQL MI> --role secondary --resource-group <resource group>
190
+
az sql instance-failover-group-arc update --name <shared name of FOG> --mi <primary Arc SQL MI> --role secondary --resource-group <resource group>
185
191
```
186
192
Example:
187
193
@@ -192,7 +198,7 @@ az sql instance-failover-group-arc update --name myfog --mi sqlmi1 --role second
192
198
Run the following command to initiate a manual failover, in `indirect` connected mode using kubernetes APIs:
193
199
194
200
```azurecli
195
-
az sql instance-failover-group-arc update --name <name of DAG resource> --role secondary --k8s-namespace <namespace> --use-k8s
201
+
az sql instance-failover-group-arc update --name <name of FOG resource> --role secondary --k8s-namespace <namespace> --use-k8s
196
202
```
197
203
198
204
Example:
@@ -212,7 +218,7 @@ On the geo-secondary DR instance, run the following command to promote it to pri
212
218
213
219
### Directly connected mode
214
220
```azurecli
215
-
az sql instance-failover-group-arc update --name <shared name of DAG> --mi <secondary Arc SQL MI> --role force-primary-allow-data-loss --resource-group <resource group> --partner-sync-mode async
221
+
az sql instance-failover-group-arc update --name <shared name of FOG> --mi <secondary Arc SQL MI> --role force-primary-allow-data-loss --resource-group <resource group> --partner-sync-mode async
216
222
```
217
223
Example:
218
224
@@ -229,7 +235,7 @@ When the geo-primary Arc SQL MI instance becomes available, run the below comman
229
235
230
236
### Directly connected mode
231
237
```azurecli
232
-
az sql instance-failover-group-arc update --name <shared name of DAG> --mi <old primary Arc SQL MI> --role force-secondary --resource-group <resource group>
238
+
az sql instance-failover-group-arc update --name <shared name of FOG> --mi <old primary Arc SQL MI> --role force-secondary --resource-group <resource group>
0 commit comments