Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run a show command with a wildcard for label? #905

Closed
cveld opened this issue Apr 25, 2024 · 1 comment
Closed

How to run a show command with a wildcard for label? #905

cveld opened this issue Apr 25, 2024 · 1 comment
Assignees
Labels
cli Issues relating to the App Configuration Hubs CLI. question

Comments

@cveld
Copy link

cveld commented Apr 25, 2024

I am looking for a way to run az appconfig kv show to query for a key or key wildcard expression to get results irrespective from the label value.

I tried:
az appconfig kv show --key $SettingKey --name $appconfig --label *
but it does not yield any result.

The rest api on the other hand works flawlessly:
$result = Invoke-AzCli rest --uri "https://$($appconfig).azconfig.io/kv?key=$settingKey&label=*&api-version=2023-10-01" --resource https://$appconfig.azconfig.io

@albertofori albertofori self-assigned this Apr 25, 2024
@albertofori
Copy link
Member

albertofori commented Apr 25, 2024

Hello @cveld, the cli has a az appconfig kv list command that can be used to list key-values using wildcard expressions for the key and label.

To list key-value with a given key irrespective of the label, omit the label argument.
az appconfig kv list --key $SettingKey --name $appconfig

Kindly let me know if this works for your use case.

Thanks!

@zhenlan zhenlan added cli Issues relating to the App Configuration Hubs CLI. question labels Apr 25, 2024
@cveld cveld closed this as completed Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Issues relating to the App Configuration Hubs CLI. question
Projects
None yet
Development

No branches or pull requests

3 participants