azure-powershell icon indicating copy to clipboard operation
azure-powershell copied to clipboard

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

Open xmik opened this issue 2 years ago • 1 comments

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, it shows the 'Overwrite data' option: image

The way to set up Azure Cost Exports automatically is to use the command New-AzCostManagementExport. 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

xmik avatar May 02 '24 05:05 xmik

If you checkout the payload when you try to create the export, you can see what option is used in the API call

image

You could use that option and create your export using the api. You will need to use the preview version of the api.

BotScriptsOSRS avatar May 03 '24 12:05 BotScriptsOSRS

Thanks, @BotScriptsOSRS! That's helpful

xmik avatar May 07 '24 20:05 xmik