Skip to content

Commit 4e3d7b6

Browse files
committed
Update to allow for running in different clouds
1 parent c0bd526 commit 4e3d7b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

quickstart-templates/msi-as-a-fic-secretless/secretless-graph-request.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@ param
2222
$managedIdentityPrincipalId,
2323
$applicationClientId,
2424
$tenantId
25+
$ficIssuerAudience
2526
)
2627

2728
# Step 1: Acquire token for the managed identity
2829
Connect-AzAccount -Identity -AccountId $managedIdentityPrincipalId
29-
$token = Get-AzAccessToken -ResourceUrl "api://AzureADTokenExchange"
30+
$token = Get-AzAccessToken -ResourceUrl $ficIssuerAudience
3031

3132

3233
# Step 2: Sign in to Azure PowerShell (as the app with the FIC configuration)

0 commit comments

Comments
 (0)