Azure / Azure/azure-powershell
[Feature]: Add parameter to support overwrite files for New-AzCostManagementExport
- Dominant language
- C#
- Stars
- 4.8k
- Forks
- 4.3k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 51
Description
### Description of the new feature
Hi!
The possibility for the Azure Cost Exports to overwrite the files created the previous day is already supported in the Azure Portal under Preview. It looks like a great feature that could lead to cost savings, because it avoids having the cost data duplicated many times. Please see the image from [the official documentation](https://learn.microsoft.com/en-us/azure/cost-management-billing/costs/tutorial-improved-exports), it shows the 'Overwrite data' option:

The way to set up Azure Cost Exports automatically is to use the command [New-AzCostManagementExport](https://learn.microsoft.com/en-us/powershell/module/az.costmanagement/new-azcostmanagementexport?view=azps-11.5.0). The command currently supports many parameters, but it does not support overwriting the files.
Is this perhaps already planned to be implemented in the New-AzCostManagementExport command any time soon?
### Proposed implementation details (optional)
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.