azure-storage

Restrict access to static website hosted on azure storage to intended users

喜欢而已 提交于 2020-01-11 12:37:10
问题 I hosted a simple website in Azure storage using the static website feature. The url of the website is now publicly available. (anyone with the url can access the website). But my intention is to provide access only to the users who I want to. Is there a way that can restrict the public access to the static website hosted in Azure storage? 回答1: Static website hosting makes the files available for anonymous access. If you need to control who can access the files, you can store files in Azure

How to retrieve latest record using RowKey or Timestamp in Azure Table storage

浪尽此生 提交于 2020-01-10 14:10:31
问题 Tricky part is RowKey is string which is having value like Mon Nov 14 12:26:42 2016 I tried query using Timestamp like var lowerlimit = DateTime.UtcNow; // its should be nearer to table timestamp data. TableQuery<TemperatureEntity> query2 = new TableQuery<TemperatureEntity>().Where(TableQuery.GenerateFilterConditionForDate("Timestamp", QueryComparisons.GreaterThanOrEqual,lowerlimit)); var test = table.ExecuteQuery(query2); MyEntity.cs public class MyEntity : TableEntity { public MyEntity

Azure Blob: “The condition specified using HTTP conditional header(s) is not met”

橙三吉。 提交于 2020-01-10 03:48:05
问题 I got this exception when I run my application. It happens also in the real Azure blob storage. I've caught with Fiddler the request that creates this problem: GET http://127.0.0.1:10000/devstoreaccount1/ebb413ed-fdb5-49f2-a5ac-74faa7e2d3bf/8844c3ec-9e4b-43ec-88b2-58eddf65fc0a/perro?timeout=90 HTTP/1.1 x-ms-version: 2009-09-19 User-Agent: WA-Storage/6.0.6002.18006 x-ms-range: bytes=0-524304 If-Match: 0x8CDA190BD304DD0 x-ms-date: Wed, 23 Feb 2011 16:49:18 GMT Authorization: SharedKey

Availability metric chart for Azure storage account going to 0 but alert shown as 100%

╄→尐↘猪︶ㄣ 提交于 2020-01-06 19:58:24
问题 I have an alert configured on Azure storage account which should get fired whenever the availability goes below 100%. This alert has never fired till now. However, in the availability metric chart shown at azure for past hour (attached below), the availability is shown to go below 100 multiple times. It seems that the availability oscillates between 100 and 0. However, if I increase the time range to 24 hours, the availability is shown to be at 100 always (which it should be, because the

Availability metric chart for Azure storage account going to 0 but alert shown as 100%

好久不见. 提交于 2020-01-06 19:58:20
问题 I have an alert configured on Azure storage account which should get fired whenever the availability goes below 100%. This alert has never fired till now. However, in the availability metric chart shown at azure for past hour (attached below), the availability is shown to go below 100 multiple times. It seems that the availability oscillates between 100 and 0. However, if I increase the time range to 24 hours, the availability is shown to be at 100 always (which it should be, because the

DSInit has disappeared on upgrading Azure SDK to 2.3

て烟熏妆下的殇ゞ 提交于 2020-01-06 08:27:11
问题 I recently upgraded two separate development environments to the new Azure SDK 2.3 tools. The storage emulator did not initialise as expected. So I go to run DSinit to initialise the database and it's gone! It's like someone has stolen it. I have searched the whole disk and it's not there. So now I have a storage emulator that will not initialise and the tool to repair it has somehow disappeared when I upgraded from Azure SDK 2.2 to 2.3. The question is, Where can I get DSInit. and Is this

numpy.load from io.BytesIO stream

我的梦境 提交于 2020-01-06 07:58:25
问题 I have numpy arrays saved in Azure Blob Storage, and I'm loading them to a stream like this: stream = io.BytesIO() store.get_blob_to_stream(container, 'cat.npy', stream) I know from stream.getvalue() that the stream contains the metadata to reconstruct the array. This is the first 150 bytes: b"\x93NUMPY\x01\x00v\x00{'descr': '|u1', 'fortran_order': False, 'shape': (720, 1280, 3), } \n\xc1\xb0\x94\xc2\xb1\x95\xc3\xb2\x96\xc4\xb3\x97\xc5\xb4\x98\xc6\xb5\x99\xc7\xb6\x9a\xc7" Is it possible to

azure table storage pagination for request 10 items each time

放肆的年华 提交于 2020-01-06 06:44:58
问题 Basically I am trying to get pagination working when requesting entities of azure table storage. i.e. Press next button gets the next 10 entities & Press previous button gets the previous 10 entities. A relatively close example Gaurav Mantri's Answer. But my question is how do I get the nextPartitionKey and nextRowKey from a HTML button attribute and store in to a array/list in order to keep track of current page so I can get the next/previous items?Code example would be very appreciated.

Move the file from Sftp to the Azure container using function app

北城余情 提交于 2020-01-06 05:08:11
问题 I was writing a C# program to move the file from Sftp to the Azure container. Using visual studio I'm able to move the file from sftp to container. I wanted to make it through Azure function app. Below is the code i have written in visual studio. In azure function app i'm getting many error including reference not found. Could any one advise me how to make work this code in azure function app? using System; using System.Threading; using System.IO; using System.Configuration; using Renci

Pushing documents(blobs) for indexing - Azure Search

百般思念 提交于 2020-01-06 04:41:07
问题 I've been working in Azure Search + Azure Blob Storage for while, and I'm getting trouble indexing the incremental changes for new files uploaded. How can I refresh the index after upload a new file into my blob container? Following my steps after upload file(I'm using rest service to perform these actions): I'm using the Microsoft Azure Storage Explorer [link]. Through this App I've uploaded my new file to a folder already created before. After that, I used the Http REST to perform a 'Run'