Nov 08 2023 12:43 AM
We want to optimize our cost for Defender for Storage by checking the monthly usage of our storage accounts and then configure the best option for each storage account. That would be DfS plan 1 if the SA has less than 5 million transactions ($0.02 per 10K transactions) or DfS plan 2 if it has more than 5 million transactions (fixed $10/month if less than 73 million transactions).
We built a script for this and want to run it on a monthly schedule. Is there any recommendation to schedule it on the first day of the month or on the last day of the month? Taking into account the billing process?
Nov 08 2023 05:35 AM
Hi @Eelco510,
I will try to summarize the advantages and disadvantages of using the script on the first day of the month and on the last day of the month.
Running on the First Day of the Month:
Advantages:
Up-to-Date Information: You'll have access to the most current and accurate usage data from the previous month, which is essential for well-informed decision-making.
Sufficient Time: With the entire month ahead, you can take your time to analyze data, make informed choices, and implement changes, ensuring effective cost optimization.
Maximized Savings: Initiating optimization on the first day enables you to enjoy the benefits of an optimized plan for the entire billing period, potentially leading to the highest cost savings.
Disadvantages:
Running on the Last Day of the Month:
Advantages:
Reduced Immediate Workload: You can set up the script and have fewer immediate responsibilities for most of the month, as it's scheduled to run on the last day.
Disadvantages:
Time Constraints: There's less time available for analyzing data, making decisions, and implementing changes before the new billing cycle begins. This could result in hasty decision-making.
Missed Savings Opportunities: Delaying optimization decisions until the end of the month may lead to missed chances for cost savings since the optimized plan won't be in effect for the entire billing period.
Billing Data Lag: Usage data may not be completely finalized by the last day of the month, potentially leading to less accurate cost optimization decisions.
In summary, running your cost optimization script on the first day of the month provides the advantages of current data, enough time for optimization, and the potential for maximum savings.
On the other hand, scheduling it for the last day of the month reduces immediate workload but carries the risk of rushed decisions and potential missed savings.
Please click Mark as Best Response & Like if my post helped you to solve your issue.
This will help others to find the correct solution easily. It also closes the item.
If the post was useful in other ways, please consider giving it Like.
Kindest regards,
Leon Pavesic
(LinkedIn)