Skip to content

Commit

Permalink
Update ClientId parameter logic
Browse files Browse the repository at this point in the history
  • Loading branch information
WillyMoselhy committed Aug 22, 2024
1 parent d6523b1 commit 873e146
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deploy/bicep/DeployAVDSessionHostReplacer.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -343,11 +343,11 @@ var varReplacementPlanSettings = [
}
{
name: '_ClientId'
value: userAssignedIdentity.properties.clientId
value: UseUserAssignedManagedIdentity ? userAssignedIdentity.properties.clientId : ''
}
{
name: '_TenantId'
value: userAssignedIdentity.properties.tenantId
value: UseUserAssignedManagedIdentity ? userAssignedIdentity.properties.tenantId : ''
}
{
name: '_GraphEnvironmentName'
Expand Down Expand Up @@ -439,7 +439,7 @@ resource userAssignedIdentity 'Microsoft.ManagedIdentity/userAssignedIdentities@
scope: resourceGroup(
split(UserAssignedManagedIdentityResourceId, '/')[2],
split(UserAssignedManagedIdentityResourceId, '/')[4]
) //
)
name: split(UserAssignedManagedIdentityResourceId, '/')[8]
}

Expand Down

0 comments on commit 873e146

Please sign in to comment.