Hi Juancho ,
Not sure if these options can help tshoot your issue, you can try these basic steps also look into the Azure logs for more details of your issue.
Option 1
==========
This looks like to be issue from extension deployment during the VM deployment. Most of the time, the issue should get resolved when you retry the deployment.
If the issue persists even after the re-try, as this is more of an technical issue rather than a Programming issue, I would recommend you to create an technical support case to Azure technical teams. They would help you with resolving the issue.
Reference to create a Support ticket to Azure Support teams : https://learn.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request
Azure portal: In the portal, select the VM and in the left pane under the Support + troubleshooting, select Redeploy + reapply, then select Reapply.
Option 2
==========
One of the reasons that the deployment for virtual machine initiated failed could be due to the virtual CPU quota being exceeded for the requested resource.
Please follow the steps in this document to check your subscription limits and quotas: https://learn.microsoft.com/en-us/azure/networking/check-usage-against-limits#azure-portal5
In case this is the reason, you would need to request quota increase to resolve this issue. The steps are described here.
https://learn.microsoft.com/en-us/azure/azure-portal/supportability/per-vm-quota-requests
Also, please note that the quota increment depends on the volume of demand in the region.
Please check the quota and let me know if you are still seeing issues.
Thanks.
HTH