Azure / Azure/azure-powershell

[Feature]: Add parameter to support overwrite files for New-AzCostManagementExport

Open
#24,784 6 comments 1 reaction 0 assignees View on GitHub
act-codegen-extensibility-squad Consumption - UsageDetailsAndExport customer-reported feature-request Service Attention
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:
![image](https://github.com/Azure/azure-powershell/assets/8240219/2a0cb578-0018-4d0b-8708-a3e72f754a68)

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.