Skip to content

Commit a5f303a

Browse files
Clare Zheng (Shanghai Wicresoft Co Ltd)Clare Zheng (Shanghai Wicresoft Co Ltd)
authored andcommitted
Update according to comment
1 parent 229fabc commit a5f303a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Connector/FindImpactedObjects.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ function Get-PlainAccessToken {
1414
$WarningPreference = 'SilentlyContinue'
1515
$token = (Get-AzAccessToken).Token
1616
$WarningPreference = $prev
17-
return $token
17+
18+
$plainToken = [Runtime.InteropServices.Marshal]::PtrToStringBSTR(
19+
[Runtime.InteropServices.Marshal]::SecureStringToBSTR($token)
20+
)
21+
return $plainToken
1822
}
1923

2024
function Get-AllLinkedServices {

0 commit comments

Comments
 (0)