Skip to content

Commit 374f33e

Browse files
authored
Merge pull request #9757 from shawncx/AddSSISStagingProxy
Add Parameters for Set-AzDataFactoryV2IntegrationRuntime
2 parents 53fc708 + 38de552 commit 374f33e

File tree

7 files changed

+1740
-4082
lines changed

7 files changed

+1740
-4082
lines changed

src/DataFactory/DataFactoryV2.Test/ScenarioTests/IntegrationRuntimeTests.ps1

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,21 @@ function Test-SsisAzure-IntegrationRuntime
104104
-Name $dfname `
105105
-Location $dflocation `
106106
-Force
107-
107+
108+
# Prepare proxy selfhsoted IR
109+
$proxyIrName = "proxy-selfhosted-integrationruntime"
110+
$actualProxyIr = Set-AzDataFactoryV2IntegrationRuntime -ResourceGroupName $rgname `
111+
-DataFactoryName $dfname `
112+
-Name $proxyIrName `
113+
-Type 'SelfHosted' `
114+
-Force
115+
Assert-AreEqual $actualProxyIr.Name $proxyIrName
116+
117+
# Prepare proxy linked service
118+
$lsname = "proxy-linkedservice"
119+
$actualProxyLs = Set-AzDataFactoryV2LinkedService -ResourceGroupName $rgname -DataFactoryName $dfname -Name $lsname -File .\Resources\linkedService.json -Force
120+
Assert-AreEqual $actualProxyLs.Name $lsname
121+
108122
$irname = "ssis-azure-ir"
109123
$description = "SSIS-Azure integration runtime"
110124

@@ -143,6 +157,8 @@ function Test-SsisAzure-IntegrationRuntime
143157
-MaxParallelExecutionsPerNode 1 `
144158
-LicenseType LicenseIncluded `
145159
-Edition Enterprise `
160+
-DataProxyIntegrationRuntimeName $proxyIrName `
161+
-DataProxyStagingLinkedServiceName $lsname `
146162
-Force
147163

148164
$expected = Get-AzDataFactoryV2IntegrationRuntime -ResourceGroupName $rgname `
@@ -156,6 +172,10 @@ function Test-SsisAzure-IntegrationRuntime
156172

157173
Wait-Seconds 15
158174
Remove-AzDataFactoryV2IntegrationRuntime -ResourceGroupName $rgname -DataFactoryName $dfname -Name $irname -Force
175+
176+
Remove-AzDataFactoryV2LinkedService -ResourceGroupName $rgname -DataFactoryName $dfname -Name $lsname -Force
177+
178+
Remove-AzDataFactoryV2IntegrationRuntime -ResourceId $actualProxyIr.Id -Force
159179
}
160180
finally
161181
{

0 commit comments

Comments
 (0)