Hi Reza Shamsudin,
Although both answers are correct to some extent, I will provide you with a detailed explanation.
Azure does not include Windows 10 licensing costs in its VM pricing. Customers need to have their own eligible Windows 10 licenses when setting up Windows 10 VMs. There is no per-hour or per-month licensing fee charged by Azure for Windows 10 because Azure does not provide Windows 10 licenses for VMs. After creating VM with your own license costs you incur from Azure will be for the compute, storage, and networking resources based on hour basis.
When you create a Windows Server virtual machine in Azure, the cost of the Windows Server license is already included in the hourly pay of the VM. So, you are charged for the license as part of the overall price. You will only be billed for the time the VM is running. If you stop the VM you won’t charge for the compute resources or the Windows Server license.
You can check the pricing structure for Windows VMs in Azure here
If you have any further queries, please let us know. If the answer is helpful, please Upvote it.
Thank you.