title | description | services | author | ms.service | ms.topic | ms.date | ms.author |
---|---|---|---|---|---|---|---|
Import or export data with Azure App Configuration |
Learn how to import or export data to or from Azure App Configuration |
azure-app-configuration |
lisaguthrie |
azure-app-configuration |
conceptual |
02/25/2020 |
lcozzens |
Azure App Configuration supports data import and export operations. Use these operations to work with configuration data in bulk and exchange data between your App Configuration store and code project. For example, you can set up one App Configuration store for testing and another for production. You can copy application settings between them so that you don't have to enter data twice.
This article provides a guide for importing and exporting data with App Configuration. If you’d like to set up an ongoing sync with your GitHub repo, take a look at our GitHub Action.
Import brings configuration data into an App Configuration store from an existing source. Use the import function to migrate data into an App Configuration store or aggregate data from multiple sources. App Configuration supports importing from a JSON, YAML, or properties file.
Import data by using either the Azure portal or the Azure CLI. From the Azure portal, follow these steps:
-
Browse to your App Configuration store, and select Import/Export from the Operations menu.
-
On the Import tab, select Source service > Configuration File.
-
Select For language and select your desired input type.
-
Select the Folder icon, and browse to the file to import.
-
Select a Separator, and optionally enter a Prefix to use for imported key names.
-
Optionally, select a Label.
-
Select Apply to finish the import.
Export writes configuration data stored in App Configuration to another destination. Use the export function, for example, to save data in an App Configuration store to a file that's embedded with your application code during deployment.
Export data by using either the Azure portal or the Azure CLI. From the Azure portal, follow these steps:
-
Browse to your App Configuration store, and select Import/Export.
-
On the Export tab, select Target service > Configuration File.
-
Optionally enter a Prefix and select a Label and a point-in-time for keys to be exported.
-
Select a File type > Separator.
-
Select Apply to finish the export.
[!div class="nextstepaction"] Create an ASP.NET Core web app