Skip to content

Commit 6371f76

Browse files
Clare Zheng (Shanghai Wicresoft Co Ltd)Clare Zheng (Shanghai Wicresoft Co Ltd)
authored andcommitted
Remove comments
1 parent 1c9f6c1 commit 6371f76

File tree

1 file changed

+1
-42
lines changed

1 file changed

+1
-42
lines changed

Connector/FindImpactedObjects.ps1

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -207,45 +207,4 @@ foreach ($df in $dataFactories) {
207207
} catch {
208208
Write-Host "Failed to fetch linked services for $dataFactoryName" -ForegroundColor Red
209209
}
210-
}
211-
212-
# Sometimes, Get-AzDataFactoryV2LinkedService will fail to deserialize the payload due to invalid payload, or out-of-date version, let's use Rest API instead
213-
# foreach ($df in $dataFactories) {
214-
# $dataFactoryName = $df.DataFactoryName
215-
# $resourceGroup = $df.ResourceGroupName
216-
# Write-Host "Data Factory $dataFactoryName (Resource Group $resourceGroup)" -ForegroundColor Green
217-
218-
# # Get all Linked Services for this Data Factory
219-
# $linkedServices = Get-AzDataFactoryV2LinkedService -ResourceGroupName $resourceGroup -DataFactoryName $dataFactoryName
220-
221-
# if ($linkedServices.Count -gt 0) {
222-
# foreach ($ls in $linkedServices) {
223-
# $type = $ls.Properties.GetType().Name -replace 'LinkedService$', ''
224-
# # Find all the legacy types
225-
# if ($LegacyLSTypes -contains $type) {
226-
# Write-Host "$dataFactoryName, $($ls.Name), $type"
227-
# }
228-
229-
# # Find v1 versions.
230-
# if ($LSWithV1Types -contains $type) {
231-
# $version = $ls.Properties.version
232-
# if ($version -ne "2.0") { # skip version 2.0
233-
# switch ($type) { # We need some custom logic per types
234-
# "MySql" {
235-
# $connectionString = $ls.Properties.ConnectionString
236-
# if (-not [string]::IsNullOrEmpty($connectionString)) {
237-
# Write-Host "$dataFactoryName, $($ls.Name), $type"
238-
# }
239-
# break
240-
# }
241-
# default {
242-
# Write-Host "$dataFactoryName, $($ls.Name), $type"
243-
# break
244-
# }
245-
# }
246-
# }
247-
# }
248-
249-
# }
250-
# }
251-
# }
210+
}

0 commit comments

Comments
 (0)