AppConfiguration icon indicating copy to clipboard operation
AppConfiguration copied to clipboard

[feature request] dry run support for azure app configuration cli

Open hereicq opened this issue 10 months ago • 4 comments

Currently, in the Azure App Configuration CLI, when we import an app configuration, the preview results are displayed, and user confirmation is required if the --yes parameter is not specified. This feature is very helpful for previewing the impact of the configuration import. However, this functionality only works when the --yes parameter is turned off.

To make the preview results even more useful, I would like to suggest the introduction of a "dry run" feature. This feature would return the preview results to the CLI caller, allowing them to evaluate the impact of the command and decide whether to proceed with the command execution.

Thank you for considering this request. I believe this enhancement will provide more flexibility and improve the overall user experience when working with the Azure App Configuration CLI.

hereicq avatar Feb 11 '25 02:02 hereicq

@zhenlan could you please help review this feature request?

hereicq avatar Feb 12 '25 06:02 hereicq

@hereicq I wanted to confirm about the feature request dry-run. Are you suggesting that when running the import command with the dry-run option, the CLI shows you the preview. It doesn't ask for confirmation, and the command doesn't execute anything. You simply review the preview and decide later if you want to perform the real import.

ChristineWanjau avatar Feb 12 '25 07:02 ChristineWanjau

@ChristineWanjau exactly! something like the kv_diff or (kvs_to_delete + kvs_to_write) dict should be very helpful for review.

hereicq avatar Feb 13 '25 02:02 hereicq

@hereicq Thank you for your feedback and taking time to share this request with us. We will be working on adding this feature to our cli, and we’ll keep you updated on our progress.

ChristineWanjau avatar Feb 14 '25 09:02 ChristineWanjau

@hereicq dry-run support has been added in the cli v2.75.0. You can just use the --dry-run feature this way: az appconfig kv import -n MyAppConfiguration -s file --path D:/abc.json --format json --dry-run

ChristineWanjau avatar Aug 05 '25 18:08 ChristineWanjau