For many Azure services, billing is indeed done on an hourly basis, but it's essential to differentiate between services charged by actual compute time and those with a minimum time unit charge. For instance:
- Virtual Machines (VMs): Azure VMs are billed by the minute, meaning you're only charged for the number of minutes your VM is running. If you use a VM for 30 minutes, you'll only be charged for 30 minutes of usage.
- Azure Databricks: Billing for Databricks units (DBUs) can be more complex, as it depends on the type of Databricks cluster you're running (interactive or automated), and charges are generally per minute of cluster usage.
- Azure Data Factory: Typically charges for the orchestration of activities and not for the time the service is active/idle. The cost is associated with pipeline runs, activity runs, and triggered runs.
Use Azure Monitor to track the usage and performance metrics of your resources. This includes CPU, memory usage, network activity, etc., which can help identify when a resource is underutilized or idle.
https://learn.microsoft.com/en-us/answers/questions/380422/pricing-vm-hourly-or-minute
https://azure.microsoft.com/en-us/pricing/details/virtual-machine-scale-sets/linux/