Foto's uploaden naar Azure kan met het volgende script:

#upload photo's
Install-Module Microsoft.Graph -Scope CurrentUser
Connect-MgGraph -Scopes "User.ReadWrite.All"
$Photos=Get-childitem "c:\temp\profilepictures"
foreach ($photo in $photos) {
$email=$photo.BaseName+"@domeinnaam.nl"
$Directory=$photo.fullname
write-host "Uploading $Directory to $Email"
set-mgUserPhotoContent -userID $Email -InFile $Directory
}