@Aryaa Kotian We do not control the script duration, it completely depends on the code written in the runbook. You would have to look for ways to optimize your script code for it to run faster and look at the time taken by other resources to scale up/down.
FYI: 500 mins free is per subscription and not per account.
EDIT: Thanks for sharing the details. Regarding your concern about the charges you noticed in Tenant A, you can reach out to Azure support for further clarification. Here is the link - https://docs.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request to create support case.
Please see the response to your questions below:
Am i being charged for schedules? There are no charges for schedules themselves. Charges are incurred based on the job run time minutes used by the runbooks.
am i being charged for some logs? You are only charged for the log data stored in the Azure Log Analytics service. There are no additional charges for the service itself
am i being charged for something or anything else when using the runbook to only scale up or scale down? Charges for process automation are based on the number of job run time minutes used in the month. The first 500 minutes are free, and beyond that, the cost is $0.002 per minute.
Hope this answered your questions!
If the response helped, do "Accept Answer" and up-vote it