Skip to content

Commit 5154a3e

Browse files
committed
Hot fix v1.0.1 - resolve Connect-Entra in PS 5.x (#1323)
* Hot fix v1.0.1 - resolve Connect-Entra in PS 5.x * Update version v1.0.1
1 parent 72a0868 commit 5154a3e

File tree

4 files changed

+18
-16
lines changed

4 files changed

+18
-16
lines changed

module/Entra/Microsoft.Entra/Authentication/Connect-Entra.ps1

+8-7
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# ------------------------------------------------------------------------------
44

55
function Connect-Entra {
6-
[CmdletBinding(DefaultParameterSetName = 'UserParameterSet', HelpUri = 'https://learn.microsoft.com/powershell/module/microsoft.graph.entra/connect-entra')]
6+
[CmdletBinding(DefaultParameterSetName = 'UserParameterSet', HelpUri = 'https://learn.microsoft.com/powershell/module/microsoft.entra/connect-entra')]
77
param (
88
[Parameter(ParameterSetName = 'UserParameterSet', Position = 1, HelpMessage = 'An array of delegated permissions to consent to.')]
99
[string[]] $Scopes,
@@ -115,9 +115,10 @@ function Connect-Entra {
115115
}
116116
}
117117

118-
clean {
119-
if ($null -ne $steppablePipeline) {
120-
$steppablePipeline.Clean()
121-
}
122-
}
123-
}
118+
# clean block only supported in PowerShell v7.3+
119+
# clean {
120+
# if ($null -ne $steppablePipeline) {
121+
# $steppablePipeline.Clean()
122+
# }
123+
# }
124+
}

module/Entra/config/ModuleMetadata.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"Entra"
3232
],
3333
"releaseNotes": "See https://github.com/microsoftgraph/entra-powershell.",
34-
"version": "1.0.0",
34+
"version": "1.0.1",
3535
"Prerelease": "",
3636
"dotNetVersion":"4.7.2",
3737
"powershellVersion":"5.1"

module/EntraBeta/Microsoft.Entra.Beta/Authentication/Connect-Entra.ps1

+8-7
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# ------------------------------------------------------------------------------
44

55
function Connect-Entra {
6-
[CmdletBinding(DefaultParameterSetName = 'UserParameterSet', HelpUri = 'https://learn.microsoft.com/powershell/module/microsoft.graph.entra/connect-entra')]
6+
[CmdletBinding(DefaultParameterSetName = 'UserParameterSet', HelpUri = 'https://learn.microsoft.com/powershell/module/microsoft.entra/connect-entra')]
77
param (
88
[Parameter(ParameterSetName = 'UserParameterSet', Position = 1, HelpMessage = 'An array of delegated permissions to consent to.')]
99
[string[]] $Scopes,
@@ -115,9 +115,10 @@ function Connect-Entra {
115115
}
116116
}
117117

118-
clean {
119-
if ($null -ne $steppablePipeline) {
120-
$steppablePipeline.Clean()
121-
}
122-
}
123-
}
118+
# clean block only supported in PowerShell v7.3+
119+
# clean {
120+
# if ($null -ne $steppablePipeline) {
121+
# $steppablePipeline.Clean()
122+
# }
123+
# }
124+
}

module/EntraBeta/config/ModuleMetadata.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"Entra"
3333
],
3434
"releaseNotes": "See https://github.com/microsoftgraph/entra-powershell.",
35-
"version": "1.0.0",
35+
"version": "1.0.1",
3636
"Prerelease": "",
3737
"dotNetVersion":"4.7.2",
3838
"powershellVersion":"5.1"

0 commit comments

Comments
 (0)