Skip to content

Commit 6983463

Browse files
committed
2 parents d54b03c + 214cffd commit 6983463

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

PsLogicAppExtractor/internal/tasks/All/All.task.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2471,6 +2471,10 @@ Task -Name "Set-Arm.Connections.ManagedApis.Storage.BlobOrFile.ListKey.AsArmObje
24712471
$armObj.resources[0].properties.parameters.'$connections'.value.PsObject.Properties | ForEach-Object {
24722472

24732473
if ($_.Value.id -like "*managedApis/azureblob*" -or $_.Value.id -like "*managedApis/azurefile*") {
2474+
2475+
# This should avoid Managed Identity based connections
2476+
if ($_.Value.connectionProperties.authentication.type -eq "ManagedServiceIdentity") { return }
2477+
24742478
$found = $true
24752479

24762480
# Fetch the details from the connection object

PsLogicAppExtractor/internal/tasks/Set-Arm.Connections.ManagedApis.Storage.BlobOrFile.ListKey.AsArmObject.task.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ Task -Name "Set-Arm.Connections.ManagedApis.Storage.BlobOrFile.ListKey.AsArmObje
2525
$armObj.resources[0].properties.parameters.'$connections'.value.PsObject.Properties | ForEach-Object {
2626

2727
if ($_.Value.id -like "*managedApis/azureblob*" -or $_.Value.id -like "*managedApis/azurefile*") {
28+
29+
# This should avoid Managed Identity based connections
30+
if ($_.Value.connectionProperties.authentication.type -eq "ManagedServiceIdentity") { return }
31+
2832
$found = $true
2933

3034
# Fetch the details from the connection object

0 commit comments

Comments
 (0)