Contents tagged with Azure

  • Looking Into Azure Diagnostics Logs The Right Way

    Talking about the Azure Diagnostics Logs - these are the WADLogsTable you can set up to trace errors, info and warning messages, etc. as described here. Setting up the logging is one thing, but reading the logs to diagnose an issue is another, and it turns out I've been doing it wrong all this time. I was selecting the output of the logs based on the Timestamp column, but there's two things … more

  • Using Spatial Data Types / DBGeography In Azure Worker Role

    I'd recently built some stuff that runs in Azure on a Worker role that interacts with some Spatial Data from a SQL Database via EntityFramework; having tested it locally, everything worked great. However, when published to the actual Azure environment, none of the data was being returned and my code wasn't working as expected. It turns out that the reason behind this is that in Azure you're … more

  • Adding Multiple Messages To An Azure Service Bus Queue

    I don't know if this is a very common scenario, but I wrote some code earlier in the week to add a bunch of messages to a Service Queue: QueueClient queueClient = GetQueue(); foreach(var item in myItems) { BrokeredMessage message = new BrokeredMessage(Guid.NewGuid().ToString()); queueClient.Send(item); } This works fine for 5 messages, but it's actually kind of slow for 2000 … more

  • Enabling CORS (Cross Origin Resource Sharing) For Your Microsoft Azure Storage (Blobs, etc)

    Just a quick post about enabling CORS access for your Azure storage resources - I found most of the instructions I needed on this very helpful blog post. There's a code snippet on how to add the CORS rule to a Blob Service, but for the lazy / efficient ones, here's a little complete console app you can run: using Microsoft.WindowsAzure.Storage; using Microsoft.WindowsAzure.Storage.Shared. … more

  • Azure / Microsoft Cloud: Strike Four...

    Azure has been having a string of reliability issues lately: Global VM and storage outage worldwide (with EU region being the longest affected) VSO outage We had an issue with Azure Websites and being unable to swap two deployment slots, with extremely poor support and time to resolution / SLA VSO outage, again Within a month or so, I've seen more issues on Azure since its inception. I'm not … more

  • Trying to use Azure Shared Caching Session State with SharePoint 2010?

    Well, don't. The Microsoft.Web.DistributedCache .dll requires .NET 4.0, which doesn't work with SharePoint 2010. The fact that 4.0 is required for Microsoft.Web.DistributedCache is nicely buried in this thread, not in MSDN where it would have been, you know, helpful. Session State running in SQLServer mode works fine still, though. Let me know if I'm wrong, and also if anyone's tried the Table … more

  • Configuring Tracing For A Windows Azure Role

    Aaaah! I can't believe how long this took me to work out :( It doesn't really help that the information is spread around a billion different pieces on MSDN and what not. But enough excuses! Here's what I think the steps are (and because I clearly am not a genius, feel free to improve this instruction set) What we want Tracing (ie calls to System.Diagnostics.Trace.WriteInformation("hello") to be … more

  • Pro-Tip: Azure RDP User Setup Gotcha

    The within-Visual Studio Azure tooling support has really improved since I used Azure properly about a year and a half ago - you can get away with not accessing the web portal for a lot of things. However, there's just one gotcha with the automatic RDP user configuration that tripped me up today: If you use a username longer than 20 characters, you won't be able to RDP with those settings. … more

  • Pro-Tip: Connecting To SharePoint Online / Office 365 from an Azure Web / Worker Role

    Today, I was tasked with debugging an issue someone at work had been having - we've built some stuff that needs to connect to a SharePoint Online instance from within an Azure Worker role, and whilst it worked locally, when it was run in the cloud, it continually caused the role to error out. To connect, we're grabbing the claims-based cookies (for which you can read Chris Johnson's post about … more

  • Opening Up A Windows Azure Deployment Package

    Unless you've been living inside a very dark cave with no internet, you're probably aware that a devastating earthquake struck Christchurch, New Zealand last week; as a consequence, me and some colleagues at work have been putting in some time in standing up a business pledge site in Windows Azure. As part of the deployment into Azure, I was having issues with the connection strings defined in … more

  • 1