Skip to content

Commit 1986851

Browse files
committed
PowerShell updates
1 parent efa515c commit 1986851

4 files changed

+106
-106
lines changed

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

Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -440,37 +440,37 @@ if(![string]::IsNullOrEmpty($SetupScriptContainerSasUri))
440440
if(![string]::IsNullOrEmpty($ExpressCustomSetup))
441441
{
442442
if($ExpressCustomSetup -eq "RunCmdkey")
443-
{
443+
{
444444
$addCmdkeyArgument = "YourFileShareServerName or YourAzureStorageAccountName.file.core.windows.net"
445445
$userCmdkeyArgument = "YourDomainName\YourUsername or azure\YourAzureStorageAccountName"
446446
$passCmdkeyArgument = New-Object Microsoft.Azure.Management.DataFactory.Models.SecureString("YourPassword or YourAccessKey")
447447
$setup = New-Object Microsoft.Azure.Management.DataFactory.Models.CmdkeySetup($addCmdkeyArgument, $userCmdkeyArgument, $passCmdkeyArgument)
448-
}
449-
if($ExpressCustomSetup -eq "SetEnvironmentVariable")
450-
{
448+
}
449+
if($ExpressCustomSetup -eq "SetEnvironmentVariable")
450+
{
451451
$variableName = "YourVariableName"
452452
$variableValue = "YourVariableValue"
453453
$setup = New-Object Microsoft.Azure.Management.DataFactory.Models.EnvironmentVariableSetup($variableName, $variableValue)
454-
}
455-
if($ExpressCustomSetup -eq "SentryOne.TaskFactory")
456-
{
454+
}
455+
if($ExpressCustomSetup -eq "SentryOne.TaskFactory")
456+
{
457457
$licenseKey = New-Object Microsoft.Azure.Management.DataFactory.Models.SecureString("YourLicenseKey")
458458
$setup = New-Object Microsoft.Azure.Management.DataFactory.Models.ComponentSetup($ExpressCustomSetup, $licenseKey)
459-
}
460-
if($ExpressCustomSetup -eq "oh22is.SQLPhonetics.NET")
461-
{
459+
}
460+
if($ExpressCustomSetup -eq "oh22is.SQLPhonetics.NET")
461+
{
462462
$licenseKey = New-Object Microsoft.Azure.Management.DataFactory.Models.SecureString("YourLicenseKey")
463463
$setup = New-Object Microsoft.Azure.Management.DataFactory.Models.ComponentSetup($ExpressCustomSetup, $licenseKey)
464-
}
465-
if($ExpressCustomSetup -eq "oh22is.HEDDA.IO")
466-
{
464+
}
465+
if($ExpressCustomSetup -eq "oh22is.HEDDA.IO")
466+
{
467467
$setup = New-Object Microsoft.Azure.Management.DataFactory.Models.ComponentSetup($ExpressCustomSetup)
468-
}
468+
}
469469
# Create an array of one or more express custom setups
470470
$setups = New-Object System.Collections.ArrayList
471471
$setups.Add($setup)
472472
473-
Set-AzDataFactoryV2IntegrationRuntime -ResourceGroupName $ResourceGroupName `
473+
Set-AzDataFactoryV2IntegrationRuntime -ResourceGroupName $ResourceGroupName `
474474
-DataFactoryName $DataFactoryName `
475475
-Name $AzureSSISName `
476476
-ExpressCustomSetup $setups
@@ -479,29 +479,29 @@ if(![string]::IsNullOrEmpty($ExpressCustomSetup))
479479
# Add self-hosted integration runtime parameters if you configure a proxy for on-premises data accesss
480480
if(![string]::IsNullOrEmpty($DataProxyIntegrationRuntimeName) -and ![string]::IsNullOrEmpty($DataProxyStagingLinkedServiceName))
481481
{
482-
Set-AzDataFactoryV2IntegrationRuntime -ResourceGroupName $ResourceGroupName `
482+
Set-AzDataFactoryV2IntegrationRuntime -ResourceGroupName $ResourceGroupName `
483483
-DataFactoryName $DataFactoryName `
484484
-Name $AzureSSISName `
485485
-DataProxyIntegrationRuntimeName $DataProxyIntegrationRuntimeName `
486486
-DataProxyStagingLinkedServiceName $DataProxyStagingLinkedServiceName
487487
488-
if(![string]::IsNullOrEmpty($DataProxyStagingPath))
489-
{
490-
Set-AzDataFactoryV2IntegrationRuntime -ResourceGroupName $ResourceGroupName `
491-
-DataFactoryName $DataFactoryName `
492-
-Name $AzureSSISName `
493-
-DataProxyStagingPath $DataProxyStagingPath
494-
}
488+
if(![string]::IsNullOrEmpty($DataProxyStagingPath))
489+
{
490+
Set-AzDataFactoryV2IntegrationRuntime -ResourceGroupName $ResourceGroupName `
491+
-DataFactoryName $DataFactoryName `
492+
-Name $AzureSSISName `
493+
-DataProxyStagingPath $DataProxyStagingPath
494+
}
495495
}
496496
497497
# Add public IP address parameters if you bring your own static public IP addresses
498498
if(![string]::IsNullOrEmpty($FirstPublicIP) -and ![string]::IsNullOrEmpty($SecondPublicIP))
499499
{
500500
$publicIPs = @($FirstPublicIP, $SecondPublicIP)
501-
Set-AzDataFactoryV2IntegrationRuntime -ResourceGroupName $ResourceGroupName `
501+
Set-AzDataFactoryV2IntegrationRuntime -ResourceGroupName $ResourceGroupName `
502502
-DataFactoryName $DataFactoryName `
503503
-Name $AzureSSISName `
504-
-PublicIPs $publicIPs
504+
-PublicIPs $publicIPs
505505
}
506506
```
507507

@@ -682,37 +682,37 @@ if(![string]::IsNullOrEmpty($SetupScriptContainerSasUri))
682682
if(![string]::IsNullOrEmpty($ExpressCustomSetup))
683683
{
684684
if($ExpressCustomSetup -eq "RunCmdkey")
685-
{
685+
{
686686
$addCmdkeyArgument = "YourFileShareServerName or YourAzureStorageAccountName.file.core.windows.net"
687687
$userCmdkeyArgument = "YourDomainName\YourUsername or azure\YourAzureStorageAccountName"
688688
$passCmdkeyArgument = New-Object Microsoft.Azure.Management.DataFactory.Models.SecureString("YourPassword or YourAccessKey")
689689
$setup = New-Object Microsoft.Azure.Management.DataFactory.Models.CmdkeySetup($addCmdkeyArgument, $userCmdkeyArgument, $passCmdkeyArgument)
690-
}
691-
if($ExpressCustomSetup -eq "SetEnvironmentVariable")
692-
{
690+
}
691+
if($ExpressCustomSetup -eq "SetEnvironmentVariable")
692+
{
693693
$variableName = "YourVariableName"
694694
$variableValue = "YourVariableValue"
695695
$setup = New-Object Microsoft.Azure.Management.DataFactory.Models.EnvironmentVariableSetup($variableName, $variableValue)
696-
}
697-
if($ExpressCustomSetup -eq "SentryOne.TaskFactory")
698-
{
696+
}
697+
if($ExpressCustomSetup -eq "SentryOne.TaskFactory")
698+
{
699699
$licenseKey = New-Object Microsoft.Azure.Management.DataFactory.Models.SecureString("YourLicenseKey")
700700
$setup = New-Object Microsoft.Azure.Management.DataFactory.Models.ComponentSetup($ExpressCustomSetup, $licenseKey)
701-
}
702-
if($ExpressCustomSetup -eq "oh22is.SQLPhonetics.NET")
703-
{
701+
}
702+
if($ExpressCustomSetup -eq "oh22is.SQLPhonetics.NET")
703+
{
704704
$licenseKey = New-Object Microsoft.Azure.Management.DataFactory.Models.SecureString("YourLicenseKey")
705705
$setup = New-Object Microsoft.Azure.Management.DataFactory.Models.ComponentSetup($ExpressCustomSetup, $licenseKey)
706-
}
707-
if($ExpressCustomSetup -eq "oh22is.HEDDA.IO")
708-
{
706+
}
707+
if($ExpressCustomSetup -eq "oh22is.HEDDA.IO")
708+
{
709709
$setup = New-Object Microsoft.Azure.Management.DataFactory.Models.ComponentSetup($ExpressCustomSetup)
710-
}
710+
}
711711
# Create an array of one or more express custom setups
712712
$setups = New-Object System.Collections.ArrayList
713713
$setups.Add($setup)
714714
715-
Set-AzDataFactoryV2IntegrationRuntime -ResourceGroupName $ResourceGroupName `
715+
Set-AzDataFactoryV2IntegrationRuntime -ResourceGroupName $ResourceGroupName `
716716
-DataFactoryName $DataFactoryName `
717717
-Name $AzureSSISName `
718718
-ExpressCustomSetup $setups
@@ -721,29 +721,29 @@ if(![string]::IsNullOrEmpty($ExpressCustomSetup))
721721
# Add self-hosted integration runtime parameters if you configure a proxy for on-premises data accesss
722722
if(![string]::IsNullOrEmpty($DataProxyIntegrationRuntimeName) -and ![string]::IsNullOrEmpty($DataProxyStagingLinkedServiceName))
723723
{
724-
Set-AzDataFactoryV2IntegrationRuntime -ResourceGroupName $ResourceGroupName `
724+
Set-AzDataFactoryV2IntegrationRuntime -ResourceGroupName $ResourceGroupName `
725725
-DataFactoryName $DataFactoryName `
726726
-Name $AzureSSISName `
727727
-DataProxyIntegrationRuntimeName $DataProxyIntegrationRuntimeName `
728728
-DataProxyStagingLinkedServiceName $DataProxyStagingLinkedServiceName
729729
730-
if(![string]::IsNullOrEmpty($DataProxyStagingPath))
731-
{
732-
Set-AzDataFactoryV2IntegrationRuntime -ResourceGroupName $ResourceGroupName `
733-
-DataFactoryName $DataFactoryName `
734-
-Name $AzureSSISName `
735-
-DataProxyStagingPath $DataProxyStagingPath
736-
}
730+
if(![string]::IsNullOrEmpty($DataProxyStagingPath))
731+
{
732+
Set-AzDataFactoryV2IntegrationRuntime -ResourceGroupName $ResourceGroupName `
733+
-DataFactoryName $DataFactoryName `
734+
-Name $AzureSSISName `
735+
-DataProxyStagingPath $DataProxyStagingPath
736+
}
737737
}
738738
739739
# Add public IP address parameters if you bring your own static public IP addresses
740740
if(![string]::IsNullOrEmpty($FirstPublicIP) -and ![string]::IsNullOrEmpty($SecondPublicIP))
741741
{
742742
$publicIPs = @($FirstPublicIP, $SecondPublicIP)
743-
Set-AzDataFactoryV2IntegrationRuntime -ResourceGroupName $ResourceGroupName `
743+
Set-AzDataFactoryV2IntegrationRuntime -ResourceGroupName $ResourceGroupName `
744744
-DataFactoryName $DataFactoryName `
745745
-Name $AzureSSISName `
746-
-PublicIPs $publicIPs
746+
-PublicIPs $publicIPs
747747
}
748748
749749
### Start the integration runtime

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -522,10 +522,10 @@ Set-AzDataFactoryV2IntegrationRuntime -ResourceGroupName $ResourceGroupName `
522522
if(![string]::IsNullOrEmpty($FirstPublicIP) -and ![string]::IsNullOrEmpty($SecondPublicIP))
523523
{
524524
$publicIPs = @($FirstPublicIP, $SecondPublicIP)
525-
Set-AzDataFactoryV2IntegrationRuntime -ResourceGroupName $ResourceGroupName `
525+
Set-AzDataFactoryV2IntegrationRuntime -ResourceGroupName $ResourceGroupName `
526526
-DataFactoryName $DataFactoryName `
527527
-Name $AzureSSISName `
528-
-PublicIPs $publicIPs
528+
-PublicIPs $publicIPs
529529
}
530530
```
531531

articles/data-factory/self-hosted-integration-runtime-proxy-ssis.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,19 +79,19 @@ $DataProxyStagingPath = "" # OPTIONAL to configure a proxy for on-premises data
7979
# Add self-hosted integration runtime parameters if you configure a proxy for on-premises data accesss
8080
if(![string]::IsNullOrEmpty($DataProxyIntegrationRuntimeName) -and ![string]::IsNullOrEmpty($DataProxyStagingLinkedServiceName))
8181
{
82-
Set-AzDataFactoryV2IntegrationRuntime -ResourceGroupName $ResourceGroupName `
82+
Set-AzDataFactoryV2IntegrationRuntime -ResourceGroupName $ResourceGroupName `
8383
-DataFactoryName $DataFactoryName `
8484
-Name $AzureSSISName `
8585
-DataProxyIntegrationRuntimeName $DataProxyIntegrationRuntimeName `
8686
-DataProxyStagingLinkedServiceName $DataProxyStagingLinkedServiceName
8787
88-
if(![string]::IsNullOrEmpty($DataProxyStagingPath))
89-
{
90-
Set-AzDataFactoryV2IntegrationRuntime -ResourceGroupName $ResourceGroupName `
91-
-DataFactoryName $DataFactoryName `
92-
-Name $AzureSSISName `
93-
-DataProxyStagingPath $DataProxyStagingPath
94-
}
88+
if(![string]::IsNullOrEmpty($DataProxyStagingPath))
89+
{
90+
Set-AzDataFactoryV2IntegrationRuntime -ResourceGroupName $ResourceGroupName `
91+
-DataFactoryName $DataFactoryName `
92+
-Name $AzureSSISName `
93+
-DataProxyStagingPath $DataProxyStagingPath
94+
}
9595
}
9696
Start-AzDataFactoryV2IntegrationRuntime -ResourceGroupName $ResourceGroupName `
9797
-DataFactoryName $DataFactoryName `

articles/data-factory/tutorial-deploy-ssis-packages-azure-powershell.md

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -213,37 +213,37 @@ if(![string]::IsNullOrEmpty($SetupScriptContainerSasUri))
213213
if(![string]::IsNullOrEmpty($ExpressCustomSetup))
214214
{
215215
if($ExpressCustomSetup -eq "RunCmdkey")
216-
{
216+
{
217217
$addCmdkeyArgument = "YourFileShareServerName or YourAzureStorageAccountName.file.core.windows.net"
218218
$userCmdkeyArgument = "YourDomainName\YourUsername or azure\YourAzureStorageAccountName"
219219
$passCmdkeyArgument = New-Object Microsoft.Azure.Management.DataFactory.Models.SecureString("YourPassword or YourAccessKey")
220220
$setup = New-Object Microsoft.Azure.Management.DataFactory.Models.CmdkeySetup($addCmdkeyArgument, $userCmdkeyArgument, $passCmdkeyArgument)
221-
}
222-
if($ExpressCustomSetup -eq "SetEnvironmentVariable")
223-
{
221+
}
222+
if($ExpressCustomSetup -eq "SetEnvironmentVariable")
223+
{
224224
$variableName = "YourVariableName"
225225
$variableValue = "YourVariableValue"
226226
$setup = New-Object Microsoft.Azure.Management.DataFactory.Models.EnvironmentVariableSetup($variableName, $variableValue)
227-
}
228-
if($ExpressCustomSetup -eq "SentryOne.TaskFactory")
229-
{
227+
}
228+
if($ExpressCustomSetup -eq "SentryOne.TaskFactory")
229+
{
230230
$licenseKey = New-Object Microsoft.Azure.Management.DataFactory.Models.SecureString("YourLicenseKey")
231231
$setup = New-Object Microsoft.Azure.Management.DataFactory.Models.ComponentSetup($ExpressCustomSetup, $licenseKey)
232-
}
233-
if($ExpressCustomSetup -eq "oh22is.SQLPhonetics.NET")
234-
{
232+
}
233+
if($ExpressCustomSetup -eq "oh22is.SQLPhonetics.NET")
234+
{
235235
$licenseKey = New-Object Microsoft.Azure.Management.DataFactory.Models.SecureString("YourLicenseKey")
236236
$setup = New-Object Microsoft.Azure.Management.DataFactory.Models.ComponentSetup($ExpressCustomSetup, $licenseKey)
237-
}
238-
if($ExpressCustomSetup -eq "oh22is.HEDDA.IO")
239-
{
237+
}
238+
if($ExpressCustomSetup -eq "oh22is.HEDDA.IO")
239+
{
240240
$setup = New-Object Microsoft.Azure.Management.DataFactory.Models.ComponentSetup($ExpressCustomSetup)
241-
}
241+
}
242242
# Create an array of one or more express custom setups
243243
$setups = New-Object System.Collections.ArrayList
244244
$setups.Add($setup)
245245
246-
Set-AzDataFactoryV2IntegrationRuntime -ResourceGroupName $ResourceGroupName `
246+
Set-AzDataFactoryV2IntegrationRuntime -ResourceGroupName $ResourceGroupName `
247247
-DataFactoryName $DataFactoryName `
248248
-Name $AzureSSISName `
249249
-ExpressCustomSetup $setups
@@ -252,19 +252,19 @@ if(![string]::IsNullOrEmpty($ExpressCustomSetup))
252252
# Add self-hosted integration runtime parameters if you configure a proxy for on-premises data accesss
253253
if(![string]::IsNullOrEmpty($DataProxyIntegrationRuntimeName) -and ![string]::IsNullOrEmpty($DataProxyStagingLinkedServiceName))
254254
{
255-
Set-AzDataFactoryV2IntegrationRuntime -ResourceGroupName $ResourceGroupName `
255+
Set-AzDataFactoryV2IntegrationRuntime -ResourceGroupName $ResourceGroupName `
256256
-DataFactoryName $DataFactoryName `
257257
-Name $AzureSSISName `
258258
-DataProxyIntegrationRuntimeName $DataProxyIntegrationRuntimeName `
259259
-DataProxyStagingLinkedServiceName $DataProxyStagingLinkedServiceName
260260
261-
if(![string]::IsNullOrEmpty($DataProxyStagingPath))
262-
{
263-
Set-AzDataFactoryV2IntegrationRuntime -ResourceGroupName $ResourceGroupName `
264-
-DataFactoryName $DataFactoryName `
265-
-Name $AzureSSISName `
266-
-DataProxyStagingPath $DataProxyStagingPath
267-
}
261+
if(![string]::IsNullOrEmpty($DataProxyStagingPath))
262+
{
263+
Set-AzDataFactoryV2IntegrationRuntime -ResourceGroupName $ResourceGroupName `
264+
-DataFactoryName $DataFactoryName `
265+
-Name $AzureSSISName `
266+
-DataProxyStagingPath $DataProxyStagingPath
267+
}
268268
}
269269
```
270270

@@ -415,37 +415,37 @@ if(![string]::IsNullOrEmpty($SetupScriptContainerSasUri))
415415
if(![string]::IsNullOrEmpty($ExpressCustomSetup))
416416
{
417417
if($ExpressCustomSetup -eq "RunCmdkey")
418-
{
418+
{
419419
$addCmdkeyArgument = "YourFileShareServerName or YourAzureStorageAccountName.file.core.windows.net"
420420
$userCmdkeyArgument = "YourDomainName\YourUsername or azure\YourAzureStorageAccountName"
421421
$passCmdkeyArgument = New-Object Microsoft.Azure.Management.DataFactory.Models.SecureString("YourPassword or YourAccessKey")
422422
$setup = New-Object Microsoft.Azure.Management.DataFactory.Models.CmdkeySetup($addCmdkeyArgument, $userCmdkeyArgument, $passCmdkeyArgument)
423-
}
424-
if($ExpressCustomSetup -eq "SetEnvironmentVariable")
425-
{
423+
}
424+
if($ExpressCustomSetup -eq "SetEnvironmentVariable")
425+
{
426426
$variableName = "YourVariableName"
427427
$variableValue = "YourVariableValue"
428428
$setup = New-Object Microsoft.Azure.Management.DataFactory.Models.EnvironmentVariableSetup($variableName, $variableValue)
429-
}
430-
if($ExpressCustomSetup -eq "SentryOne.TaskFactory")
431-
{
429+
}
430+
if($ExpressCustomSetup -eq "SentryOne.TaskFactory")
431+
{
432432
$licenseKey = New-Object Microsoft.Azure.Management.DataFactory.Models.SecureString("YourLicenseKey")
433433
$setup = New-Object Microsoft.Azure.Management.DataFactory.Models.ComponentSetup($ExpressCustomSetup, $licenseKey)
434-
}
435-
if($ExpressCustomSetup -eq "oh22is.SQLPhonetics.NET")
436-
{
434+
}
435+
if($ExpressCustomSetup -eq "oh22is.SQLPhonetics.NET")
436+
{
437437
$licenseKey = New-Object Microsoft.Azure.Management.DataFactory.Models.SecureString("YourLicenseKey")
438438
$setup = New-Object Microsoft.Azure.Management.DataFactory.Models.ComponentSetup($ExpressCustomSetup, $licenseKey)
439-
}
440-
if($ExpressCustomSetup -eq "oh22is.HEDDA.IO")
441-
{
439+
}
440+
if($ExpressCustomSetup -eq "oh22is.HEDDA.IO")
441+
{
442442
$setup = New-Object Microsoft.Azure.Management.DataFactory.Models.ComponentSetup($ExpressCustomSetup)
443-
}
443+
}
444444
# Create an array of one or more express custom setups
445445
$setups = New-Object System.Collections.ArrayList
446446
$setups.Add($setup)
447447
448-
Set-AzDataFactoryV2IntegrationRuntime -ResourceGroupName $ResourceGroupName `
448+
Set-AzDataFactoryV2IntegrationRuntime -ResourceGroupName $ResourceGroupName `
449449
-DataFactoryName $DataFactoryName `
450450
-Name $AzureSSISName `
451451
-ExpressCustomSetup $setups
@@ -454,19 +454,19 @@ if(![string]::IsNullOrEmpty($ExpressCustomSetup))
454454
# Add self-hosted integration runtime parameters if you configure a proxy for on-premises data accesss
455455
if(![string]::IsNullOrEmpty($DataProxyIntegrationRuntimeName) -and ![string]::IsNullOrEmpty($DataProxyStagingLinkedServiceName))
456456
{
457-
Set-AzDataFactoryV2IntegrationRuntime -ResourceGroupName $ResourceGroupName `
457+
Set-AzDataFactoryV2IntegrationRuntime -ResourceGroupName $ResourceGroupName `
458458
-DataFactoryName $DataFactoryName `
459459
-Name $AzureSSISName `
460460
-DataProxyIntegrationRuntimeName $DataProxyIntegrationRuntimeName `
461461
-DataProxyStagingLinkedServiceName $DataProxyStagingLinkedServiceName
462462
463-
if(![string]::IsNullOrEmpty($DataProxyStagingPath))
464-
{
465-
Set-AzDataFactoryV2IntegrationRuntime -ResourceGroupName $ResourceGroupName `
466-
-DataFactoryName $DataFactoryName `
467-
-Name $AzureSSISName `
468-
-DataProxyStagingPath $DataProxyStagingPath
469-
}
463+
if(![string]::IsNullOrEmpty($DataProxyStagingPath))
464+
{
465+
Set-AzDataFactoryV2IntegrationRuntime -ResourceGroupName $ResourceGroupName `
466+
-DataFactoryName $DataFactoryName `
467+
-Name $AzureSSISName `
468+
-DataProxyStagingPath $DataProxyStagingPath
469+
}
470470
}
471471
472472
### Start integration runtime

0 commit comments

Comments
 (0)