azure-storage

Azure Storage blob using custom domain is not resolving while subdomain worked - how to set up host records?

早过忘川 提交于 2019-12-12 05:45:40
问题 Yesterday I had successfully setup a custom subdomain in Azure storage. I had set up assets.iprobesolutions.com to point to iprobesolutions.blob.core.windows.net. This is a screenshot of my host records CNAME set up: https://www.dropbox.com/s/ndfmn5dd7m48aqg/Screenshot%202016-05-30%2019.36.11.png?dl=0. As I said, this was working fine. Today I decided instead to have iprobesolutions.com point to iprobesolutions.blob.core.windows.net and got as far as Azure accepting the domain using the

download from blob when given its uri fails in c#

旧时模样 提交于 2019-12-12 05:29:33
问题 I'm trying to download a file from Azure blob and save it locally, but it seems to fail. Here's the relevant code: var blobClientCode = client.CreateCloudBlobClient(); string codeUri = "https://???.blob.core.windows.net/...../mycode.exe"; using (var codeContent = File.OpenWrite("C:\\code.exe")) { blobClientCode.GetBlockBlobReference(codeUri).DownloadToStream(codeContent); } I get an error in which the container doens't exist. What am I doing wrong? 回答1: Try getting a reference to the

Getting a java.lang.NoClassDefFoundError in Linux platform and not Windows

让人想犯罪 __ 提交于 2019-12-12 04:29:41
问题 I have a Java program using Microsoft azure Storage. When I run it on a Windows platform, I get no error, but when I run the same on a Linux platform, I get the following error. Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.microsoft.azure.storage.core.Utility Would anybody know of any possible explanations? 回答1: It seems to be a common issue for using Maven to run a Java program on Linux. When command mvn -v or do other operations, you will get the issue like

How to copy azure blob files to azure data lake analytics

孤街醉人 提交于 2019-12-12 04:27:02
问题 Is there a way to create a job or azure service on Azure to move(cut) Azure blob files to Azure data lake store? 回答1: I would say that the Azure Data Factory is a good fit for this. It supports scheduling (https://docs.microsoft.com/en-us/azure/data-factory/data-factory-scheduling-and-execution) and it supports the transfer of data from Blob to Azure Data Lake. See this example: https://docs.microsoft.com/en-us/azure/data-factory/data-factory-azure-datalake-connector From the website: Data

Azure UploadDirectoryAsync doesn't overwrite existing files if changed

拥有回忆 提交于 2019-12-12 03:42:45
问题 I am doing Directory upload using Microsoft.WindowsAzure.Storage.DataMovement library as below TransferManager.Configurations.ParallelOperations = 64; UploadDirectoryOptions options = new UploadDirectoryOptions() { ContentType = "image/jpeg", Recursive = true, }; context.FileTransferred += FileTransferredCallback; context.FileFailed += FileFailedCallback; context.FileSkipped += FileSkippedCallback; await TransferManager.UploadDirectoryAsync(sourceDir, destDir, options: options, context:

Azure Environment Variables in Python Cloud Service

时光怂恿深爱的人放手 提交于 2019-12-12 03:26:03
问题 I have a Python Cloud Service running on Microsoft Azure which should be using a different Storage Account (for blob storage and queues) when it's running in dev vs. staging vs. production. I'd rather not hard-code the Storage Account credentials, but get them from the environment. Alternatively I would like an environment variable or something that indicates whether I'm in staging or production. When I try print(os.environ) I don't see any azure storage credentials, nor a value that

Cannot view image upload to azure blob storage

て烟熏妆下的殇ゞ 提交于 2019-12-12 03:22:39
问题 I am using Node.js to upload an image to azure storage https://github.com/Azure/azure-storage-node. The upload is successful, but I cannot see the image when I visit the URL. The upload code looks like. var file = 'tmp/myimage.png'; var blobService = azure.createBlobService(config.azure.connection_string); blobService.createBlockBlobFromLocalFile(config.azure.container, 'taskblob', file, function(err, result, response) { if(err) return console.log(err); console.log(response); callback(); });

Is stream Reading can make and send Null to blob storage

蹲街弑〆低调 提交于 2019-12-12 03:14:53
问题 I use stream for file with: memory stream, stream readinng or file stream such as byte[] buff = System.IO.File.ReadAllBytes(open.FileName); System.IO.MemoryStream ms = new System.IO.MemoryStream(buff); and I want to send it to blob storage and at that point my blob is empty, is it because of reading file by stream or it refers to other problem such as miss configuration on blob or CloudStorageAccount connection string. 回答1: Just use the below code. No need to convert memory stream, You can

Can't add Microsoft Azure Configuration Manager library for .NET package in Xamarin Studio

泪湿孤枕 提交于 2019-12-12 02:53:48
问题 I need to use the CloudConfigurationManager class that the Microsoft Azure Configuration Manager library for .NET provides to parse a connection string from a configuration file. Skip down to the "Parse the connection string" step of this tutorial to see what I'm doing. I'm following along as close as I can using the Xamarin platform. I'm creating an Android app that I want to save two strings to a table using Azure Storage. When I try to add the Microsoft Azure Configuration Manager Library

How to get Azure Storage Account Key

你。 提交于 2019-12-12 01:57:01
问题 I want to upload a file to an Azure Storage account that is automatically generated (As part of a Service Fabric resource group, with a known name), using C#. I need to upload the file as a blob to allow it to be publicly available. The tutorial Get started with Azure Blob storage using .NET uses a connection string stored in the App.config file. Since I want to use the to-be-generated storage account, I can't use such a method. The prefered method is using the user's AD somehow in order to