-
Notifications
You must be signed in to change notification settings - Fork 73
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
Allow querying for multiple labels from ARM Template using listKeyValue #412
Comments
@jasonbrisbin sorry for the late response. We are moving away from the https://docs.microsoft.com/en-us/azure/azure-app-configuration/quickstart-resource-manager |
@jasonbrisbin please let us know if you have further questions. Closing for now. |
I don't see where KeyValues would allow for querying a single key with multiple labels as I mentioned initially. Is that possible? |
@jasonbrisbin you will have to query (reference) each key+label individually. |
If a key and label is not found will it throw an error? |
I suppose referencing a key-value that does not exist will cause errors when running the template. @ZhijunZhao can you please confirm? |
@jasonbrisbin Yes, it would throw error like below.
|
The core problem then remains. |
@jasonbrisbin ARM template does not support querying of multiple labels at once. But, @ZhijunZhao, is there a way to achieve what @jasonbrisbin wanted: query for the value of key with an array of labels, returning only the first matching value using what we have today? |
@zhenlan I think what @jasonbrisbin has is a sound case. But we have to add an API to support this. We could improve the |
Can we reopen this? I don't know why it was closed and would very much like this capability. |
@jasonbrisbin sure, reopened. The |
Any updates on this enhancement? |
I have been exploring the integration of App Configuration with ARM templates. Ideally I would like to be able to query for the value of key with an array of labels, returning only the first matching value.
Example scenario:
An overly simple example might be the following.
You can see that I am querying for some configuration Keys for Sku and enableSoftDelete. I am ordering my array of labels from most specific to least in this case. Enabling something like this would allow me to:
The text was updated successfully, but these errors were encountered: