Skip to content

Commit 5c8238f

Browse files
authored
Merge pull request LogicAppCollaborative#80 from LogicAppCollaborative/development
Release (Fix)
2 parents 5e3220e + 94a298f commit 5c8238f

File tree

2 files changed

+2
-38
lines changed

2 files changed

+2
-38
lines changed

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

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ Task -Name "Set-Arm.Connections.ManagedApis.Eventhub.ManagedIdentity.AsArmObject
767767
$tools = Get-PSFConfigValue -FullName PsLogicAppExtractor.Execution.Tools
768768

769769
$found = $false
770-
$conType = "servicebus"
770+
$conType = "eventhubs"
771771

772772
$armObj = Get-TaskWorkObject
773773

@@ -821,24 +821,6 @@ Task -Name "Set-Arm.Connections.ManagedApis.Eventhub.ManagedIdentity.AsArmObject
821821
$apiObj.properties.displayName = "[parameters('$parmApicId')]"
822822
$apiObj.properties.parameterValueSet.values.namespaceEndpoint.value = $apiObj.properties.parameterValueSet.values.namespaceEndpoint.value.Replace("'##NAMESPACE##'", "parameters('$parmApicNamespace')")
823823

824-
# $idPreSuf = Format-Name -Type "Connection" -Value "$($connectionObj.Name)"
825-
# $nsPreSuf = Format-Name -Type "Connection" -Prefix $Prefix -Suffix "_Namespace" -Value "$($connectionObj.Name)"
826-
827-
# $armObj = Add-ArmParameter -InputObject $armObj -Name "$nsPreSuf" `
828-
# -Type "string" `
829-
# -Value "$resName" `
830-
# -Description "The name of the servicebus namespace. ($($connectionObj.Name))"
831-
832-
# $armObj = Add-ArmParameter -InputObject $armObj -Name "$idPreSuf" `
833-
# -Type "string" `
834-
# -Value $conName `
835-
# -Description "The name / id of the ManagedApi connection object that is being utilized by the Logic App. Will be for the trigger and other actions that depend on connections."
836-
837-
# # Update the api object properties
838-
# $apiObj.Name = "[parameters('$idPreSuf')]"
839-
# $apiObj.properties.displayName = "[parameters('$idPreSuf')]"
840-
# $apiObj.properties.parameterValueSet.values.namespaceEndpoint.value = $apiObj.properties.parameterValueSet.values.namespaceEndpoint.value.Replace("'##NAMESPACE##'", "parameters('$nsPreSuf')")
841-
842824
# Append the new resource to the ARM template
843825
$armObj.resources += $apiObj
844826

PsLogicAppExtractor/internal/tasks/Set-Arm.Connections.ManagedApis.Eventhub.ManagedIdentity.AsArmObject.task.ps1

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Task -Name "Set-Arm.Connections.ManagedApis.Eventhub.ManagedIdentity.AsArmObject
1919
$tools = Get-PSFConfigValue -FullName PsLogicAppExtractor.Execution.Tools
2020

2121
$found = $false
22-
$conType = "servicebus"
22+
$conType = "eventhubs"
2323

2424
$armObj = Get-TaskWorkObject
2525

@@ -73,24 +73,6 @@ Task -Name "Set-Arm.Connections.ManagedApis.Eventhub.ManagedIdentity.AsArmObject
7373
$apiObj.properties.displayName = "[parameters('$parmApicId')]"
7474
$apiObj.properties.parameterValueSet.values.namespaceEndpoint.value = $apiObj.properties.parameterValueSet.values.namespaceEndpoint.value.Replace("'##NAMESPACE##'", "parameters('$parmApicNamespace')")
7575

76-
# $idPreSuf = Format-Name -Type "Connection" -Value "$($connectionObj.Name)"
77-
# $nsPreSuf = Format-Name -Type "Connection" -Prefix $Prefix -Suffix "_Namespace" -Value "$($connectionObj.Name)"
78-
79-
# $armObj = Add-ArmParameter -InputObject $armObj -Name "$nsPreSuf" `
80-
# -Type "string" `
81-
# -Value "$resName" `
82-
# -Description "The name of the servicebus namespace. ($($connectionObj.Name))"
83-
84-
# $armObj = Add-ArmParameter -InputObject $armObj -Name "$idPreSuf" `
85-
# -Type "string" `
86-
# -Value $conName `
87-
# -Description "The name / id of the ManagedApi connection object that is being utilized by the Logic App. Will be for the trigger and other actions that depend on connections."
88-
89-
# # Update the api object properties
90-
# $apiObj.Name = "[parameters('$idPreSuf')]"
91-
# $apiObj.properties.displayName = "[parameters('$idPreSuf')]"
92-
# $apiObj.properties.parameterValueSet.values.namespaceEndpoint.value = $apiObj.properties.parameterValueSet.values.namespaceEndpoint.value.Replace("'##NAMESPACE##'", "parameters('$nsPreSuf')")
93-
9476
# Append the new resource to the ARM template
9577
$armObj.resources += $apiObj
9678

0 commit comments

Comments
 (0)