'CI/CD for Bitbucket to Azure Virtual Machine

I already had a Nodejs App with MongoDB deployed on Azure VM. (I followed the YouTube Tutorial)

Currently, I manually update the branch using git pull and then pm2 restart app.ts.

How do I implement CI/CD from the bitbucket to trigger my VM for automated update?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source