Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
andikrueger committed Aug 29, 2022
1 parent af1ca24 commit bd13d30
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Modules/Microsoft365DSC/Modules/M365DSCTelemetryEngine.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -335,15 +335,15 @@ function Format-M365DSCTelemetryParameters
{
$data.Add("Resource", $ResourceName)
$data.Add("Method", $CommandName)
if (-not $ApplicationId)
if (-not $Parameters.ApplicationId)
{
$data.Add("Principal", $Parameters.Credential.UserName)
$data.Add("TenantId", $Parameters.Credential.UserName.Split('@')[1])
}
else
{
$data.Add("Principal", $Parameter.ApplicationId)
$data.Add("TenantId", $TenantId)
$data.Add("Principal", $Parameters.ApplicationId)
$data.Add("TenantId", $Parameters.TenantId)
}
$data.Add("ConnectionMode", (Get-M365DSCAuthenticationMode -Parameters $Parameters))
}
Expand Down

0 comments on commit bd13d30

Please sign in to comment.