Questions tagged [azure-storage]

0

votes
0

answer
4

Views

How Do I Create a Generalized Image from an Encrypted Linux (CentOS 7.5) Machine in Azure?

How do I create a generalized image from an encrypted Linux (CentOS 7.5) machine in Azure? What is the proposed way? Is this even possible? This is what I tried: I've created a virtual machine in Azure (CentOS 7.5) and encrypted both OS and Data partition via the Azure AzureDiskEncryptionForLinux vi...
raidlman
0

votes
0

answer
16

Views

Calling azure resource manager storage API from window desktop app using user credentials

I want to call this API from azure resource manager to get the storage keys: https://docs.microsoft.com/en-us/rest/api/storagerp/storageaccounts/listkeys I want to use user authentication for this call and possibly .net sdk. Is there any .net sdk(Nuget package) I can include in my c# project to ca...
Gyan Prakash
0

votes
0

answer
3

Views

Application registered in AAD is denied Azure Storage Account access

Background: I am following https://docs.microsoft.com/en-us/azure/azure-monitor/platform/metrics-store-custom-rest-api to import custom logs into a Azure Storage account. This fails due permissions on the resource id: The Azure AD object '' does not have permissions to perform action 'Microsoft.Ins...
MrSCOM
0

votes
0

answer
4

Views

How to send a ios Push Notification (Azure Notif Hub) with media attachment?

We have a Web App through which a user sends a push notification message (Azure Notification Hub) and also can upload PDF/Word as attachment. How should i handle it on the phone side when it receives the notification? Should i save the PDF/Word to Azure Blob Storage when they upload from the Webapp...
Kris RaduhaSt
2

votes
0

answer
11

Views

How to pass-through non-multipart file content from client to blob storage without buffering it in web api app?

In my web api I need to receive files and then save them in blob storage. Clients are not allowed to access and are not aware of blob storage. I'm trying to avoid buffering of files which could be up to 300MB in size. I've seen this post How to I pass a stream from Web API to Azure Blob storage with...
bdristan
1

votes
1

answer
833

Views

Azure Function stopped working - Could not load type 'Microsoft.Azure.WebJobs.BlobTriggerAttribute'

My always running function stopped working recently. So I started to look what's changed, loaded solution locally in VS2017 and hit compile. Everything seems to be compiling but when I run it locally I get: Error indexing method 'CheckNewBlob.Run' Microsoft.Azure.WebJobs.Host: Error indexing method...
alvipeo
12

votes
3

answer
5.9k

Views

How Do I Backup Azure Tables and Blobs

I store data in Azure Storage tables and blob storage. I would like to automatically backup my data to protect against accidental data corruption by users or by a software issue. There isn't a good solution for this from Microsoft and, while there are paid solutions for automatic backups, it seems...
Keith Holloway
1

votes
1

answer
219

Views

Compilation error when trying to reference a CloudBlockBlob in blobstorage triggered function

Here's my function code. #r 'Microsoft.WindowsAzure.Storage.Blob' public static async Task Run(CloudBlockBlob uploadedVideo, string name, CloudBlockBlob processedVideo, ILogger log) { log.LogInformation($'C# Blob trigger function Processed blob\n Name:{name} \n Size: {uploadedVideo.Length} Bytes');...
horatius
0

votes
0

answer
2

Views

Azure - cheapest way to host Angular micro-apps that need url rewrites

I have a SPA that is made up of multiple micro-apps each built with angular. I would like to host on azure as a storage account as it’s all static files, however it requires some url rewrites for various routing reasons and there is no way to configure this in storage accounts. What options do I h...
ib4nez
1

votes
1

answer
1.6k

Views

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

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 a...
Michael Sabin
1

votes
1

answer
547

Views

How do you reference a blob from an Azure Timer Trigger Function?

I have an Azure Timer Trigger Function that should do some calculations and write the results to a json file in a pre-existing blob. How do I reference the pre-existing blob from within the Timer Triggered function? I can't seem to find any documentation that provides a code sample. Can someone prov...
BobbyA
1

votes
1

answer
1.5k

Views

Read content from Azure blob storage in node API

I am new to azure and working on the storage account for one my application.Basically I have json files stored in azure blob storage. I want to read the data from these files in Node JS application and do some filtering on the data, which is eventually secured REST end point to view data in the UI/C...
jithu reddy
1

votes
1

answer
101

Views

Azure blob storage - blob policy

I am doing web application with profile photo uploader. All photos are stored in one container with UUID as name. Idea is to send back to client side photos according to requested id ( REST API is used in this app). Question : What is the best aproach while working with Azure storage to expose thos...
Radek
1

votes
2

answer
51

Views

Create Virtual Directory in Service Definition File using Azure Storage

