azure-storage-blobs

Error:1411809D:SSL routines - When trying to make https call from inside R module in AzureML

拈花ヽ惹草 提交于 2019-12-24 17:16:03
问题 I have an experiment in AzureML which has a R module at its core. Additionally, I have some .RData files stored in Azure blob storage. The blob container is set as private (no anonymous access). Now, I am trying to make a https call from inside the R script to the azure blob storage container in order to download some files. I am using the httr package's GET() function and properly set up the url, authentication etc...The code works in R on my local machine but the same code gives me the

Uploading a picture to Windows Azure blob storage

谁说胖子不能爱 提交于 2019-12-24 16:52:33
问题 I'm trying to upload a picture to Windows Azure blob storage. I found a good example, but it relied on the Microsoft.WindowsAzure.StorageClient assembly. I've just learned that the latest version of the Windows Azure SDK has a new Microsoft.WindowsAzure.Storage assembly, which replaces the older StorageClient assembly. This new assembly uses new concreate types: CloudPageBlob and CloudBlockBlob . With the new assembly, I used the following: // Setup the blob string blobAddress = "myPicture

Download Azure VHD to local use powershell

 ̄綄美尐妖づ 提交于 2019-12-24 12:18:11
问题 How can I download azure vhd with powershell to local machine? I read the document, but I can't find the blob url like "https://XXX.blob.core.windows.net/vhds/XXX.vhd" Anybody know that? Thanks 回答1: According to your description, your VM uses managed disk not unmanaged disk. So, you could not find the VHD file in storage account. More information about managed disk please refer to this link. If you want to download the VHD in managed disk, you should copy it to a storage account first. #

Uploading file to azure blob storage then sending http response with the files base64 string doesn't work

爷,独闯天下 提交于 2019-12-24 11:07:43
问题 I am trying to achieve the following using azures blob storage. Upload a file to azure blob storage. Then send a http response containing a base64 string of the file. The strange part is that I can get only one to work as it causes the other to stop working depending on the order of my code. HttpPostedFile image = Request.Files["froalaImage"]; if (image != null) { string fileName = RandomString() + System.IO.Path.GetExtension(image.FileName); string companyID = Request.Form["companyID"]

How would Azure storage be billed?

一个人想着一个人 提交于 2019-12-24 10:47:54
问题 According to the Azure homepage, it says: [Storage, measured in GB] (http://www.windowsazure.com/en-us/pricing/details/) Storage is billed in units of the average daily amount of data stored (in GB) over a monthly period. For example, if you consistently utilized 10 GB of storage for the first half of the month and none for the second half of the month, you would be billed for your average usage of 5 GB of storage. I don't understand clearly about the term, "utilization" here. Let's say I

How do I authenticate a user against an Azure storage blob in python?

廉价感情. 提交于 2019-12-24 10:37:16
问题 I'm looking for a way to authenticate a user against an Azure blob container. The sample code (yep, newbie alert) works just fine, using an access key for the storage account, but that feels uncomfortably like giving away full control of the entire storage account to anyone who steals the credentials. The auth sample (from https://azure.microsoft.com/en-us/resources/samples/storage-python-getting-started/) looks like this: block_blob_service = BlockBlobService(account_name='<acc>', account

Download Azure blob and set it as data url on an image tag

こ雲淡風輕ζ 提交于 2019-12-24 07:47:25
问题 I'm trying to download a blob from private Azure Blob storage container and display it in an image tag. On the question below you can see how I'm returning the blob from the Web API in Stream format. Getting 403 error when trying to retrieve an Azure blob on Web API request From the HTTP response, I am able to retrieve the content type of the blob by including it on the headers section of the request. To use it to generate the data URI to be used on the image tag. I understand I need to

Is put_block_blob_from_path depreciated?

泄露秘密 提交于 2019-12-24 06:59:09
问题 I'm currently trying to upload some files to my Azure storage, but can't seem to achieve that. from azure.storage.blob import BlockBlobService data1File=os.path.join(filePath,'data1.csv') data2File=os.path.join(filePath,'data2.csv') blockBlobService = BlockBlobService(account_name='NAME', account_key='KEY') blockBlobService.put_block_blob_from_path('HdiNotebooks/Recommendation_Systems/data/full', 'data1.csv', data1File) blockBlobService.put_block_blob_from_path('HdiNotebooks/Recommendation

Set Storage Account key using an Arm Template

孤者浪人 提交于 2019-12-24 06:13:33
问题 I want to be able to set the access keys of a azure storage account using an ARM Template. I have looked at the quick start templates which don't have any examples. This does not give me any examples: https://docs.microsoft.com/en-us/azure/templates/microsoft.storage/storageaccounts and googling reveals lots of examples of how to get the dynamically generated keys. 回答1: I want to be able to set the access keys of a azure storage account using an ARM Template. Simple answer is that you can't.

Check if file exists on blob storage with Azure functions

﹥>﹥吖頭↗ 提交于 2019-12-24 06:08:42
问题 Based on https://ppolyzos.com/2016/12/30/resize-images-using-azure-functions/ I have the following C# code to resize an image using Azure Functions. #r "Microsoft.WindowsAzure.Storage" using ImageResizer; using ImageResizer.ExtensionMethods; using Microsoft.WindowsAzure.Storage.Blob; public static void Run(Stream inputBlob, string blobname, string blobextension, CloudBlockBlob outputBlob, TraceWriter log) { log.Info($"Resize function triggered\n Image name:{blobname} \n Size: {inputBlob