Can we create packer image from an existing azure windows VM?

Hi Team

I have azure windows vm confiugured with required apps and dependencies . Can i create packer image from this vm ?

If yes , can you please share reference or sample template file