Documentation/Steps to create images using Packer for Azure Virtual machines

Please provide high-level steps / detailed documentation for automating images for virtual machines in Azure
I am not sure where to start. Thank you