title: Covert ObjectID to displayname from Azure
body: <p>Hi I'm trying to convert objectID to display name from logs in Azure. So the trouble I'm running into is that I have the ps script but can't get it to work for created account for my alerts.  It seems that the request body field keeps giving me errors.</p>
  <pre><code>        $responseBodyObject = ConvertFrom-Json $_.Properties.Content.responseBody
          $principalId = $responseBodyObject.properties.principalId
          Write-Host &quot;PrincipalID: $($principalId)&quot;
          $azUser = Get-AzADUser -ObjectId $principalId
          Write-Host &quot;User: $($azUser.DisplayName)&quot;
  </code></pre>
  <p>ERROR MESSAGE</p>
  <pre><code>`Get-AzADUser : Cannot bind argument to parameter 'ObjectId' because it is an empty string.
  At C:\xxxx\xxxx\xxxxx\xxxxxx.ps1:33 char:36
  +         $azUser = Get-AzADUser -ObjectId $principalId
  +                                          ~~~~~~~~~~~~
      + CategoryInfo          : InvalidData: (:) [Get-AzADUser], ParameterBindingValidationException
      + FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Get-AzADUser
  </code></pre>