azure-table-storage

Azure table storage names - invalid characters

≡放荡痞女 提交于 2020-06-16 03:05:07
问题 I have the following table names in Azure table storage. Table names are generated automatically in my application and then created using table.CreateIfNotExists(tableName). Some work and some don't. When I dig into the error the extended error information tells me that the resource name contains invalid characters - however I am at a loss to work out what is invalid in the failing names - can anyone spot this? 8836461cc98249bea59dc5f6790d40edstk365developmentusers – the specified resource

Azure Table Storage Incremental backup to Azure Storage Blob

一笑奈何 提交于 2020-03-27 09:12:55
问题 Is there any way I can do Azure Table Storage backup in to Azure Blob incremental way. AZcopy has solution for full backup for the table but not incremental. Is there any way I can recover Azure storage table, If I delete it from Azure storage explorer? 回答1: As far as I know, currently azure doesn't support auto backup the table data into blob. We need write codes to achieve this requirement. I suggest you could use azure webjobs/function or azcopy(as you says) to achieve this. If you want to

How to specify query for Azure Data Factory Source (Azure Table Storage) for yesterday's records

让人想犯罪 __ 提交于 2020-03-25 18:32:41
问题 I am copying records from an Azure Storage Table (source) to Azure Storage Table (sink) everyday. So if I am executing the query on December 24th 2019 (UTC) for instance, then I want to copy records for December 23rd 2019 (UTC). The query works and is doing what I intend it to do. Here is the query: Timestamp ge datetime'2019-12-23T00:00Z' and Timestamp lt datetime'2019-12-24T00:00Z' In the query above, the Timestamp column is automatically stamped in the Azure Storage Table when a new record

Remove columns from Azure Table Storage

情到浓时终转凉″ 提交于 2020-02-07 23:43:17
问题 Here is a snippet of code I am using to read entities from Table storage: public void OnReadingEntity(object sender, ReadingWritingEntityEventArgs args) { XNamespace AtomNamespace = "http://www.w3.org/2005/Atom"; XNamespace AstoriaMetadataNamespace = "http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"; GenericEntity entity = args.Entity as GenericEntity; if (entity == null) { return; } // read each property, type and value in the payload var properties = args.Entity.GetType()

Azure Table Storage - remove columns

こ雲淡風輕ζ 提交于 2020-02-04 02:17:10
问题 I think this is not possible, but however I ask the question, maybe I have missed something. Can we add/remove columns from an azure table? For example by default we get those columns: PartitionKey, RowKey, Timestamp, ETag. Can I add for example another 3: FirstName, LastName, Email columns? After that I will insert some values and I want to remove column Email and add instead column Address. Can we do this? 回答1: Azure Tables do not have "columns" as SQL tables do. Azure Tables have entities.

Difference between Insert Or Merge Entity and Insert Or Replace Entity

霸气de小男生 提交于 2020-01-28 10:25:20
问题 I'm using Azure table storage for storing the data. I'm getting confused on when to use insert-or-replace and insert-or-merge. I'm using Azure SDK 1.7. My understanding on insert or replace is replacing entire property of previous entity with new entity if the entity exists. if the new entity doesn't define property or having property value null then that property will be removed on updating. Whereas in insert-or-merge, old properties will be retained even if the new entity didn't define new

Querying on Azure table storage doesnt work beyond a certain number of entities?

穿精又带淫゛_ 提交于 2020-01-25 19:57:24
问题 Consider my scenario. I have about 200 partitions and each partition has about 1000 rowkeys(entities) or even more. So when i am making any query fetching records of a partition which is albhabetically last(starting with "z"), it doesnt return any results. Below is a sample query - audioRecordServiceContext.QueryableEntities .Where(p => p.PartitionKey == channel && p.IsDedication == true && p.IsBroadcast == true && p.BroadcastTime >= time && p.BroadcastTime < time.AddHours(1)) .ToList(); When

Entity Framework - Azure Table Storage Provider - Enum Support

泪湿孤枕 提交于 2020-01-24 13:19:44
问题 I am actually using the Azure Storage Table provider for EF (EntityFramework.AzureTableStorage 7.0.0-beta1). I've ended up how to configure the DbContext: public class Subscription { public string Environment { get; set; } public string Name { get; set; } ... ... } public class EF7Context : DbContext { public DbSet<Subscription> Subscriptions { get; set; } protected override void OnConfiguring(DbContextOptions options) { options.UseAzureTableStorage("MyconnectionString"); } protected override

Can Parallel.ForEach be used safely with CloudTableQuery

蹲街弑〆低调 提交于 2020-01-17 01:36:08
问题 I have a reasonable number of records in an Azure Table that I'm attempting to do some one time data encryption on. I thought that I could speed things up by using a Parallel.ForEach . Also because there are more than 1K records and I don't want to mess around with continuation tokens myself I'm using a CloudTableQuery to get my enumerator. My problem is that some of my records have been double encrypted and I realised that I'm not sure how thread safe the enumerator returned by

How to use Powershell to update property of an entity in Azure Table Storage to null?

蹲街弑〆低调 提交于 2020-01-16 18:04:07
问题 Lets say I have retrieved an entity from my table. I want to set one of the property to null. How can I do it? This is what I did: $myData.PropertyOne = $null $myData | Update-AzureStorageTableRow -table $destStorageTable But I got error: Exception calling "Execute" with "1" argument(s): "Object reference not set to an instance of an object." At C:\Program Files\WindowsPowerShell\Modules\AzureRmStorageTable\1.0.0.21\AzureRmStorageTableCoreHelper.psm1:629 char:13 + ... return ($table