Authorization failure when creating a Stream Analytics job
I've been trying (and failing) to create an Azure Stream Analytics job programatically. I was following this example originally: https://azure.microsoft.com/en-gb/documentation/articles/stream-analytics-dotnet-management-sdk/ But it pops up a dialog for you to log in. I want to be able to do this server side. It looks like I need to use Azure AD to use the Resource Manager APIs. I've been working my way through this: https://msdn.microsoft.com/en-us/library/azure/dn790557.aspx#bk_portal And the code looks like this: var authContext = new AuthenticationContext("https://login.microsoftonline.com