Search code examples
c#.netazurecloudazure-worker-roles

changing config settings in Azure programmatically


I am writing a worker role that runs continuously, but I want to store the latest time it has run in a configuration setting that we use to timebox our queries so we run as few as possible. Currently I am storing this date in Azure table storage, but I'm moving most of the other config settings to Azure so I started to wonder:

  1. Is it possible to programmatically change config settings in Azure from a worker role?
  2. Is this even a good idea, or should configuration settings be reserved for values that don't change very often?
  3. If it isn't a good idea, what's the best place to store a value like this? Keep it in table storage?

Thanks in advance!


Solution

  • I had similar requirement and used a Azure Storage Table to maintain task execution history. On each successive execution. Table doesn't even have to have any additional column as Timestamp property of the storage table entity tells the time at which the row was updated. In my implementation I just use PartitionKey, RowKey and Timestamp