azure-storage-blobs

Performance impact of writing Azure diagnostic logs to blob storage

穿精又带淫゛_ 提交于 2019-12-14 01:40:31
问题 Our C# web app, running on Azure, uses System.Diagnostics.Trace to write trace statements for debugging/troubleshooting. Once we enable blob storage for these logs (using the "Application Logging (blob)" option in the Azure portal), the response time for our application slows down considerably. If I turn this option off, the web app speeds up again (though obviously we don't get logs in blob storage anymore). Does anyone know if this is expected? We certainly write a lot of trace statements

How can upload files to Azure Blob Storage from web site images?

老子叫甜甜 提交于 2019-12-13 22:39:28
问题 How can upload file to Azure Blob Storage from www.site.com/amazing.jpg ? Multiple upload files to Azure Blob Storage from urls. I cant find this way. I tried many way unsuccesful :( thank you for help 回答1: It's actually pretty simple and you can ask Azure Storage to do the work for you :). Essentially what you have to do is invoke Copy Blob operation. With this operation, you can specify any publicly accessible URL and Azure Storage Service will create a blob for you in Azure Storage by

Azure Storage Service REST APIs: Create Lease

扶醉桌前 提交于 2019-12-13 20:41:37
问题 Getting the below error while making a call to Create Container. Response Code : 403 Response Message : Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. String stringToSign = "PUT\n\n\n\n\n\n\n\n\n\n\n\nx-ms-date:" + date + "\nx-ms-version:" + "2018-03-28\nx-ms-lease-action:acquire\nx-ms-lease-duration:1\nx-ms-proposed-lease-id:1f812371-a41d-49e6-b123-f4b542e851c5\n" + "/" + storageAccount + "/"+ "container

Blob upload unauthorized Server failed to authenticate the request exception

↘锁芯ラ 提交于 2019-12-13 20:33:46
问题 I used this code a week ago and everything was fine. My colleagues are still using the exact same code and they have no problem at all. StorageCredentialsAccountAndKey heronStorage = new StorageCredentialsAccountAndKey("heron", "someKey"); CloudBlobClient blobClient = new CloudBlobClient("someUrl", heronStorage); CloudBlobContainer container = blobClient.GetContainerReference("containerName"); container.CreateIfNotExist(); container.SetPermissions(new BlobContainerPermissions { PublicAccess =

Nodejs uploading base64 image to azure blob storage results to “ResourceNotFound” error

折月煮酒 提交于 2019-12-13 19:38:24
问题 Here is the post request JSON : { "name":"images.jpg", "file":"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxQTEhIUEhIUFBUV…K9rk8hCAEkjFMUYiEAI+nHIpsQh0AkisDYRTOiCAbWVtgCtI6IlkHh7LDTQXLH0EIQBj//2Q==" } And here's my node controller under the request /upload route, I am using createBlockBlobFromText() from azure-storage. var azure = require('azure-storage'); var blobSvc = azure.createBlobService('myblob.blob.core.windows.net/mycontainer', THE_KEY); controllers.upload = function

Azure sql server backup to Azure blob - CherrySafe replacement

风流意气都作罢 提交于 2019-12-13 19:22:32
问题 I am new to Azure SQL server and trying to understand how do I backup Azure SQL databases to Azure blob few times a day. My company is currently using [Cherry Safe][1] to backup Azure SQL Databases but Cherry Safe is shutting down in 2 weeks. As I read more about it, it seems like I can configure export to Azure blob but I do not see that option. I see history of exports but I do not know where is the configuration to schedule or change it. For long term retention, I see an option to

PDFSharp WPF 1.32 private fonts will not work with Azure Blob storage

不想你离开。 提交于 2019-12-13 18:14:50
问题 I have some code that adds text using a private font to a PDF file using PDFSharp. This works successfully if the font is located on the local file system but does not work when I provide it with a url to a font stored on a Azure blog storage. I also tried using a google font on their CDN, which also didn't work. Is there some problem with loading fonts from a web url? The sample code is below. Note that I have solved the CORS issue on Azure blob storage so it isn't that. private readonly

how can i upload the blob in azure using the shared access signature using PHP?

一世执手 提交于 2019-12-13 17:22:14
问题 I am using the azure php SDK and I have the SAS signature which I get from the application now how can I upload the file to the blob using the SAS( Shared Access Signature). 回答1: If you have an SAS token, and if it has the write permission to blob in your Azure Storage Account, you can leverage the SAS token to upload your files directly to Azure Storage without Azure Storage SDK for PHP. I assume that you have the correct SAS query string with signature, which should be similar with: ?sv

Trigger VSTS/TFS build based on blob

我与影子孤独终老i 提交于 2019-12-13 16:35:45
问题 Is it possible to trigger an VSTS/TFS build based on the condition if a blob in a storage account is updated? I tried to create a function app, but with little to no result, I cannot trigger a VSTS/TFS build. 回答1: Easiest solution (from my understanding) will be to use a logic app: Create a logic app that is triggered whenever a blob is added/updated into a specific container. Queue a VSTS build NOTE your VSTS account should have "Third-party application access via OAuth" enabled. (Go to

Uploading File To Azure Storage causes the error: Timeouts are not supported on this stream

柔情痞子 提交于 2019-12-13 16:21:58
问题 I have a form including a file upload to Azure Storage. This is where ToStream() method called: Image img= Image.FromStream(file.InputStream, true, true); if (img.Height != height || img.Width != width) img= img.GetThumbnailImage(width, height, null, new IntPtr()); img.ToStream().SaveAsBlob(blobname, filename); And this is ToStream() Method: public static Stream ToStream(this Image image) { Stream ms = new MemoryStream(); image.Save(ms, ImageFormat.Jpeg); ms.Position = 0; return ms; } Where I