I was wondering if it was possible to set the Physical Path of a virtual directory in a service definition file to azure storage (blob etc). Currently i have some image content that i have have in blob storage which i would like to be accessed via the virtual directory. Is this possible? Any examp...
TBD
1

votes
2

answer
530

Views

Windows Azure Storage Blobs to zip file with Express

I am trying to use this pluggin (express-zip). At the Azure Storage size we have getBlobToStream which give us the file into a specific Stream. What i do now is getting image from blob and saving it inside the server, and then res.zip it. Is somehow possible to create writeStream which will write in...
Gonchar Denys
1

votes
2

answer
3.1k

Views

How do I get all blobs at all levels in a container?

I found this thread about listing the blobs in a container. from azure import * from azure.storage import * blob_service = BlobService(account_name='', account_key='') next_marker = None while True: blobs = blob_service.list_blobs('', maxresults=100, marker=next_marker) next_marker = blobs.next_mar...
Bob
1

votes
2

answer
2.1k

Views

Getting ImportError: No module named azure.storage.blob when doing python manage.py syncdb

When I try to do python manage.py syncdb in my Django app, I get the error ImportError: No module named azure.storage.blob. But thing is, the following packages are installed if one does pip freeze: azure-common==1.0.0 azure-mgmt==0.20.1 azure-mgmt-common==0.20.0 azure-mgmt-compute==0.20.0 azure-mgm...
Hassan Baig
1

votes
1

answer
247

Views

Is it possible to access azure storage using wasb URI scheme in C#?

Can we access Azure blob and Azure data lake store using wasb URI scheme in code behind file of U-SQL activity in C#. I have not observed any example/sample demonstrating this, and it is also not specified weather it is possible or not. If it is possible, please share some sample/example to use this...
Jamil
1

votes
1

answer
105

Views

How to download SAS(Shared Acess signature) of an Azure File share onto Linux machine

