Deploy a React App on Azure with Bitbucket pipelines

I use Bitbucket for its private repos and recently decided to deploy my app to Azure. I was determined to do it with a pipeline, but it took some research to finally get it to work. If you want to follow the same path, here is what you have to do.

Prerequisites

A React app — I created one using npx create-react-app <APP-NAME>.