azure-storage

Azure blob storage and security best practices

时光毁灭记忆、已成空白 提交于 2019-12-23 06:39:48
问题 When exploring Azure storage I've noticed that access to a storage container is done through a shared key. There is concern where I work that if a developer is using this key for an application they're building and then leave the company that they could still login to the storage account and delete anything they want. The workaround for this would be to re-generate the secondary key for the account but then we'd have to change all of the keys in every application that uses those keys. Is it

Azure blob storage and security best practices

蓝咒 提交于 2019-12-23 06:39:46
问题 When exploring Azure storage I've noticed that access to a storage container is done through a shared key. There is concern where I work that if a developer is using this key for an application they're building and then leave the company that they could still login to the storage account and delete anything they want. The workaround for this would be to re-generate the secondary key for the account but then we'd have to change all of the keys in every application that uses those keys. Is it

(Not Found) Error in Azure Mobile Services .NET Backend

假装没事ソ 提交于 2019-12-23 06:07:51
问题 Been stuck with that error till madness phases ... Please help I have created an Azure Mobile Service .NET backend, and am now trying to call its Post function from a Xamarin Android client I initialize and call the Insert async function (these are just snippets from my code) private static IMobileServiceTable<Todo> _todoMobileServiceTable; public static bool? InitializeAms() { try { CurrentPlatform.Init(); _mobileServiceClient = new MobileServiceClient(applicationUrl, applicationKey);

Image files sync in Azure Mobile Apps for Android

狂风中的少年 提交于 2019-12-23 05:46:09
问题 Sorry if this question does not contain any code. I am building an Android app using Azure Mobile Apps. I am successfully following the sample with the TodoList . The sample describes the case for data sync, but what if I want to add support for images sync? Do I have to save the image files as blob inside the database? Do I treat files as any other record in the db, or is there a better way? Do I have to use a service other than "Mobile Apps"? I've also read the following instructions about

How to change the properties of a service bus queue?

試著忘記壹切 提交于 2019-12-23 03:30:55
问题 I am using service bus queues to communicate between web role and worker role. Sometimes web role messages are not being accepted by worker role. But it immediately accepts the next message i send. So i was thinking maybe its happening because the Batched Operations is enabled. I have been trying to put it to false but i havent been successful. This is my code. public static QueueClient GetServiceBusQueueClient(string queuename) { string connectionString; if (RoleEnvironment.IsAvailable)

Transfer files directly from FTP to Azure File Storage without keeping them locally in memory or disk

烈酒焚心 提交于 2019-12-22 18:33:26
问题 I have to transfer files from FTP to an Azure File Storage. My code works fine, but I'm transferring those files in memory which is not a best practice. So first I read the stream to an Byte array in memory. Then I upload the output to an Azure file storage. Now I know it's better to do this asynchronicaly. But I don't know if this is possible and how to do it. My code: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using

Azure PHP SDK: download container's all blob in a single zip file

非 Y 不嫁゛ 提交于 2019-12-22 16:13:06
问题 I want to download all blob from specified container as a zip file. Is there any way to download its as zip directly from Azure, no need to process it on my server? Currently I think like below: file_put_contents("file_name", get_file_contents($blob_url)); I will store all files on my server and then create zip file of those and then will force to download. . 回答1: Azure has no such facility to generate a zip file for a bundle of blobs for you. Azure Storage is just... storage. You'll need to

How can I locate an Azure resource or setting creating empty WADMetrics Tables?

允我心安 提交于 2019-12-22 13:56:14
问题 We have a resource constantly creating completely empty WADMetrics tables on a storage account. We have a significant amount of Azure resources and are unable to locate what is creating them since they are completely empty. It appears 2 tables are created every 10 days designed to store data in 1Hour and 5Min buckets. How can we determine what is creating these tables? 回答1: WAD stands for Windows Azure Diagnostics, which is probably enabled on a VM or other computing resource that uses this

adding to azure blob storage with stream

社会主义新天地 提交于 2019-12-22 12:31:31
问题 I am trying to add an IFormFile received via a .net core web API to an azure blob storage. These are the properties I have set up: static internal CloudStorageAccount StorageAccount => new CloudStorageAccount(new StorageCredentials(AccountName, AccessKey, AccessKeyName), true); // Create a blob client. static internal CloudBlobClient BlobClient => StorageAccount.CreateCloudBlobClient(); // Get a reference to a container static internal CloudBlobContainer Container(string ContainerName) =>

Create azure storage container through powershell in new portal

霸气de小男生 提交于 2019-12-22 12:18:53
问题 I want to create an azure storage container in an existing storage account, through powershell.I have tried the following commands: Set-AzureSubscription -CurrentStorageAccountName "storageaccountv1" -SubscriptionId $SubscriptionId New-AzureStorageContainer -Name $ContainerName -Permission Off For those who know, Azure has two types of storage accounts: v1, v2. v1 accounts are the ones that are available through the http://manage.windowsazure.com/ and v2 that can be created in http://portal