@Jhon Castañeda Welcome to Microsoft Q&A, Thank you for posting the query!
Firstly, apologies for the delay in responding here and any inconvenience this issue may have caused.
Based on the error the message: By default, your Azure Subscription is not registered with all resource providers and because your Subscription is not registered with Microsoft.Compute resource provider, you're getting this error.
You can use also az command-line tool
To register
az provider register --namespace Microsoft.Compute
Notes: Execute both commands before to log in and switch to the desired subscription
az login
az account set --subscription <name or id>
For more information, please refer to this article: https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/error-register-resource-provider
Hope this helps!
Kindly let us know if the above helps or you need further assistance on this issue.
--------------------------------------------------------------------------------------------------------------------
Please don’t forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.