Azure-docs: Upload the json files in release task to app configuration

Created on 21 Sep 2019  Â·  6Comments  Â·  Source: MicrosoftDocs/azure-docs

We are keeping the app configuration json file in our git repo for each environment. We want the release pipeline to upload those files to update the configuration in Azure app configuration.

How can we achieve the same?

This is very important for us as making updates from app configuration directly from portal leads to mistakes from devs and we also wants to maintain the tracking of changes in git hub repo.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri2 azure-app-configuratiosvc cxp product-question triaged

All 6 comments

Thanks for the question. We are currently investigating and will update you shortly.

Hi @vikramdadwal you can create a pipeline task, in which you can import configuration from a json file to App Configuration using Azure CLI. Please check out

az appconfig kv import -h

Thank you @zhenlan for your help on this.

@vikramdadwal Hope the above information helps, please let us know if you have any further queries. Thank you

@vikramdadwal Hope the above information helps, will go ahead and close this issue for now. However if you have any other queries please feel free to tag us in your reply and will be more than happy to continue the conversation on this. Thank you

@BharathNimmala-MSFT @zhenlan

Thanks for the quick response. I tried the command in CLI and I was able to upload the file.
But somehow the feature flag setting are not uploaded, though I can see those values in configuration section but feature management section is blank ? Please assist.

@vikramdadwal the CLI import function does not support the feature flag currently. This is something we will be adding in the future. The key-values must follow these conventions to be considered as feature flags and showed up in the feature manager blade in Azure portal. The only workaround I can think of now is to create them as key-values according to the conventions using the Azure CLI (az appconfig kv set ...).

Was this page helpful?
0 / 5 - 0 ratings