Skip to content

Commit 842dad5

Browse files
authored
Update managed-instance-disaster-recovery.md
some updates based on feedback
1 parent 1ec9439 commit 842dad5

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

articles/azure-arc/data/managed-instance-disaster-recovery.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,14 @@ Azure failover groups use the same distributed availability groups technology th
2727
## Prerequisites
2828

2929
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`
3232

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.
3335
3436
## 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:
3638
1. Create custom resource for distributed availability group at the primary site
3739
1. Create custom resource for distributed availability group at the secondary site
3840
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
5355
Follow the steps below if the Arc data services was deployed in `directly` connected mode.
5456
Once the prerequisites are met, run the below command to setup Azure failover group between the two Arc enabled SQL managed instances:
5557

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>
60+
```
61+
Example:
5662
```azurecli
5763
az sql instance-failover-group-arc create --name sql-fog --mi sql1 --partner-mi sql2 --resource-group rg-name --partner-resource-group rg-name
5864
```
@@ -123,7 +129,7 @@ Follow the steps below if the Arc data services was deployed in `indirectly` con
123129
> Ensure the SQL instances have different names for both primary and secondary sites, and the `shared-name` value should be identical on both sites.
124130
125131
```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
127133
```
128134
129135
Example:
@@ -134,7 +140,7 @@ Follow the steps below if the Arc data services was deployed in `indirectly` con
134140
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.
135141
136142
```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
138144
```
139145
140146
Example:
@@ -181,7 +187,7 @@ Use `az sql instance-failover-group-arc update ...` command group to initiate a
181187
Run the following command to initiate a manual failover, in `direct` connected mode using ARM APIs:
182188

183189
```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>
185191
```
186192
Example:
187193

@@ -192,7 +198,7 @@ az sql instance-failover-group-arc update --name myfog --mi sqlmi1 --role second
192198
Run the following command to initiate a manual failover, in `indirect` connected mode using kubernetes APIs:
193199

194200
```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
196202
```
197203

198204
Example:
@@ -212,7 +218,7 @@ On the geo-secondary DR instance, run the following command to promote it to pri
212218
213219
### Directly connected mode
214220
```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
216222
```
217223
Example:
218224

@@ -229,7 +235,7 @@ When the geo-primary Arc SQL MI instance becomes available, run the below comman
229235

230236
### Directly connected mode
231237
```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>
233239
```
234240

235241
### Indirectly connected mode

0 commit comments

Comments
 (0)