I have a SAS generated for a file share(with read and list privileges(no write privileges). my SAS looks like the following format : “https://test.file.core.windows.net/testf1?[some_token_here] . I used Azcopy to download the files through above SAS onto a windows virtual machine however Azcopy...
Rahul
1

votes
1

answer
1.2k

Views

Python: How to connect to Azure cloud storage using shared access key?

In .net I should be able to connect to the azure storage using SAS like this: var someTable = new CloudTable('https://account-name.table.core.windows.net/table-name?sv={key}'); How can I do it in python? I could not find a CloudTable class in azure.storage.table (from azure sdk for python: https://g...
90abyss
1

votes
2

answer
919

Views

Azure Storage: File Metadata

I am creating a webjob app to periodically (scheduled) read an azure file share and process files. I am using the C# ApI examples provided but cannot figure out how to get file metadata with my directory listing. I would like to do something as simple as sort files by modified date. Does anyone hav...
WadeB
1

votes
1

answer
634

Views

Azure HTTPS POST and GET

I am a new user of the Azure platform, and am having trouble understanding how differents parts are conected. I have data in a Storage blob that I would like to use to make HTTPS POST requests to a web service. My question therfore is as follows: How can I send data from my Azure storage blob to a R...
dagrun
1

votes
1

answer
313

Views

How do I generate an Azure SAS signature constraining Content-Length header to certain value?

I am currently implementing ajax browser uploads straight to an azure storage container. First I need a signed url that will allow me to do that without sharing my private key with the browser (I ask my server for this signed URL on a previous ajax call). My server side code looks like this; public...
Renato Gama
1

votes
2

answer
148

Views

How to know the complete list of providers and available extensions in ARM template

I would like to know where we can find the list of all the available providers and the related extensions for resources that can be defined in ARM template Regards Parimi.
Phani Kumar PV
1

votes
1

answer
200

Views

Use Azure webjobs and queue storage to execute at a given time

My goal is to push a message to the Azure queue, and have the webjob handle it at a given time. E.g. { message : 'remember the milk', time: 2016-02-10-10:10:00} I could do this naively by dequeueing the message, check the timestamp, and put it back on the queue if the time has not come. Is there a...
MrCalzone
1

votes
1

answer
558

Views

Invalid x-ms-version header in Azure PHP SDK with blob storage

I set up a container in Azure to store blob objects. When using createBlockBlob method within the Azure PHP SDK I receive the following error output: 400: Fail: Code: 400 Value: The value for one of the HTTP headers is not in the correct format. details (if any): InvalidHeaderValueThe value for o...
Daniel
1

votes
1

answer
286

Views

Querying where RowKey EndsWith()?

I have a storage table which is an index of users who follow another specific user. To do this I have set the PartitionKey to the id of the user being followed, and the RowKey to the ticks of the date they followed, as per the guide on this post, with the id of the following user appended to it. Thi...
Rory McCrossan
1

votes
2

answer
372

Views

How to fetch latest below 1000 WADLogsTable entry?

I've coded for fetching latest diagnostic log from wadlogstable in c# But it is traversing all over records and then giving latest entry ex. there 5000 records in table but i want only latest or last 1000 record but it is giving all records then after order by query it is giving last 1000 record, s...
Ashok Dhakhada
1

votes
1

answer
1.7k

Views

Azure WebJob ProcessQueueMessage fails to read CloudQueueMessage

In summary, I have an Azure Web Job linked to a CloudQueue via the WebJobs SDK's ProcessQueueMessage mechanism, using the CloudQueueMessage parameter type. This gives me a FunctionInvocationException when triggered via QueueTrigger. Detail The item is added successfully to the CloudQueue using the A...
richaux
1

votes
1

answer
3.1k

Views

Accessing an Azure Storage Account File Share from an ASP.NET Application

I've got an ASP.NET application that needs to read and write from an Azure Fileshare. I cannot set permissions directly on the Azure Fileshare, rather, I have the storage account key and primary access key. I can get on my server and use the 'net use' command to mount the fileshare as a drive. Becau...
tarun713
1

votes
1

answer
464

Views

Save-AzureRmVMImage mandatorily creates invalid blob container name

I am capturing an ARM VM image to use it in create from image operations. However the Save-AzureRmVMImage command creates mandatorily (or just by default?) such a container and blob name what seems to be invalid for other commands. The parts of '/Microsoft.Compute/ in the container name and 'osDisk...
g.pickardou
1

votes
1

answer
481

Views

How do you download a web application from Azure?

My company has been given a web application in Azure. This is our first Azure project; typically we develop C#/asp.net apps in Visual Studio with data in SQL Server and move the finished app to a web server. I've connected Visual Studio 2015 to the Azure account. I can see the blobs, tables, and f...
boilers222
1

votes
1

answer
287

Views

HttpClient.GetAsync( ) & CloudBlobBlock.UploadFromStreamAsync( ) - how is this executed?

I need to download a file from one place, and upload it to a azure blob. I also need to return the size of the blob when it's done: public async Task Download(string url) { using (var client = new HttpClient()) { return await client.GetStreamAsync(url); } } public async Task Upload(Stream stream, st...
Vegar
1

votes
1

answer
741

Views

upload file to Blob through Windows Forms c#

I am working on application that is connected to a Blob Database and I am having an exception being thrown whenever I try to pick a file from my PC and upload it. This is the code: StorageCredentials storageCredentials = new StorageCredentials('filep2pstorage', connectionString); CloudStorageAc...
andas1951
1

votes
2

answer
1.9k

Views

How to determine file-encoding of file on hdfs (Azure blob storage)?

I've got a bunch of 100GB files on hdfs with mixed file-encodings (unfortunately in Azure blob storage). How can I determine the file encodings of each file? Some dfs command-line command would be ideal. Thanks.
conner.xyz
1

votes
1

answer
48

Views

Cap Resource Usage with Azure DataMovementLibrary Utility

I wrote a little utility to run a nightly backup from one of my servers to an Azure blob storage using the Data Movement Library (0.2.0): https://azure.microsoft.com/en-us/blog/announcing-azure-storage-data-movement-library-0-2-0/ Nice library. Anyway, I'm wondering if there's a way I can cap the r...
jleach
1

votes
1

answer
705

Views

Azure Blob Storage - Uploading Http/StreamContent to a CloudBlockBlob from WebApi Controller

I am sending a PDF file to my WebAPI Controller via a POST request using Angular as such: $scope.upload = Upload.upload({ url: '../api/Locker/Upload', // webapi url method: 'POST', file: controllerFile, }) which in my POST method on my controller I get the StreamContent of that file as follows: pub...
Pipeline
1

votes
2

answer
356

Views

Can Azure Storage File Shares be copied?

We're using Azure file shares as data volumes for docker containers, and we'd like to back them up nightly. Is there a way of making copies of file shares using the .net SDK?
Dan O'Leary
-1

votes
0

answer
15

Views

End-to-end encryption with Azure CosmosDB vs Storage

We develop a cloud based SaaS solution suitable for multiple tenants. For very sensitive data, we need to isolate tenants and provide end-to-end encryption for users assigned to this tenant. Not even the operators of the SaaS solution provider should be able to decrypt the data. Azure Storage I see...
Markus S.
1

votes
2

answer
1.2k

Views

How can I call New-AzureStorageContext using -SasToken instead of -StorageAccountKey

Using Azure Powershell v1.3, I'm trying to create a new storage context using an existing Shared Access Signature token which references an existing policy. When I call New-AzureStorageContext with -SasToken and -StorageAccountName I get an error: PS C:\> $ctx = New-AzureStorageContext -SasToken '?s...
codekaizen

View additional questions