Skip to content

Commit 1886cd7

Browse files
Merge pull request #291399 from jonburchel/patch-1
Remove hard coded GUIDs
2 parents b54c355 + 1ed49bf commit 1886cd7

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed

articles/data-factory/create-azure-ssis-integration-runtime-powershell.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,16 +116,25 @@ if(![string]::IsNullOrEmpty($SSISDBServerEndpoint))
116116
}
117117
```
118118

119+
## Get Azure Batch application ID
120+
121+
1. Navigate to [Azure portal](https://portal.azure.com).
122+
1. In the search bar, type `Microsoft Azure Batch`, and select it from the drop-down list, under **Microsoft Entra ID**.
123+
1. On the **Microsoft Azure Batch** page, note down or copy the **Application ID** to the clipboard.
124+
1. In the following script, set the `$BatchApplicationId` variable to this value before running it.
125+
119126
## Configure a virtual network
120127

121128
Add the following script to automatically configure virtual network permissions and settings for your Azure-SSIS integration runtime to join.
122129

123130
```powershell
124131
# Make sure to run this script against the subscription to which the virtual network belongs
132+
133+
$BatchApplicationId = "[REPLACE_WITH_AZURE_BATCH_APP_ID]"
134+
125135
if(![string]::IsNullOrEmpty($VnetId) -and ![string]::IsNullOrEmpty($SubnetName))
126136
{
127137
# Register to the Azure Batch resource provider
128-
$BatchApplicationId = "ddbf3205-c6bd-46ae-8127-60eb93363864"
129138
$BatchObjectId = (Get-AzADServicePrincipal -ServicePrincipalName $BatchApplicationId).Id
130139
Register-AzResourceProvider -ProviderNamespace Microsoft.Batch
131140
while(!(Get-AzResourceProvider -ProviderNamespace "Microsoft.Batch").RegistrationState.Contains("Registered"))
@@ -433,13 +442,15 @@ if(![string]::IsNullOrEmpty($SSISDBServerEndpoint))
433442
}
434443
}
435444
}
436-
437445
### Configure a virtual network
446+
438447
# Make sure to run this script against the subscription to which the virtual network belongs
448+
449+
$BatchApplicationId = "[REPLACE_WITH_AZURE_BATCH_APP_ID]"
450+
439451
if(![string]::IsNullOrEmpty($VnetId) -and ![string]::IsNullOrEmpty($SubnetName))
440452
{
441453
# Register to the Azure Batch resource provider
442-
$BatchApplicationId = "ddbf3205-c6bd-46ae-8127-60eb93363864"
443454
$BatchObjectId = (Get-AzADServicePrincipal -ServicePrincipalName $BatchApplicationId).Id
444455
Register-AzResourceProvider -ProviderNamespace Microsoft.Batch
445456
while(!(Get-AzResourceProvider -ProviderNamespace "Microsoft.Batch").RegistrationState.Contains("Registered"))

articles/data-factory/join-azure-ssis-integration-runtime-virtual-network-powershell.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,25 @@ $FirstPublicIP = "[your first public IP address resource ID or leave it empty]"
3535
$SecondPublicIP = "[your second public IP address resource ID or leave it empty]"
3636
```
3737

38+
## Get Azure Batch application ID
39+
40+
1. Navigate to [Azure portal](https://portal.azure.com).
41+
1. In the search bar, type `Microsoft Azure Batch`, and select it from the drop-down list, under **Microsoft Entra ID**.
42+
1. On the **Microsoft Azure Batch** page, note down or copy the **Application ID** to the clipboard.
43+
1. In the following script, set the `$BatchApplicationId` variable to this value before running it.
44+
3845
## Configure a virtual network
3946

4047
Before you can join your Azure-SSIS IR to a virtual network, you need to configure the virtual network. To automatically configure virtual network permissions and settings for your Azure-SSIS IR to join a virtual network, add the following script:
4148

4249
```powershell
4350
# Make sure to run this script against the subscription to which the virtual network belongs.
51+
52+
$BatchApplicationId = "[REPLACE_WITH_AZURE_BATCH_APP_ID]"
53+
4454
if(![string]::IsNullOrEmpty($VnetId) -and ![string]::IsNullOrEmpty($SubnetName))
4555
{
4656
# Register to the Azure Batch resource provider
47-
$BatchApplicationId = "ddbf3205-c6bd-46ae-8127-60eb93363864"
4857
$BatchObjectId = (Get-AzADServicePrincipal -ServicePrincipalName $BatchApplicationId).Id
4958
Register-AzResourceProvider -ProviderNamespace Microsoft.Batch
5059
while(!(Get-AzResourceProvider -ProviderNamespace "Microsoft.Batch").RegistrationState.Contains("Registered"))

0 commit comments

Comments
 (0)