azure-storage-blobs

Azure Functions access to Azure Storage Account Firewall

隐身守侯 提交于 2019-12-11 08:36:20
问题 What am I trying to achieve Connect to an Azure BLOB storage account that sits behind a firewall through an Azure Function. Steps Taken so Far Azure Function developed and tested against public storage account which works as expected. Following Azure Resource Explorer for my Azure Function I find out the outbound addresses( "outboundIpAddresses" entry) and I add them in the firewall of the storage Account. Issue While trying to run the Azure Function against the storage account with the

How to get updated copy state of azure blob when using blob StartCopyAsync

我与影子孤独终老i 提交于 2019-12-11 08:17:33
问题 I have some c# code to copy a blob from one storage account to another. I noticed that when I make the call to CloudBlob.StartCopyAsync , the target blob's CopyState.Status is set to CopyStatus.Pending . Is there any way that I can get an updated status on the copy operation? I have tried adding a await Task.Delay(TimeSpan.FromSeconds(10)); after the call, but when the delay finishes, the state still shows pending. If I then try to re-obtain the blob from the storage container, I get

Migrating (or using) old VHD on a Classic Storage Account to be used with new (non-Classic) VM

僤鯓⒐⒋嵵緔 提交于 2019-12-11 07:58:26
问题 I find the storage options confusing so far. It seems like I can have a disk as a VHD (stored as a "Page Blob") on a Storage Account (Classic or New) or I can create a "Disk" directly. I'm not sure what the benefits of each option are. My problem is that I had an old Classic VM that had a data disk stored as a VHD (page blob) on a Classic Storage Account. I created a new VM now (not classic) and I want to attach that same VHD, but I don't see any way to do so. If I click create new data "Disk

Nodejs upload base64 image to azure blob storage using .createBlockBlobFromLocalFile()

南楼画角 提交于 2019-12-11 07:57:32
问题 I want to upload profile picture of a user sent from web app and mobile app via Base64 form. On the POST request they need to send a JSON on the body that looks something like this. { "name":"profile-pic-123.jpg", "file":"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxQTEhIUEhIUFBUV…K9rk8hCAEkjFMUYiEAI+nHIpsQh0AkisDYRTOiCAbWVtgCtI6IlkHh7LDTQXLH0EIQBj//2Q==" // the base64 image } Now on the server side using Node and Express , I used this npm module called azure-storage which

Install WindowsAzure.Storage to PCL targeting Xamarin platforms

可紊 提交于 2019-12-11 07:37:33
问题 I need Azure Storage support in my app. I tried to add the nuget package, but I get the error that the dependency Microsoft.WindowsAzure.ConfigurationManager doesn't supports my current project. I targeted WP8 and Xamarin.Android. How can I get it into my PCL? 回答1: The WindowsAzure.Storage package doesn't support PCLs. It looks like there is a preview version that may support Windows Store apps and Windows Phone 8. You can request that the team add PCL support, or adapt the source code

C# Azure Storage - How to Upload a File to an already Existing Container

这一生的挚爱 提交于 2019-12-11 07:33:41
问题 Hoping for a bit of help on how to upload a file into an existing container in Azure Storage. I have followed Azure doc - but it seem to pointing to creating a new container and upload a file there. If I already create a container beforehand in Azure, for example, as "testresult1", and then try to upload a file there using C# code then it complains that the container "testresult1" already exists. Here is the code I've used that is wrong: CloudBlobContainer = cloudBlobClient

Use blob-leasing feature in the Azure cloud app

爷,独闯天下 提交于 2019-12-11 07:26:02
问题 I want to use blob-leasing mechanism in my Windows Azure cloud app. I am using the StorageClient api released by Azure team for my blob transactions. However, the blob-leasing is not implemented in the StorageClient api and hence I need to implement it on my own. Has anyone done this before and has any pointers on how to do it? Thanks. Kapil 回答1: See my recent blog post (including sample code) about how to do this: http://blog.smarx.com/posts/leasing-windows-azure-blobs-using-the-storage

Azure API Throttling

谁说胖子不能爱 提交于 2019-12-11 07:06:29
问题 I am trying to get a list of all Storage Accounts present in my Azure subscription but I am getting a throttling error. com.microsoft.azure.CloudException: Status code 429, {"error":{"code":"ResourceCollectionRequestsThrottled","message":"Operation 'Microsoft.Storage/storageAccounts/read' failed as server encountered too many requests. Please try after '17' seconds. Tracking Id is 'e982a894-0f3e-4291-a9b3-e147c18f8f60'."}} The request prior to this request prints there are 13869 more

PowerShell: run Python script from Azure blob storage

白昼怎懂夜的黑 提交于 2019-12-11 07:04:16
问题 I am brand new to using PowerShell and all I want to do is create a .ps1 file that I can execute which then executes a python script from blob storage in my Azure storage account. I think the normal execution command would simply be: C:/test.py or maybe set the path then: python test.py ??? But how do I do this to execute a script stored in a blob at say: https://StorageName.blob.core.windows.net/testing/testblob/test.py ? And can I just save that command as a .ps1 which will kickoff the

Error System.DllNotFoundException: fusion.dll on Azure storage using Visual Studio for Mac

家住魔仙堡 提交于 2019-12-11 06:58:38
问题 I'm using Visual Studio for Mac, when I follow this guild. https://docs.microsoft.com/en-us/azure/storage/blobs/storage-dotnet-how-to-use-blobs With code: // Parse the connection string and return a reference to the storage account. CloudStorageAccount storageAccount = CloudStorageAccount.Parse( CloudConfigurationManager.GetSetting("StorageConnectionString")); I got this exception: System.DllNotFoundException: fusion.dll I try to do in Visual Studio on Window, it is no problem. It is a