Follow this article to create an Azure hosted Build machine : https://ariste.info/en/2020/05/azure-hosted-build-dynamics365-finance-scm/#configure-pipeline
You can automate the process of building X++ code and creating deployable packages on any build agent that run on Microsoft Windows.
These agents include Microsoft-hosted agents. This approach helps you avoid the setup, maintenance, and cost of deploying build virtual machines (VMs).
It also lets you reuse the existing setup of build agents to run other .NET build automation.
Thanks Adrià Ariste Santacreu for sharing this article