azure-storage-blobs

Azure: Assign Roles via ARM Template to storage container

扶醉桌前 提交于 2020-01-02 10:21:40
问题 I'm trying to assign the role "Storage Blob Data Contributor (Preview)" to a specific storage container via arm template. But I just can't figure out the correct syntax. This is what I have: { "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { "principalId": { "type": "string", "metadata": { "description": "The principal to assign the role to" } }, "builtInRoleType": { "type": "string", "allowedValues": [

Data Lake Analytics U-SQL EXTRACT speed (Local vs Azure)

情到浓时终转凉″ 提交于 2020-01-02 07:51:10
问题 Been looking into using the Azure Data Lake Analytics functionality to try and manipulate some Gzip’d xml data I have stored within Azures Blob Storage but I’m running into an interesting issue. Essentially when using U-SQL locally to process 500 of these xml files the processing time is extremely quick , roughly 40 seconds using 1 AU locally (which appears to be the limit). However when we run this same functionality from within Azure using 5 AU’s the processing takes 17+ minutes. We are

Setting the content-type of a blob in Azure functions app blobtrigger

醉酒当歌 提交于 2020-01-02 03:58:06
问题 I am trying to resize the images uploaded to my container in order to create thumbnails and various other versions of my images for my site. The images i upload have to correct content-type "image/jpeg" but when i create a new version of them using the code below it turns out as "application/octet-stream". What am i missing here? using ImageResizer; using ImageResizer.ExtensionMethods; public static void Run(Stream myBlob, string blobname, string blobextension, Stream outputBlob, TraceWriter

Azure AD B2C SignUp-SignIn policy with MFA turned on - Custom Login Page

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-01 18:19:10
问题 I have an asp.net web application that authenticates via Azure AD B2C tenant. I have a sign-up-sign-in policy [login is using username instead of email] with MFA turned on. I have also setup Custom UI login page [unified.html] and MFA page [phonefactor.html] in a storage blob that the policy points to. I am able to authenticate the user via the custom login page and login with MFA. The issue is when I create a new user and force the user to change the password at their first login, instead of

Is it possible to have the Windows Azure emulator open the browser to a URL other than 127.0.0.1

让人想犯罪 __ 提交于 2020-01-01 16:58:48
问题 Simple question but lots of meaning/discussion behind!!! Is it possible to have the Windows Azure emulator open the browser to a URL other than 127.0.0.1 and port 81? 回答1: Follow the steps to change 127.0.0.1 to desire IP Compute Emulator Settings: Go to %Program Files%\Microsoft SDKs\Windows Azure\Emulator\devfabric Take backup of “DevFC.exe.config” so that if something goes you can revert it back. Change following settings to desired IP address range and subnet: <add key="StartIPAddress"

Successfully Saving base64 Image to Azure Blob storage but blob image always broken/small white box

不问归期 提交于 2020-01-01 03:45:11
问题 I have a image converted to base64 I am trying to upload to my azure blob storage using createBlockBlobFromText. self.blobServer.createBlockBlobFromText(containerName, fileName, baseStrChars, { contentSettings: { contentType: 'image/jpeg' } }, function(error, result, response) { if (error) { console.log(error); } console.log("result", result); console.log("response", response); }); My new jpeg image appears in blob storage container but when I go to the blob image URL I always get this. My

how to transfer file to azure blob storage in chunks without writing to file using python

你说的曾经没有我的故事 提交于 2019-12-31 05:25:19
问题 I need to transfer files from google cloud storage to azure blob storage. Google gives a code snippet to download files to byte variable like so: # Get Payload Data req = client.objects().get_media( bucket=bucket_name, object=object_name, generation=generation) # optional # The BytesIO object may be replaced with any io.Base instance. fh = io.BytesIO() downloader = MediaIoBaseDownload(fh, req, chunksize=1024*1024) done = False while not done: status, done = downloader.next_chunk() if status:

Azure PUT Blob authentication fails in R

老子叫甜甜 提交于 2019-12-31 04:05:09
问题 I would like to use R and the Azure Storage's Put Blob API to put files into my blob storage account but it fails to authenticate my request. Unfortunately, I couldn't find any documentation or sample code for R. General documentation of Put Blob API: https://docs.microsoft.com/en-us/rest/api/storageservices/put-blob Here is the code that I tried to use: library(httr) account <- "myAccount" container <- "myContainer" filename <- "test.txt" key <- "primaryKey" object <- "Hello World" url <-

Returning Azure Blob Stream directly from WCF service

谁说我不能喝 提交于 2019-12-31 00:45:13
问题 I am looking to return a stream from Azure Blob Storage directly to the browser via WCF. Basically I have a REST WCF service and I am looking to have users download files via the service while the files are stored in Azure Blob storage. In this question Returning Azure BLOB from WCF service as a Stream - Do we need to close it? it does what I like however it downloads the entire file to a new stream first, is there a way to give the blob stream as the return stream from WCF so WCF acts more

Azure rest api put blob

独自空忆成欢 提交于 2019-12-29 08:22:30
问题 I am trying to put a blob with Azure rest api. i made a "GET" request successfully but i had issues with "PUT" request. When i try to make "PUT" request i get a 404error (i have seen same post in stackoverflow but it didnt help me).i am not sure if the MessageSignature that i use is correct(i have tried MessageSignaturePut but didnt work). Any suggestions? public void UploadBlobWithRestAPI(string uri, DateTime now) { string blobName = "test.txt"; string method = "PUT"; string sampleContent =