@@ -104,7 +104,21 @@ function Test-SsisAzure-IntegrationRuntime
104
104
- Name $dfname `
105
105
- Location $dflocation `
106
106
- 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
+
108
122
$irname = " ssis-azure-ir"
109
123
$description = " SSIS-Azure integration runtime"
110
124
@@ -143,6 +157,8 @@ function Test-SsisAzure-IntegrationRuntime
143
157
- MaxParallelExecutionsPerNode 1 `
144
158
- LicenseType LicenseIncluded `
145
159
- Edition Enterprise `
160
+ - DataProxyIntegrationRuntimeName $proxyIrName `
161
+ - DataProxyStagingLinkedServiceName $lsname `
146
162
- Force
147
163
148
164
$expected = Get-AzDataFactoryV2IntegrationRuntime - ResourceGroupName $rgname `
@@ -156,6 +172,10 @@ function Test-SsisAzure-IntegrationRuntime
156
172
157
173
Wait-Seconds 15
158
174
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
159
179
}
160
180
finally
161
181
{
0 commit comments