azure-storage-blobs

Invalid character exception when adding Metadata to a CloudBlob

白昼怎懂夜的黑 提交于 2019-12-04 23:24:16
Task Upload a file to Azure Blob Storage with the original filename and also assign the filename as meta-data to the CloudBlob Problem These characters are not permitted in the meta-data but are acceptable as the blob name: š Š ñ Ñ ç Ç ÿ Ÿ ž Ž Ð œ Œ « » éèëêð ÉÈËÊ àâä ÀÁÂÃÄÅ àáâãäå ÙÚÛÜ ùúûüµ òóôõöø ÒÓÔÕÖØ ìíîï ÌÍÎÏ Question Is there a way to store these characters in the meta-data ? Are we missing some setting that causes this exception? Most of these characters are standard glyphs in some languages, so how to handle that? Is there any documentation available that advises about this issue? I

Keep getting old version, even after changing the Default Service Version on azure blob (inorder to set the content disposition header)

*爱你&永不变心* 提交于 2019-12-04 20:59:09
background: I'm trying to force the browser to download an image in response to a button (or link) click, instead of showing it inline. I need this to work cross browsers, so HTML5 attributes aren't enough. The Image is stored in a blob (azure storage services). What I tried: To set the DefaultServiceVersion to 2013-08-15 so the contentDisposition will work. (example from here Azure Storage API ContentDisposition ): var cloudStorageAccount = new CloudStorageAccount(new StorageCredentials("accountname", "accountkey"), false); var serviceProperties = cloudStorageAccount.CreateCloudBlobClient()

RBAC access to Azure Storage - preview roles not acting as expected

懵懂的女人 提交于 2019-12-04 19:26:24
I'm trying to give our operations team read-only access to a storage account containing log files. I'd like to be able to give them the right to enumerate containers and read blobs. Ideally that would be the extent of their access. There are a couple of RBAC roles in preview that looked promising: Storage Blob Data Reader (Preview) is described as "Allows for read access to Azure Storage blobs containers and data" which sounds exactly like what I'm after Storage Blob Data Contributor (Preview) sounds like read/write to blob accounts Neither of these roles worked for me, however. The operations

Azure logic apps SFTP Copy File action breaks with some SAS Urls

孤者浪人 提交于 2019-12-04 19:03:56
I was experiencing a problem with a logic app which Used the Create SAS URI by path action to get a SAS-enabled URL for a blob in a storage account Used the SFTP copy file action to copy the file to an SFTP connector The process would fail roughly 50% of the time with an authorization error when trying to fetch the blob from storage. "actions": { "Create_SAS_URI_by_path": { "inputs": { "body": { "Permissions": "Read" }, "host": { "connection": { "name": "@parameters('$connections')['azureblob']['connectionId']" } }, "method": "post", "path": "/datasets/default/CreateSharedLinkByPath", "queries

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

泄露秘密 提交于 2019-12-04 15:44:59
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 redirecting the user to the change password screen, I am getting an invalid username and password

Upload image to Azure blob storage from Windows Phone. Not creating

萝らか妹 提交于 2019-12-04 15:22:00
I am using Windows Azure to store images in my windows phone application. The camera takes a photo and the chosen photo stream is then uploaded. However it is throwing NO error but is not uploading? var blobContainer = CloudStorageContext.Current.Resolver.CreateCloudBlobClient(); var container = blobContainer.GetContainerReference("pics"); var blob = container.GetBlobReference("picture.jpg"); blob.UploadFromStream(e.ChosenPhoto, response => { MessageBox.Show(blob.Uri.ToString()) }); I don't have a clue what is happening. The Resolver contains the correct user, key and urls. The container "pics

how to get blob-URL after file upload in azure

天涯浪子 提交于 2019-12-04 15:04:53
问题 I'm trying to connect web and worker role. So i have a page where user can upload video files. Files are large so i can't use the query to send files. That's why i'm trying to upload them into the Blob Storage and then send the url by the query. But i don't know how to get this url. Can anyone help me? 回答1: Assuming you're uploading the blobs into blob storage using .Net storage client library by creating an instance of CloudBlockBlob , you can get the URL of the blob by reading Uri property

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

China☆狼群 提交于 2019-12-04 11:57:45
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? 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" value="192.168.0.20"/> (This can be IP address on your machine) <add key="EndIPAddress" value=”192.168.0.40" /

Using Azure Blobs with Azure Website

只愿长相守 提交于 2019-12-04 11:53:06
I'm in the process of making an MVC Windows Azure website which involves users uploading images. I wanted to store the images in blobs. I searched for tutorials but most of them deal with Webapps rather than MVC websites. The only useful tutorial I found was: http://www.codeproject.com/Articles/490178/How-to-Use-Azure-Blob-Storage-with-Azure-Web-Sites I'm new to the whole MVC/Windows Azure/Visual Studio scene and I got confused at Step 7 where I had to connect to Cloud Storage Account. var storageAccount = CloudStorageAccount.Parse( ConfigurationManager.ConnectionStrings["StorageConnection"]

Upload CSV file into Microsoft Azure storage account using python

一曲冷凌霜 提交于 2019-12-04 09:49:40
I am trying to upload a .csv file into Microsoft Azure storage account using python. I have found C-sharp code to write a data to blob storage. But, I don't know C# language. I need to upload .csv file using python. Is there any example of python to upload contents of CSV file to Azure storage? I found the solution using this reference link. My following code perfectly work for uploading and downloading .csv file. #!/usr/bin/env python from azure.storage.blob import BlockBlobService from azure.storage.blob import ContentSettings block_blob_service = BlockBlobService(account_name='<myaccount>',