Skip to content

Commit 5cd12f2

Browse files
authored
indent code blocks under list steps
1 parent b82b1b6 commit 5cd12f2

File tree

1 file changed

+58
-42
lines changed

1 file changed

+58
-42
lines changed

articles/data-factory/configure-bcdr-azure-ssis-integration-runtime.md

Lines changed: 58 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -27,38 +27,43 @@ For more info about geo-replication and failover for SQL Database, see [Overview
2727
## Azure-SSIS IR failover with Azure SQL Database Managed Instance
2828

2929
### Prerequisites
30+
3031
Azure SQL Database Managed Instance uses **database master key (DMK)** to help secure data, credentials, and connection information that is stored in database. To enable the automatic decryption of DMK, a copy of the key is encrypted by using the **server master key (SMK)**. But SMK is not replicated in failover group, so you need to add an additional password on both primary and secondary instances for DMK decryption after failover.
3132

3233
1. Execute below command on the SSISDB on primary instance. This step is adding a new encryption password.
33-
```sql
34-
ALTER MASTER KEY ADD ENCRYPTION BY PASSWORD = 'password'
35-
```
34+
35+
```sql
36+
ALTER MASTER KEY ADD ENCRYPTION BY PASSWORD = 'password'
37+
```
3638

3739
2. Create failover group on Azure SQL Database Managed Instance.
3840

3941
3. Run **sp_control_dbmasterkey_password** on the secondary instance, using the new encryption password.
40-
```sql
41-
EXEC sp_control_dbmasterkey_password @db_name = N'SSISDB',
42-
@password = N'<password>', @action = N'add';
43-
GO
44-
```
42+
43+
```sql
44+
EXEC sp_control_dbmasterkey_password @db_name = N'SSISDB',
45+
@password = N'<password>', @action = N'add';
46+
GO
47+
```
4548

4649
### Scenario 1 - Azure-SSIS IR is pointing to read-write listener endpoint
4750

4851
If you want Azure-SSIS IR point to read-write listener endpoint, you need to point to primary server endpoint first. After putting SSISDB to failover group, you can change to read-write listener endpoint and restart Azure-SSIS IR.
4952

5053
#### Solution
54+
5155
When failover occurs, you have to do the following things:
56+
5257
1. Stop Azure-SSIS IR on primary region.
5358

5459
2. Edit Azure-SSIS IR with new region, VNET and custom setup SAS URI information of secondary instance. As Azure-SSIS IR is pointing to read-write listener and the endpoint is transparent to Azure-SSIS IR, you don't need to edit the endpoint.
5560
56-
```powershell
57-
Set-AzDataFactoryV2IntegrationRuntime -Location "new region" `
61+
```powershell
62+
Set-AzDataFactoryV2IntegrationRuntime -Location "new region" `
5863
-VNetId "new VNet" `
5964
-Subnet "new subnet" `
6065
-SetupScriptContainerSasUri "new custom setup SAS URI"
61-
```
66+
```
6267
6368
3. Restart Azure-SSIS IR.
6469
@@ -67,19 +72,21 @@ When failover occurs, you have to do the following things:
6772
The scenario is suitable if Azure-SSIS IR is pointing to primary server endpoint.
6873
6974
#### Solution
75+
7076
When failover occurs, you have to do the following things:
77+
7178
1. Stop Azure-SSIS IR on primary region.
7279
7380
2. Edit Azure-SSIS IR with new region, endpoint and VNET information of secondary instance.
7481
75-
```powershell
76-
Set-AzDataFactoryV2IntegrationRuntime -Location "new region" `
82+
```powershell
83+
Set-AzDataFactoryV2IntegrationRuntime -Location "new region" `
7784
-CatalogServerEndpoint "Azure SQL Database server endpoint" `
7885
-CatalogAdminCredential "Azure SQL Database server admin credentials" `
7986
-VNetId "new VNet" `
8087
-Subnet "new subnet" `
8188
-SetupScriptContainerSasUri "new custom setup SAS URI"
82-
```
89+
```
8390
8491
3. Restart Azure-SSIS IR.
8592
@@ -88,17 +95,19 @@ When failover occurs, you have to do the following things:
8895
The scenario is suitable if the Azure-SSIS IR is pointing to public endpoint of Azure SQL Database Managed Instance and it doesn't join to VNET. The only difference between scenario 2 and this scenarios is that you don't need to edit VNET information of Azure-SSIS IR after failover.
8996
9097
#### Solution
98+
9199
When failover occurs, you have to do the following things:
100+
92101
1. Stop Azure-SSIS IR on primary region.
93102
94103
2. Edit Azure-SSIS IR with new region and endpoint information of secondary instance.
95104
96-
```powershell
97-
Set-AzDataFactoryV2IntegrationRuntime -Location "new region" `
105+
```powershell
106+
Set-AzDataFactoryV2IntegrationRuntime -Location "new region" `
98107
-CatalogServerEndpoint "Azure SQL Database server endpoint" `
99108
-CatalogAdminCredential "Azure SQL Database server admin credentials" `
100109
-SetupScriptContainerSasUri "new custom setup SAS URI"
101-
```
110+
```
102111
103112
3. Restart Azure-SSIS IR.
104113
@@ -107,30 +116,34 @@ When failover occurs, you have to do the following things:
107116
This scenario is suitable if you want to provision a new Azure-SSIS IR on secondary region or you want your SSISDB to keep working with a new Azure-SSIS IR in a new region when an ADF or Azure-SSIS IR disaster occurs in current region.
108117
109118
#### Solution
119+
110120
When failover occurs, you have to do the following things:
121+
111122
> [!NOTE]
112123
> Step 4 (creation of IR) needs to be done via PowerShell. Azure portal will report an error stating that SSISDB already exists.
124+
113125
1. Stop Azure-SSIS IR on primary region.
114126
115127
2. Execute stored procedure to update metadata in SSISDB to accept connections from **\<new_data_factory_name\>** and **\<new_integration_runtime_name\>**.
116128
117-
```SQL
118-
EXEC [catalog].[failover_integration_runtime] @data_factory_name='<new_data_factory_name>', @integration_runtime_name='<new_integration_runtime_name>'
119-
```
129+
```sql
130+
EXEC [catalog].[failover_integration_runtime] @data_factory_name='<new_data_factory_name>', @integration_runtime_name='<new_integration_runtime_name>'
131+
```
120132
121133
3. Create a new data factory named **\<new_data_factory_name\>** in the new region. For more info, see Create a data factory.
122134
123-
```powershell
124-
Set-AzDataFactoryV2 -ResourceGroupName "new resource group name" `
135+
```powershell
136+
Set-AzDataFactoryV2 -ResourceGroupName "new resource group name" `
125137
-Location "new region"`
126138
-Name "<new_data_factory_name>"
127-
```
128-
For more info about this PowerShell command, see [Create an Azure data factory using PowerShell](quickstart-create-data-factory-powershell.md)
139+
```
140+
141+
For more info about this PowerShell command, see [Create an Azure data factory using PowerShell](quickstart-create-data-factory-powershell.md)
129142
130143
4. Create a new Azure-SSIS IR named **\<new_integration_runtime_name\>** in the new region using Azure PowerShell.
131144
132-
```powershell
133-
Set-AzDataFactoryV2IntegrationRuntime -ResourceGroupName "new resource group name" `
145+
```powershell
146+
Set-AzDataFactoryV2IntegrationRuntime -ResourceGroupName "new resource group name" `
134147
-DataFactoryName "new data factory name" `
135148
-Name "<new_integration_runtime_name>" `
136149
-Description $AzureSSISDescription `
@@ -145,9 +158,9 @@ When failover occurs, you have to do the following things:
145158
-Subnet "new subnet" `
146159
-CatalogServerEndpoint $SSISDBServerEndpoint `
147160
-CatalogPricingTier $SSISDBPricingTier
148-
```
161+
```
149162
150-
For more info about this PowerShell command, see [Create the Azure-SSIS integration runtime in Azure Data Factory](create-azure-ssis-integration-runtime.md)
163+
For more info about this PowerShell command, see [Create the Azure-SSIS integration runtime in Azure Data Factory](create-azure-ssis-integration-runtime.md)
151164
152165
153166
@@ -169,19 +182,21 @@ If you want to update the region or other information in Azure-SSIS IR, you can
169182
The scenario is suitable if Azure-SSIS IR is pointing to primary server endpoint.
170183
171184
#### Solution
185+
172186
When failover occurs, you have to do the following things:
187+
173188
1. Stop Azure-SSIS IR on primary region.
174189
175190
2. Edit Azure-SSIS IR with new region, endpoint, and VNET information of secondary instance.
176191
177-
```powershell
178-
Set-AzDataFactoryV2IntegrationRuntime -Location "new region" `
192+
```powershell
193+
Set-AzDataFactoryV2IntegrationRuntime -Location "new region" `
179194
-CatalogServerEndpoint "Azure SQL Database server endpoint" `
180195
-CatalogAdminCredential "Azure SQL Database server admin credentials" `
181196
-VNetId "new VNet" `
182197
-Subnet "new subnet" `
183198
-SetupScriptContainerSasUri "new custom setup SAS URI"
184-
```
199+
```
185200
186201
3. Restart Azure-SSIS IR.
187202
@@ -198,23 +213,24 @@ This scenario is suitable if you want to provision a new Azure-SSIS IR on second
198213
199214
2. Execute stored procedure to update metadata in SSISDB to accept connections from **\<new_data_factory_name\>** and **\<new_integration_runtime_name\>**.
200215
201-
```SQL
202-
EXEC [catalog].[failover_integration_runtime] @data_factory_name='<new_data_factory_name>', @integration_runtime_name='<new_integration_runtime_name>'
203-
```
216+
```sql
217+
EXEC [catalog].[failover_integration_runtime] @data_factory_name='<new_data_factory_name>', @integration_runtime_name='<new_integration_runtime_name>'
218+
```
204219
205220
3. Create a new data factory named **\<new_data_factory_name\>** in the new region. For more info, see Create a data factory.
206221
207-
```powershell
208-
Set-AzDataFactoryV2 -ResourceGroupName "new resource group name" `
222+
```powershell
223+
Set-AzDataFactoryV2 -ResourceGroupName "new resource group name" `
209224
-Location "new region"`
210225
-Name "<new_data_factory_name>"
211-
```
212-
For more info about this PowerShell command, see [Create an Azure data factory using PowerShell](quickstart-create-data-factory-powershell.md)
226+
```
227+
228+
For more info about this PowerShell command, see [Create an Azure data factory using PowerShell](quickstart-create-data-factory-powershell.md)
213229
214230
4. Create a new Azure-SSIS IR named **\<new_integration_runtime_name\>** in the new region using Azure PowerShell.
215231
216-
```powershell
217-
Set-AzDataFactoryV2IntegrationRuntime -ResourceGroupName "new resource group name" `
232+
```powershell
233+
Set-AzDataFactoryV2IntegrationRuntime -ResourceGroupName "new resource group name" `
218234
-DataFactoryName "new data factory name" `
219235
-Name "<new_integration_runtime_name>" `
220236
-Description $AzureSSISDescription `
@@ -229,9 +245,9 @@ This scenario is suitable if you want to provision a new Azure-SSIS IR on second
229245
-Subnet "new subnet" `
230246
-CatalogServerEndpoint $SSISDBServerEndpoint `
231247
-CatalogPricingTier $SSISDBPricingTier
232-
```
248+
```
233249
234-
For more info about this PowerShell command, see [Create the Azure-SSIS integration runtime in Azure Data Factory](create-azure-ssis-integration-runtime.md)
250+
For more info about this PowerShell command, see [Create the Azure-SSIS integration runtime in Azure Data Factory](create-azure-ssis-integration-runtime.md)
235251
236252
237253
## Next steps

0 commit comments

Comments
 (0)