File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
src/Authentication/Authentication
Utilities/Runtime/Cmdlets Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,8 @@ protected override void ProcessRecord()
4949 . Distinct ( ) ;
5050
5151 output = aliases . DefaultIfEmpty ( "''" ) . ToArray ( ) ;
52- } else
52+ }
53+ else
5354 {
5455 var names = functionInfos . Select ( fi => fi . Name ) . Distinct ( ) ;
5556 output = names . DefaultIfEmpty ( "''" ) . ToArray ( ) ;
Original file line number Diff line number Diff line change 22# Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
33# ------------------------------------------------------------------------------
44
5- Set-StrictMode - Version 6.0
5+ Set-StrictMode - Version 2
66
77. " $psscriptroot /common/Permissions.ps1"
88
Original file line number Diff line number Diff line change 22# Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
33# ------------------------------------------------------------------------------
44
5- Set-StrictMode - Version 6.0
5+ Set-StrictMode - Version 2
66
77$Permissions_msGraphApplicationId = ' 00000003-0000-0000-c000-000000000000'
88
@@ -34,7 +34,7 @@ function Permissions_GetPermissionsData([bool] $online) {
3434 # Make a REST request to MS Graph to get the permissions data from the Microsoft Graph service principal
3535 if ( $online -or ! $_permissions.msGraphServicePrincipal -or ! $_permissions.isFromInvokeMgGraphRequest ) {
3636 try {
37- $restResult = Invoke-MgGraphRequest - method GET $_permissions.msGraphPermissionsRequestUri
37+ $restResult = Invoke-MgGraphRequest - method GET - OutputType PSObject $_permissions.msGraphPermissionsRequestUri
3838
3939 if ( $restResult ) {
4040 $_permissions.msGraphServicePrincipal = $restResult | Select-Object - ExpandProperty value
You can’t perform that action at this time.
0 commit comments