azure-table-storage

Option to saving and not saving UTC time in Azure Table

♀尐吖头ヾ 提交于 2021-02-11 12:13:56
问题 It seems to me that Azure Table always saves UTC time to the table. Even the date type has time zone, e.g. DateTimeOffset . Is there an option to save original time, instead of UTC time? 回答1: Is there an option to save original time, instead of UTC time? If you are looking to save the data as Edm.DateTime , then the answer is no. That data is always stored as UTC. From this link about Edm.DateTime: A 64-bit value expressed as Coordinated Universal Time (UTC). The supported DateTime range

Option to saving and not saving UTC time in Azure Table

大城市里の小女人 提交于 2021-02-11 12:06:07
问题 It seems to me that Azure Table always saves UTC time to the table. Even the date type has time zone, e.g. DateTimeOffset . Is there an option to save original time, instead of UTC time? 回答1: Is there an option to save original time, instead of UTC time? If you are looking to save the data as Edm.DateTime , then the answer is no. That data is always stored as UTC. From this link about Edm.DateTime: A 64-bit value expressed as Coordinated Universal Time (UTC). The supported DateTime range

Base64 decode fails with “No mapping for the Unicode character exists in the target multi-byte code page.”

ぐ巨炮叔叔 提交于 2021-02-11 06:51:32
问题 I am trying to create the signature string needed for Azure Storage Tables as described here: https://docs.microsoft.com/en-us/rest/api/storageservices/authorize-with-shared-key#encoding-the-signature The Access key is "p1qPD2lBiMlDtl/Vb/T/Xt5ysd/ZXNg5AGrwJvtrUbyqiAQxGabWkR9NmKWb8Jhd6ZIyBd9HA3kCRHr6eveKaA==" The failing code is: property AccessKey: string read FAccessKey write SetAccessKey; function TAzureStorageAPI.GetAuthHeader(StringToSign: UTF8String): UTF8String; var AccessKey64: string;

Azure storage for files in specific folder structure

情到浓时终转凉″ 提交于 2021-02-10 12:38:13
问题 Currently i have some ftp where on it i have some deep structure of folders and files within it. It could be even 10 levels down from root folder. As i migrated already with success my local database to azure database, i wonder also whether is there any azure ftp i could use to migrate this as well. I know we have something like Azure storage and i could create Container for it of type File or Blobs - are one of those could be used like particural ftp - could i create folder structure there

Azure storage for files in specific folder structure

[亡魂溺海] 提交于 2021-02-10 12:35:25
问题 Currently i have some ftp where on it i have some deep structure of folders and files within it. It could be even 10 levels down from root folder. As i migrated already with success my local database to azure database, i wonder also whether is there any azure ftp i could use to migrate this as well. I know we have something like Azure storage and i could create Container for it of type File or Blobs - are one of those could be used like particural ftp - could i create folder structure there

microsoft azure table authentication stringtosign error

你。 提交于 2021-02-09 07:30:14
问题 I am having a problem with stringtosign authentication for azure table pagination query. This is the current stringtosign im using : GET\n\n\nFri, 05 Sep 2014 03:57:11 GMT\n/mystorageaccount/mytablename\nNextPartitionKey:1!20!UmFjZSBNZW1iZXJfNA--\nNextRowKey:1!12!TmFtZV85ODE- Is there anything wrong with this stringtosign authentication? The rest of the Headers are exactly the same as Fiddle. Example GET /mytablename?NextPartitionKey=1%2120%21UmFjZSBNZW1iZXJfNA--&NextRowKey=1%2112

How can I Build a Generic Method in c# to Query a Partition in a Given Azure Table

ぃ、小莉子 提交于 2021-02-07 13:52:12
问题 I'm trying to build a generic method to return entries in a partition in a given Azure table. This is how it looks: public class Table : ITable { private CloudStorageAccount storageAccount; public Table() { var storageAccountSettings = ConfigurationManager.ConnectionStrings["AzureWebJobsStorage"].ToString(); storageAccount = CloudStorageAccount.Parse(storageAccountSettings); } public async Task<IEnumerable<T>> RetrieveAllInPartition<T>(string tableReference, string partitionKey) where T :

Azure Storage Table API REST with Curl

不羁岁月 提交于 2021-02-07 04:38:35
问题 I need help to print an entity with Rest in shell script. I tried several ways, but without success. Here is my code, running it, it will return all entities in my table. But I need it to return only a specific value and that is only using PartitionKey. #!/bin/bash # List the tables in an Azure storage container. storage_account="Secret" table_name="teste" access_key="Secret" table_store_url="table.core.windows.net" authorization="SharedKey" request_method="GET" request_date=$(TZ=GMT LC_ALL

Log structured data to Azure Storage table by Serilog store all object in RenderedMessage, I want column for each field in class

给你一囗甜甜゛ 提交于 2021-01-28 01:43:09
问题 I write below code to log/store logs with an objects to Azure Table Storage by using SeriLog, But I got the object stored in "RenderedMessage" column (in azure table) or "Data" column, While I need to store each field/property in the class to a separated column in the Table storage. Please see below: var _simpleTransation = new SimpleTransation(99, "some title9", "type99"); var logger = new LoggerConfiguration() .WriteTo.AzureTableStorage(storage,LogEventLevel.Information,null, "LogStorage"

How to generate SharedKeyLite for Azure Table Storage REST request

时光怂恿深爱的人放手 提交于 2021-01-28 00:58:13
问题 I'm trying to call Azure Table Storage using Postman but keep getting : Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. The code I am using for the pre-call script in Postman is as follows: var storageAccount = "**mystorageaccount**"; var accountKey = "**mystoragekey**"; var date = new Date(); var UTCstring = date.toUTCString(); var data = date + "\n" + "/**mystorageaccount**/**mytable**" var encodedData =