Skip to content

Latest commit

 

History

History
63 lines (37 loc) · 2.87 KB

howto-import-export-data.md

File metadata and controls

63 lines (37 loc) · 2.87 KB
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

Import or export configuration data

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 data

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:

  1. Browse to your App Configuration store, and select Import/Export from the Operations menu.

  2. On the Import tab, select Source service > Configuration File.

  3. Select For language and select your desired input type.

  4. Select the Folder icon, and browse to the file to import.

    Import file

  5. Select a Separator, and optionally enter a Prefix to use for imported key names.

  6. Optionally, select a Label.

  7. Select Apply to finish the import.

    Import file finished

Export data

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:

  1. Browse to your App Configuration store, and select Import/Export.

  2. On the Export tab, select Target service > Configuration File.

  3. Optionally enter a Prefix and select a Label and a point-in-time for keys to be exported.

  4. Select a File type > Separator.

  5. Select Apply to finish the export.

    Export file finished

Next steps

[!div class="nextstepaction"] Create an ASP.NET Core web app