This issue still exists in the latest 12.04, 14.04, and 14.10 images in Azure
On 12.04:
# userdel -f -r azureuser
userdel: user azureuser is currently logged in
userdel: warning: can't remove /var/mail/azureuser: No such file or directory
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
On 14.04 and 14.10:
# userdel -f -r azureuser
userdel: user azureuser is currently used by process 1783
userdel: cannot open /etc/subuid
This issue still exists in the latest 12.04, 14.04, and 14.10 images in Azure
On 12.04: azureuser: No such file or directory
# userdel -f -r azureuser
userdel: user azureuser is currently logged in
userdel: warning: can't remove /var/mail/
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
On 14.04 and 14.10:
# userdel -f -r azureuser
userdel: user azureuser is currently used by process 1783
userdel: cannot open /etc/subuid