azure-storage-emulator

Azure Storage Emulator fails to init with “The database 'AzureStorageEmulatorDb57' does not exist”

☆樱花仙子☆ 提交于 2021-02-17 21:09:49
问题 I am having an issue with Azure Storage Emulator. I tried to re-initialise the database and got the error below. This was after installing Visual Studio 2019 Preview but this may just be a co-incidence. I tried for an hour or so to get it running and then gave up and just reset my machine with the "keep my files" option, re-installed Visual Studio 2017 and the Azure Tools but still see the same problem. I know a reset sounds a bit drastic but VS 2019 broke my Azure Functions in VS2017, they

How to run Timer-triggered Azure Functions locally on Mac?

夙愿已清 提交于 2020-12-15 04:30:17
问题 I want to execute a timer-triggered function in my local development environment (Node, OS X) but it seems to require some changes to the HTTP-triggered functions setup I have. Here's the code related to the timer function so far: /cron-job/function.json defines a timer input binding scheduled to run every minute. It also has a reference to the code entry point (compiled from Typescript): { "bindings": [ { "type": "timerTrigger", "direction": "in", "name": "timer", "schedule": "0 */1 * * * *"

Azure storage emulator cannot connect to LocalDB

拜拜、爱过 提交于 2020-01-02 08:55:30
问题 I have a problem with the Azure storage emulator, which refuses to connect to LocalDb. It used to work just fine before I created an ODBC connection to it using the named pipe. What happened: I needed to access the data in my database from Mathematica, so I generated an ODBC connection. ODBC could not connect to (localdb)\v11.0, so I used a named pipe instead. Since then, Azure has stopped to work. I upgraded to SDK2.0, but it did not help. I tried to run DSInit.exe, but I get: Found SQL

Azure Storage Emulator 400 Bad Request

人盡茶涼 提交于 2019-12-30 08:24:08
问题 I'm suddenly getting the Bad Request (400) error when using the Azure Storage Emulator when trying to CreateIfNotExists. The Response on the Inner Exception says "The value for one of the HTTP headers is not in the correct format." All the tables exist, the data is in the tables, everything was working up until an update to my NuGet packages. Looking around SO it seems like a common cause is an update to Azure Storage Client Library (now at 5.0.0) that creates a mismatch. I updated the Azure

Azure Storage Emulator 403 Forbidden

时光毁灭记忆、已成空白 提交于 2019-12-30 04:50:06
问题 Via Nuget, I upgraded WindowsAzure.Storage to 8.1.1 . I then downloaded the AzureStorageEmulator 5.1.0.0 client. My connection string: UseDevelopmentStorage=true; I've made no code changes since previously when it was apparently working fine. I know get the exception: Microsoft.WindowsAzure.Storage.StorageException: The remote server returned an error: (403) Forbidden. ---> System.Net.WebException: The remote server returned an error: (403) Forbidden. at System.Net.HttpWebRequest.GetResponse(

How to start Windows Azure Storage Emulator V3.0 from code

别等时光非礼了梦想. 提交于 2019-12-21 16:52:16
问题 Since I installed the new Windows Azure SDK 2.3 I got a warning from csrun: "DevStore interaction through CSRun has been depricated. Use WAStorageEmulator.exe instead." So there are two questions: 1) How to start the new storage emulator correctly from code? 2) How to determine from code if the storage emulator is already running? 回答1: I found the solution myself. Here is my C# code. The old code used for SDK 2.2 is commented out. public static void StartStorageEmulator() { //var count =

How to clear Azure Storage Emulator Data from command line?

◇◆丶佛笑我妖孽 提交于 2019-12-20 17:52:37
问题 My solution is using Azure Emulator. I would like to clear the Azure Storage Emulator Blobs , Queues and Tables without having to perform manual actions. I need to be able to do it from command line, preferably PowerShell. Server Explorer in Visual Studio 2015, Azure-node: AzureStorageEmulator.exe help returns the following commands: AzureStorageEmulator.exe init: Initialize the emulator database and configuration. AzureStorageEmulator.exe start: Start the emulator. AzureStorageEmulator.exe

Azure CloudBlobContainer.CreateIfNotExists() throws Forbidden (403) on Local Development

你说的曾经没有我的故事 提交于 2019-12-11 05:27:20
问题 I've started getting 403 Error on blobContainer.createIfNotExists. Following is the source code. CloudStorageAccount storageAccount = CloudStorageAccount.Parse(CloudConfigurationManager.GetSetting("StorageConnectionString")); string blobContainerName =string.IsNullOrEmpty(_sessionContext.DomainName) ? "localdevblob": _sessionContext.DomainName.ToLower(); CloudBlobClient blobClient = storageAccount.CreateCloudBlobClient(); CloudBlobContainer container = blobClient.GetContainerReference

How do i add a CORS rule to the Azure Storage Emulator with HTTP?

♀尐吖头ヾ 提交于 2019-12-10 13:20:32
问题 To use the Azure Storage (Emulator) Table Service, i need to add a CORS rule for my TypeScript Browser App. I want to add that rule manually using the REST interface (from Postman, not the Browser with the Same Origin Policy). The documentation does not give the correct URL for the Emulator (https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/set-table-service-properties). For DML commands it is like in my request (https://docs.microsoft.com/en-us/rest/api/storageservices

Getting a StorageException (403: Forbidden) on CloudStorageContainer GetContainerReference method

旧巷老猫 提交于 2019-12-07 02:22:32
问题 I'm running the following code in a unit test against Azure's Storage Emulator and receiving a StorageException when I attempt to create the container: var connectionString = @"DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw=="; var account = CloudStorageAccount.Parse(connectionString); var client = account.CreateCloudBlobClient(); var container = client.GetContainerReference("my