build: adjust for changes in the Az.Accounts module (#19020)

(cherry picked from commit 4cf492e36bbb4f26769b71c586d402957310d764)
Service-Card-Id: PVTI_lADOAF3p4s4AmhmQzgbYQ_g
Service-Version: 1.22
This commit is contained in:
Dustin L. Howett 2025-06-18 18:04:45 -05:00 committed by Dustin L. Howett
parent 7c9841604d
commit 43f800d043

View File

@ -61,7 +61,7 @@ jobs:
pwsh: true
ScriptType: InlineScript
Inline: |-
$AzToken = (Get-AzAccessToken -ResourceUrl api://30471ccf-0966-45b9-a979-065dbedb24c1).Token
$AzToken = (Get-AzAccessToken -AsSecureString -ResourceUrl api://30471ccf-0966-45b9-a979-065dbedb24c1).Token | ConvertFrom-SecureString -AsPlainText
Write-Host "##vso[task.setvariable variable=SymbolAccessToken;issecret=true]$AzToken"