azure-sdk-.net

ASP.NET 5 web application as Azure Web Role?

北战南征 提交于 2019-12-04 00:41:48
We have a ASP.NET 5 web application in our solution. Typically, we could right click on the Cloud Service "Roles" item and add a new role from an existing project in the solution. But it cannot identity this project as a Web Role: How are we able to host a ASP.NET 5 project in a Azure Web Role? Edit: We are using Azure SDK 2.7 Sorry, we don't support WebRoles at the moment. You might* be able to hack your way around but officially there is no support. That means that any hack you do, will be in a text editor, not from tooling. However, you can use an Azure WebSite instead. That's fully

Where is the NuGet package for Microsoft.WindowsAzure.ServiceRuntime?

 ̄綄美尐妖づ 提交于 2019-12-03 09:17:00
We had previously been referring to our Windows Azure libraries via the SDK and I noticed that they have NuGet packages for them now . This is obviously way better, so I'm swapping out all of those references for the NuGet packages. However, I can't find a NuGet package for Microsoft.WindowsAzure.ServiceRuntime.dll that contains classes such as RoleEnvironment , etc. Are we supposed to be referencing this dll from the SDK installation and not a nuget package? That seems extremely odd. Am I just not seeing the package for this assembly? I've now installed all of the "windowsazureofficial"

Azure Queue Peek All Messages

二次信任 提交于 2019-12-02 16:30:05
问题 I understand that Azure Queue is not strict FIFO. And Visual Studio Server Explorer shows only 32 messages. I have some 88 messages in the queue. Is it possible to peek through all the messages in an Azure queue with out dequeing any of it? 回答1: Simple answer to your question is "No, you can't do that". Reason being Peeking at messages does not alter their visibility so unless your messages are being dequeued by some other process, repeated peeking will return same messages. Only alternative

Visual Studio 2013/2015 Can't Load Azure Project

喜欢而已 提交于 2019-11-30 19:29:34
I just got a new machine, and upon installing VS2013 (and I also tried VS2015 preview), one of our projects would not open. The application which this project type is based on was not found. Please try this link for further information: http://go.microsoft.com/fwlink/?LinkId=441332&projecttype=CC5FD16D-436D-48AD-A40C-5A424C6E3E79 The output windows, gives this link, which is useless, and searching online for the GUID {CC5FD16D-436D-48AD-A40C-5A424C6E3E79} didn't bring anything up. Any ideas what this could be? I have used Web Platform Installer to install the Latest Azure SDK. It turns out

Azure SDK 2.5.1 fails to Publish cloudService

拥有回忆 提交于 2019-11-30 10:32:29
问题 After successfully upgrading my cloud service to the new "Azure SDK for .NET 2.5.1 " I got the following error when trying packaging/publishing. Could not load file or assembly 'Microsoft.WindowsAzure.Packaging, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Windows Azure Tools\2.5\Microsoft.WindowsAzure.targets The related line in the

Azure SDK 2.5.1 fails to Publish cloudService

此生再无相见时 提交于 2019-11-29 20:50:29
After successfully upgrading my cloud service to the new "Azure SDK for .NET 2.5.1 " I got the following error when trying packaging/publishing. Could not load file or assembly 'Microsoft.WindowsAzure.Packaging, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Windows Azure Tools\2.5\Microsoft.WindowsAzure.targets The related line in the "Microsoft.WindowsAzure.targets" config file is 2930 which obviously is related to CSPack. <CSPack

Using authentication token in azure sdk fluent

寵の児 提交于 2019-11-29 18:44:44
问题 To authenticate with Azure in azure sdk fluent nuget, there is a method that uses client id and secret as below var azureCredentials = new AzureCredentials(new ServicePrincipalLoginInformation { ClientId = "ClientId", ClientSecret = "ClientSecret" }, "tenantId", AzureEnvironment.AzureGlobalCloud); Is there any interface where authentication token (JWT) can be used instead of using client id and secret while creating IAzure in the below code? _azure = Azure .Configure() .WithLogLevel

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

◇◆丶佛笑我妖孽 提交于 2019-11-29 09:32:22
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 operation requires an interactive window station Is there an known workaround for this or plans to support the

Login-AzureRmAccount (and related) equivalent(s) in .NET Azure SDK

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-28 11:13:32
问题 I became to wonder, what would could the equivalents of Login-AzureRmAccount New-AzureRmADServicePrincipal New-AzureRmADApplication in Azure SDK for .NET. For some reason I don't seem to be able to locate them and I would like to do something like in this blog post, but in code. <edit: 2017-06-20 00:42 Taking some cues from Tom Sun and poking this a bit deeper, I found an answer that solves partially a problem of "old libraries" and also the one initially choosing a subscription. It's

How to query Cloud Blobs on Windows Azure Storage

喜夏-厌秋 提交于 2019-11-28 09:39:13
I am using Microsoft.WindowsAzure.StorageClient to manipulate blobs on Azure storage. I have come to the point where the user needs to list the uploaded files and modify/delete them. Since there are many files in one container, what is the best way to query azure storage services to return only the desired files. Also, I would like to be able to return only specific number of blobs so I can implement paging. There is a method called ListBlobs in the CloudBlobContainer, but it seems like it's returning all of the blobs in the container. That will not work for me. I searched a lot on this topic