High level step to create images for virtual machines in azure using packer

I have custom images in azure in gallery.

This time I want to automate creating images in azure using packer

I am not sure where to begin , could you please provide me high level steps and detailed documentation to implement this

Thank you

Looking forward to hear.