azure-storage

How do I delete an Azure storage account containing a leased blob?

徘徊边缘 提交于 2019-12-17 15:11:46
问题 I was playing with Windows Azure durable virtual machines. In the end, I deleted the virtual machine (successfully) and tried to delete the associated storage account. The request to delete the storage account fails. On the Preview Portal (manage.windowsazure.com) when I delete the storage account I get this error: Failed to delete Storage account 'portalvhdscwtwycpsxxxxx' Details: Storage account portalvhdscwtwycpsxxxxx has 1 container(s) which have an active image and/or disk artifacts.

How to create a sub container in azure storage location

China☆狼群 提交于 2019-12-17 10:23:25
问题 How to create a sub container in the azure storage location. Please let us know 回答1: Windows Azure doesn't provide the concept of heirarchical containers, but it does provide a mechanism to traverse heirarchy by convention and API. All containers are stored at the same level. You can gain simliar functionality by using naming conventions for your blob names. For instance, you may create a container named "content" and create blobs with the following names in that container: content/blue

Copying one Azure blob to another blob in Azure Storage Client 2.0

霸气de小男生 提交于 2019-12-17 09:19:31
问题 In the old 1.7 storage client there was a CloudBlob.CopyFromBlob(otherBlob) method, but it does not seem to be present in the 2.0 version. What is the recommended best practice for copying blobs? I do see a ICloudBlob.BeginStartCopyFromBlob method. If that is the appropriate method, how do I use it? 回答1: Gaurav Mantri has written a series of articles on Azure Storage on version 2.0. I have taken this code extract from his blog post of Storage Client Library 2.0 – Migrating Blob Storage Code

How can I delete a leased blob in Microsoft Azure storage

余生颓废 提交于 2019-12-17 02:37:04
问题 I created a virtual machine in Azure and then deleted it. However, the associated storage account still exists. I can't delete the storage account because it contains a container with a blob in it that has an indefinite lease. Nothing else is using this storage account. How can I delete this blob? 回答1: You need to delete the disk objects that are associated with the abandoned vhd's. You can do this easily in either the classic or new portal. Once you dispose of these (along with associated

Hosting SQLite DB on Azure Storage?

耗尽温柔 提交于 2019-12-14 03:48:56
问题 I need to host an SQLite database on Azure that will be shared among several web apps. My only options seem to be Azure Blob or File Storage (since they got rid of the "Azure Websites" that provided dedicated storage shared among web instances). However, there does not appear to be any way to map an Azure Storage share to a drive that the Web App will recognize, and thus no way to generate a path that SQLite can use. And obviously, SQLite can't use REST APIs to access the DB without

How can upload files to Azure Blob Storage from web site images?

老子叫甜甜 提交于 2019-12-13 22:39:28
问题 How can upload file to Azure Blob Storage from www.site.com/amazing.jpg ? Multiple upload files to Azure Blob Storage from urls. I cant find this way. I tried many way unsuccesful :( thank you for help 回答1: It's actually pretty simple and you can ask Azure Storage to do the work for you :). Essentially what you have to do is invoke Copy Blob operation. With this operation, you can specify any publicly accessible URL and Azure Storage Service will create a blob for you in Azure Storage by

Azure Storage Service REST APIs: Create Lease

扶醉桌前 提交于 2019-12-13 20:41:37
问题 Getting the below error while making a call to Create Container. Response Code : 403 Response Message : Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. String stringToSign = "PUT\n\n\n\n\n\n\n\n\n\n\n\nx-ms-date:" + date + "\nx-ms-version:" + "2018-03-28\nx-ms-lease-action:acquire\nx-ms-lease-duration:1\nx-ms-proposed-lease-id:1f812371-a41d-49e6-b123-f4b542e851c5\n" + "/" + storageAccount + "/"+ "container

Azure Storage Library Client on Windows 10 Iot/UWP?

梦想的初衷 提交于 2019-12-13 15:40:21
问题 It appears that the Azure Storage Client is not supported on Windows 10 Iot-Core/UWP (RPi). However, I am using it for Blobs, and it also used to work fine for Tables. Now, after an update to the latest stable (and -pre, tried both) the access to Tables hangs at await table.ExecuteQuerySegmentedAsync(query, new TableContinuationToken()); I searched in vain for a way to make this synchronous, which would, at the least, help me debug it. I also am wondering about the current success of others

How to upload a file to Azure Storage with WinSCP (SFTP)?

a 夏天 提交于 2019-12-13 12:29:58
问题 theI have a C# service using WinSCP which reliably uploads files to any SFTP server. I'd like to use it to connect to MS Azure Storage and upload files there using the same SFTP protocol. Please note I am not looking to use any other protocol (i.e.: FTP, FTPS, HTTPS, etc.) as well as I am not looking to SFTP files [out] of the Azure Storage. There are plenty of examples of how to use WinSCP when SFTP [out] from Azure Storage but none of them covers how to SFTP [in]. I have searched Stack

Best performance for storing static files (images, css, javascript) - CDN - BlobStorage or WebRole

走远了吗. 提交于 2019-12-13 12:29:33
问题 I have a very basic question about CDN - BlobStorage and WebRole, and perfrormance. I have a very simple web site with static content, HTML, Js, Images, CSS & videos (totally could me max 3-5MB the whole content if the users visit all the site). The traffic of my web site will be 98% from UK and I am planning to have a maximum of 500.000 unique visitors per day. My question is about performance. Would you recommend me enabling CDN on my webrole? Would I benefit from it? is there a benefit