I am adding an answer here as I found about this page from Microsoft answer, but following these steps still didn't solve my problem.
After all the steps above, I also needed to register Microsoft.App resource provider