azure-sdk-.net

Azure Resource Group Set Tags with SDK?

隐身守侯 提交于 2019-12-22 10:59:45
问题 I have used code similar to http://blogs.infinitesquare.com/b/tranise/archives/-azure-resource-group-une-nouvelle-facon-dorganiser-ses-environnements-dans-azure#.Vr1RrfIrLgk to create a Resource Group in Azure with C#. I am now trying to extend it by putting Tags on the Resource. Adding resourceGroupGetResult.ResourceGroup.Tags.Add("a","1") works, but a subsequent CreateOrUpdateAsync call fails with "InvalidRequestContent: The request content was invalid and could not be deserialized: 'Could

Could not load file or assembly ServiceRuntime 2.4.0.0

怎甘沉沦 提交于 2019-12-22 03:38:22
问题 After upgrading our project to use the Azure SDK 2.5, I get the following runtime exception when deployed to Azure (web role): Could not load file or assembly 'Microsoft.WindowsAzure.ServiceRuntime, Version=2.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. One of the referenced packages from NuGet is still referencing ServiceRuntime 2.4.0.0 . From what I understand, all I need to do to fix this is create a

How to query Cloud Blobs on Windows Azure Storage

雨燕双飞 提交于 2019-12-17 19:06:49
问题 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

ASP.NET 5 web application as Azure Web Role?

被刻印的时光 ゝ 提交于 2019-12-14 04:27:04
问题 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 回答1: 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,

Azure File Storage - File is corrupted once uploaded

瘦欲@ 提交于 2019-12-13 07:36:43
问题 I have this code which I'm using for uploading files in azure file storage container. var originalFileName = GetDeserializedFileName(result.FileData.First()); var uploadedFileInfo = new FileInfo(result.FileData.First().LocalFileName); var uploadFolder = "/AzureDocuments" + '/' + correctLoanId ; var patString = HttpContext.Current.Server.MapPath(uploadFolder) + "/" + originalFileName; if(!Directory.Exists(HttpContext.Current.Server.MapPath(uploadFolder))) { Directory.CreateDirectory

Is there an official LUIS API that returns the total number of Utterances for each intent?

柔情痞子 提交于 2019-12-12 06:58:39
问题 I noticed the LUIS portal (www.luis.ai) shows Intents with the total number of Utterances for each. I'm looking to build a similar page in my application, although Microsoft's published APIs don't have a method that returns the total utterances per intent. We noticed the LUIS dashboard is using this API to pull the data, but the method is not published in their docs: https://westus.api.cognitive.microsoft.com/luis/webapi/v2.0/apps/{appId}/versions/{version}/stats/labelsperintent Does anyone

Azure .Net SDK Error : FsOpenStream failed with error 0x83090aa2

一个人想着一个人 提交于 2019-12-12 04:16:39
问题 We are trying to download a file present in Data Lake Store. I have been following the below tutorial which uses .Net Azure SDk. https://azure.microsoft.com/en-us/documentation/articles/data-lake-analytics-get-started-net-sdk/ As we have already the file present in Azure Data Lake Store , I just added the code to download the file FileCreateOpenAndAppendResponse beginOpenResponse = _dataLakeStoreFileSystemClient.FileSystem.BeginOpen("/XXXX/XXXX/test.csv", DataLakeStoreAccountName, new

How to overcome “Could not load type 'Microsoft.Cct.Services.Sqm.IWatSqmService'” without updating?

ぐ巨炮叔叔 提交于 2019-12-12 02:17:32
问题 I'm getting the same error message as in this question: Could not load type 'Microsoft.Cct.Services.Sqm.IWatSqmService' Unfortunately, I cannot upgrade to Azure SDK 2.9, as the top answer there suggests. Specifically, I get this error in a message box whenever I try to package my Azure Cloud Service project: What's interesting is that I can start the same project in the emulator, which I would assume involves packaging it. Things I've tried: Ensuring that I only have version 2.8.2 of the

Limiting account SAS permission to specific files in Azure Storage

空扰寡人 提交于 2019-12-12 02:16:12
问题 I'm developing a web application which users can upload their files and each user can set permissions for the uploaded file to access to other users. I want to use Azure Blob Storage of Azure File Storage for the uploaded files to be saved. I need to check and validate the uploaded files before saving them, though users should upload their files on web server and then the web server will validate the files and save them to Azure Storage using Access Key. To get accessed the files using

Retrieve List of networks for a subscription in windows azure with azure java sdk

谁说胖子不能爱 提交于 2019-12-11 18:34:47
问题 How to Retrieve List of networks for a subscription in windows azure with azure sdk? 回答1: There's a test in SDK that does this: https://github.com/Azure/azure-sdk-for-java/blob/master/management-network/src/test/java/com/microsoft/windowsazure/management/network/NetworkOperationsTests.java#L104 来源: https://stackoverflow.com/questions/27059680/retrieve-list-of-networks-for-a-subscription-in-windows-azure-with-azure-java-sd