Update to newer resource id for open source api (#6006)

Co-authored-by: Wes Haggard <Wes.Haggard@microsoft.com>
This commit is contained in:
Azure SDK Bot 2024-09-18 15:00:28 -07:00 committed by GitHub
parent c363627f27
commit fdfc6e0324
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,7 +10,7 @@ function Generate-AadToken ($TenantId, $ClientId, $ClientSecret)
"grant_type" = "client_credentials"
"client_id" = $ClientId
"client_secret" = $ClientSecret
"resource" = "api://2789159d-8d8b-4d13-b90b-ca29c1707afd"
"resource" = "api://2efaf292-00a0-426c-ba7d-f5d2b214b8fc"
}
Write-Host "Generating aad token..."
$resp = Invoke-RestMethod $LoginAPIBaseURI -Method 'POST' -Headers $headers -Body $body