I need to update the AzureADuser property companyname with the Physicaldeliveryofficename value. When I use:
Get-AzureADUser -ObjectId TEst_USer@foo.com | Set-AzureADUser -userprincipalname $_.userpricipalname -CompanyName $_.Physicaldeliveryofficename
the companyname property is not updated. I think I'm missing the formatting for the $_.propertyname value to convert to a string for the -companyname property.