Azure App Config import cli command: How can I show preview when passing in -y flag

  Kiến thức lập trình

Currently when I try to update azure app config I can do this:

az appconfig kv import -n my-app-config-store --label test -s file --format json --path "file.json" --content-type "application/json" --separator : --depth 3

This will prompt me something like this:

---------------- Key Values Preview ----------------

Updating:
- {"key": "URL", "value": ""www.test.myapp.com""}
+ {"key": "URL", "value": ""www.test2.myapp.com""}

Do you want to continue?
 (y/n): y

now when I update the command to have -y for my pipeline since I want it to be automated, I stop seeing the preview:

az appconfig kv import -n my-app-config-store --label test -s file --format json --path "file.json" --content-type "application/json" --separator : --depth 3 -y

Is there a way to still show the preview with the -y flag? I feel like this is very valuable information that we need in our logging.

LEAVE A COMMENT