azure-storage

Accessing Windows Azure Queues from client side javascript/jquery

我怕爱的太早我们不能终老 提交于 2020-01-15 04:52:07
问题 For a UI feature, I need to read from a Windows Azure queue and update the UI accordingly. I see plenty of node.js examples, but nothing using pure Javascript or Jquery. (azureQuery comes close, but no queue functionality yet and it needs a Web API to talk to) This is a hybrid web app using both asp.net and MVC 4. This particular page is generated using MVC 4. Any suggestions would be appreciated. Roberto (PS. being able to write to the queue would also be nice) 回答1: This isn't possible

How to validate if Blob is exists or not in deleted list

删除回忆录丶 提交于 2020-01-15 04:01:41
问题 Following code will able to see if blob exists or not. var blob = client.GetContainerReference(containerName).GetBlockBlobReference(blobFileName); if (blob.Exists()) How to validate if blob is exists or not in deleted list as well ? 回答1: Great question! So if a blob is deleted and if you check for its existence by calling Exists() method, it will always tell you that blob does not exist. You will get a 404 (NotFound) error if you try to fetch the attributes. However you can still find out if

Download from Azure storage in html link

試著忘記壹切 提交于 2020-01-15 02:45:08
问题 So I have a file uploaded to my azure storage and have a simple anchor tag where a user should be able to simply download the file. This is not working and not understanding why. My code: <a href="https://cembsite.file.core.windows.net/cembapphandouts/IsraelHandouts/Solution Interview Worksheet.pptx">Get Worksheet Here!</a> When you click on the link to download, it takes to an error saying invalid http header. This is a simple powerpoint file. If I go to the file properties within Azure, I

Can we set up a FTP Site using Azure Web App?

拜拜、爱过 提交于 2020-01-14 13:35:32
问题 Totally new to FTP and Azure. So please excuse if the question sounds stupid. Is there a way to set up FTP using Azure Web App service? Is it even possible? I am trying to avoid using a dedicated VM with IIS for setting up FTP. All my search results in deployment of a web app using FTP, but that is not what I am looking for. 回答1: Since the out-of-the-box FTP for deployments is out of the question, then the answer is no. App Service is quite strict in what ports you can listen to, and FTP(S)

C# Azure Storage Blob Upload TransactionScope

不问归期 提交于 2020-01-14 09:35:47
问题 Is there somewhere a class to allow roll back with transactionscope on azure blockblob actions ? I would like make this works: CloudBlockBlob blockBlob; private void UploadPicture(Stream iStream) { using(var ts = new TransactionScope()) { blockBlob.UploadFromStream(iStream); throw new Exception(); ts.Complete(); } } When the exception is raise, the uploaded file is not cancelled. If is not possible with transaction scope, how should I proceed ? 回答1: Azure Storage Client Library does not

Not able to see 'Lifecycle management' option for ADLS Gen2

前提是你 提交于 2020-01-14 04:34:25
问题 I have created ADLS (Azure Data Lake Storage) Gen2 resource (StorageV2 with hierarchical name space enabled). The region I created the resource in is Central US and the performance/access tier is Standard/Hot and replication is LRS. But for this resource I can't see 'Lifecycle management' option on the portal. ADLS Gen2 is simply a StorageV2 account with hierarchical namespace enabled, and since the lifecycle management option exists for StorageV2 as per Microsoft documentation , it should be

Azure: Table acl GET using Azure REST API do not work when done as per documentation

妖精的绣舞 提交于 2020-01-13 06:41:29
问题 I am following the Azure REST documentation for GET ACL Table, Authentication for the Azure Storage Services. Below is the code snippet for REST operation I am performing. //Input your Storage Account and access-key associated to it. const yourStorageAccountName = ''; const accessKeyStorageAccount = ''; const Client = require('node-rest-client').Client; const crypto = require("crypto"); async function getTableAcl() { let now = new Date(); let nowUTC = now.toUTCString(); let contentType =

How to access Azure storage queue by JavaScript

只愿长相守 提交于 2020-01-13 05:38:21
问题 For our testing purpose, we would like to access Azure storage queue directly with JavaScript instead of preparing a new web service. Is this possible? What should we do to achieve this, since I cannot find the official documentation for JavaScript API of Azure storage. 回答1: Yes, it is certainly possible. In fact, I am currently developing a service which does exactly this. Step 1: Enable CORS for Queue Service To accomplish this, first you need to enable CORS settings on your Queue Service.

Reuse CloudBlobClient Object

旧巷老猫 提交于 2020-01-12 15:03:20
问题 I have these two objects for Azure Blob Storage access and want to use them in ASP.NET MVC application. CloudBlobClient blobClient = storageAccount.CreateCloudBlobClient(); CloudBlobContainer container = blobClient.GetContainerReference("Deesd"); My question is: Can I reuse the same instance of the objects across all the application requests, or should I instantiate a new object in every method? 回答1: You can reuse instances, just don't access the same instance from multiple threads

Download .vhd image from Azure to local machine, and upload to another Azure account

我的梦境 提交于 2020-01-12 12:49:27
问题 I'd like to download a VM image to my local machine, so I can use it locally and upload it to another credential of Azure. I know that there is blob URL but wget didn't help to download it, because it occurs <Error> <Code>ResourceNotFound</Code> <Message> The specified resource does not exist. RequestId:e7ffa746-b35c-44f3-a354-af2abfdaa823 Time:2012-09-27T18:07:00.3196644Z </Message> </Error> Any ideas? I also tried to migrate a VM image from one Azure account to another using Azure CMDLets,