0

-- I am exploring Azure functionality and am wondering if Azure Table Storage can be an easy way for holding application configuration for an entire environment. It would be easy to see and change (adding list values etc.). Can someone please guide me on whether this is a good idea? I would expect this table to hold no more than 2000 rows if all our applications were moved over to Azure.

   Partition Key --> Project Name + Component Name (Azure Function/Logic App)

   Row Key --> Parameter Key

   Value column --> Parameter Value

-- For securing password/keys, I can use the Azure Key Vault.

3
  • 1
    There's really no "right" answer to this. Table Storage might work well for you, but how would you manage the lifetime of settings? (in other words: How will you version them, edit them, etc) - this is in contrast to a configuration file, which can be stored in something like git, and be updated over time with related history. Jan 27, 2020 at 3:25
  • Good point David. Jan 27, 2020 at 17:10
  • Looks like an Azure Storage Table can be exported to a CSV file using PowerShell and stored in git. (mmaitre314.github.io/2014/11/25/…) Jan 27, 2020 at 17:20

3 Answers 3

1

There are different ways of storing application configurations:

  1. Key Vault (as you stated) for sensitive information. Ex. tokens, keys, connection strings. It can be standardized and extended to any type of resources for ease of storing and retrieving these.
  2. Application Settings, found under each App Service. This approach assumes you have an App Service for each of your app.
  3. Release Pipeline, such as Azure DevOps Services (AzDo). AzDo has variables that can be global to the release pipeline or some that can be specific to each stages
0
1

I am exploring Azure functionality and am wondering if Azure Table Storage can be an easy way for holding application configuration for an entire environment. It would be easy to see and change (adding list values etc.). Can someone please guide me on whether this is a good idea?

Considering Azure Tables is a key/value pair store, it is certainly a good idea to store application configuration values there. Only thing I would recommend is that you incorporate some kind of caching layer between your application and table storage so that you don't end up making calls to table storage every time you need to fetch a setting.

I would expect this table to hold no more than 2000 rows if all our applications were moved over to Azure.

Considering the number of entities is going to be less than 2000, I think your design would have no impact in querying the entities however I think your design is good. For best performance, please ensure that you're including both PartitionKey and RowKey while querying. At the very least, include PartitionKey in your query.

Please see this for more details: https://learn.microsoft.com/en-us/azure/cosmos-db/table-storage-design-guide.

For securing password/keys, I can use the Azure Key Vault.

That's the way to go for storing sensitive data in Azure.

1
  • Thank you Gaurav. Yes, I plan to use both the PartitionKey and RowKey for querying as only when used together are they unique in my design. Good point on the caching. I was thinking of getting all the configuration records for the logic app/azure function at the beginning of execution. is that good enough? Jan 27, 2020 at 1:35
1

Have you looked at the App Configuration service?

There are client libraries in .NET, Java, TypeScript and Python to interact with the service that you can leverage in your application.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.