azure-sdk-.net

Azure DevOps Hosted Build Controller - Is the Azure Storage Emulator supported?

守給你的承諾、 提交于 2019-11-28 02:59:26
问题 I'd like to run unit / integration tests that utilise the Azure Storage Emulator rather than real storage from a Azure DevOps build. The emulator is installed on the Hosted Build Controller as part of the Azure SDK in its usual place (C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator\AzureStorageEmulator.exe). However the emulator is in the uninitialised state on the Build Controller. When trying to run the command Init from the command line, I get the following error: This

What Azure .NET SDK EventHubClient instance methods are threadsafe?

纵然是瞬间 提交于 2019-11-28 00:23:04
I'm writing code that will be publishing messages from multiple threads to an Azure Event Hub in C# using the EventHubClient . The documentation for EventHubClient contains the fairly standard boiler plate. "Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe." There is no additional documentation as to thread safety in any of the four send methods I would most expect to be thread safe. Were I to believe that the send methods are not threadsafe then I would end up creating a new EventHubClient instance each

Getting the latest file modified from Azure Blob

北战南征 提交于 2019-11-27 16:00:39
Say I am generating a couple of json files each day in my blob storage. What I want to do is to get the latest file modified in any of my directories. So I'd have something like this in my blob: 2016/01/02/test.json 2016/01/02/test2.json 2016/02/03/test.json I want to get 2016/02/03/test.json . So one way is getting the full path of the file and do a regex checking to find the latest directory created, but this doesn't work if I have more than one josn file in each dir. Is there anything like File.GetLastWriteTime to get the latest modified file? I am using these codes to get all the files btw

What Azure .NET SDK EventHubClient instance methods are threadsafe?

巧了我就是萌 提交于 2019-11-27 04:43:17
问题 I'm writing code that will be publishing messages from multiple threads to an Azure Event Hub in C# using the EventHubClient. The documentation for EventHubClient contains the fairly standard boiler plate. "Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe." There is no additional documentation as to thread safety in any of the four send methods I would most expect to be thread safe. Were I to believe

Error making Azure Management Library API call when authenticating with azure active directory

 ̄綄美尐妖づ 提交于 2019-11-26 21:10:19
My company is looking into reporting on Azure. We only want our customers to give us read only credentials for us to use. I did some research and it looks like Azure Active Directory does just that. So I'm looking to authenticate using a read only Azure Directory Application. To get me started I was following this blog on using the Management API via Azure Active Directory. https://msdn.microsoft.com/en-us/library/azure/dn722415.aspx Aside from the approach show being very unfriendly, it doesn't work =( I get this error after logging in as a global administrator: "AADSTS90014: The request body

Getting the latest file modified from Azure Blob

女生的网名这么多〃 提交于 2019-11-26 17:23:16
问题 Say I am generating a couple of json files each day in my blob storage. What I want to do is to get the latest file modified in any of my directories. So I'd have something like this in my blob: 2016/01/02/test.json 2016/01/02/test2.json 2016/02/03/test.json I want to get 2016/02/03/test.json . So one way is getting the full path of the file and do a regex checking to find the latest directory created, but this doesn't work if I have more than one josn file in each dir. Is there anything like