azure-table-storage

Create an API Connection to an Azure Table Store via ARM

試著忘記壹切 提交于 2019-12-20 03:01:13
问题 I'm attempting to deploy an API Connection to a Table Store via an ARM template, but the template below is returning an error - Input parameters are invalid. See details for more information. Details:errorCode: ParameterNotDefined. Message: Parameter 'accountKey' is not allowed on the connection since it was not defined as a connection parameter when the API was registered. I cannot find any docs specific to deploying such an API Connection via ARM, only generic ARM template docs which don't

How do you convert Milliseconds into a Javascript UTC date?

雨燕双飞 提交于 2019-12-20 01:50:14
问题 Given I have the number 1446309338000 , how do I create a JavaScript UTC date? new Date(1446309338000) will equal a CST time (central standard) or local time. new Date(Date.UTC(year, month, day, hour, minute, second)) haven't got this info yet. Does JavaScript change the time if I do this? new Date(1446309338000).ISOString(); Is it creating a new CST date and then converting it to UTC? I really just need the string. I am taking it from a database (RowKey from a Azure Table storage database).

Azure table storage store multiple types

余生颓废 提交于 2019-12-20 01:13:45
问题 What do you recommend in the following scenario: I have an azure table called Users where as columns are: PrimaryKey RowKey Timestamp FirstName LastName Email Phone Then there are different types of tasks for each user let's call them TaskType1 and TaskType2. Both task types have common columns but then have also type specific columns like this: PrimaryKey (this is the same as the Users PrimaryKey to find all tasks belonging to one user) RowKey Timestamp Name DueDate Description Priority then

Where are the diagnostics/logs storage tables?

烂漫一生 提交于 2019-12-19 09:39:43
问题 I have a problem deploying a WebRole (WCF service) to Azure. My WebRole keeps showing buzy for at least 30 minutes, until I abort it. I deploy through Visual Studio 2010. I’m looking for some trace information and there is a few blogs that have pointed me towards storage tables called WADInfrastructureLogsTable and WADLogsTable . I have set up the configuration settings with my storage account like this: <ConfigurationSettings> <Setting name="DiagnosticsConnectionString" value=

Update RowKey or PartitionKey in Azure Table Storage

寵の児 提交于 2019-12-19 05:34:14
问题 Can i update RowKey or PartitionKey properties of entity in Azure Table Storage? I thought yes or maybe just PartitionKey but now i am trying to do that(try to change RowKey or PartitionKey) and get error: The remote server returned an error: (404) Not Found. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Net

How can I log errors and user actions in Windows Azure (MVC)?

∥☆過路亽.° 提交于 2019-12-18 17:54:12
问题 Azure is changing so quickly so could someone give me some suggestions on how could I could log: Errors Exceptions User Actions I would like to be able to log these to table storage so they can be retrieved with code and viewed on administrative web pages. I am not looking so much for code but what I really want is to know where I should look. Azure changes so fast I want to be sure to use what's best. Thank you 回答1: I just did something similar on the weekend. I ended up just creating 1

How can I log errors and user actions in Windows Azure (MVC)?

流过昼夜 提交于 2019-12-18 17:54:07
问题 Azure is changing so quickly so could someone give me some suggestions on how could I could log: Errors Exceptions User Actions I would like to be able to log these to table storage so they can be retrieved with code and viewed on administrative web pages. I am not looking so much for code but what I really want is to know where I should look. Azure changes so fast I want to be sure to use what's best. Thank you 回答1: I just did something similar on the weekend. I ended up just creating 1

Clean way to catch errors from Azure Table (other than string match?)

自古美人都是妖i 提交于 2019-12-18 17:10:20
问题 I'd like to get a list of all the Azure Table errors and figure out a clean way to handle them in a try...catch block. For example, I'd like to not have to directly code and compare the InnerException message to String.Contains("The specified entity already exists") . What is the right way to trap these errors? 回答1: You could try looking at the values in the Response, rather that the inner exception. This is an example of one of my try catch blocks: try { return query.FirstOrDefault(); }

Is it possible to customize azure table storage by code? (Log4net.Azure)

孤人 提交于 2019-12-18 09:38:51
问题 So I'm writing a WebApi using C#, I configured log4net in my web.config (used log4net.azure) my configuration is the following: <appender name="AzureTableAppender" type="log4net.Appender.AzureTableAppender, log4net.Appender.Azure"> <param name="TableName" value="myLogs" /> <param name="ConnectionStringName" value="AzureTable" /> <param name="PropAsColumn" value="true" /> <bufferSize value="1" /> <param name="PartitionKeyType" value="LoggerName" /> </appender> My issue is that I'm getting a

Generic class for performing mass-parallel queries. Feedback?

时光怂恿深爱的人放手 提交于 2019-12-17 22:43:04
问题 I don't understand why, but there appears to be no mechanism in the client library for performing many queries in parallel for Windows Azure Table Storage. I've created a template class that can be used to save considerable time, and you're welcome to use it however you wish. I would appreciate however, if you could pick it apart, and provide feedback on how to improve this class. public class AsyncDataQuery<T> where T: new() { public AsyncDataQuery(bool preserve_order) { m_preserve_order =