标签: azure-storage-emulator

神秘的Azure开发存储资产正在消失

我们正在构建一个由Azure存储支持的站点.一个辅助角色有一些文件,它在启动时从blob下载.这些文件一旦存储就永远不会被修改,我们只需将它们拉下来并使用它们.

有时,当尝试从开发存储中下载这些文件时,Storage Emulator服务会返回500个错误.我们可以列出blob中的文件并获取元数据,但不能下载文件本身.我们发现的唯一解决方案是删除blob和重新上载.

有没有其他人遇到这个?

更新:1.7 SDK

blob azure azure-storage azure-storage-emulator

6
推荐指数
2
解决办法
1917
查看次数

Azure存储模拟器403禁止使用

通过Nuget,我升级WindowsAzure.Storage到了8.1.1.

然后我下载了AzureStorageEmulator 5.1.0.0客户端.

我的连接字符串:

UseDevelopmentStorage=true;
Run Code Online (Sandbox Code Playgroud)

我之前没有进行任何代码更改,因为它显然工作正常.我知道得到例外:

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()
   at Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteSync[T](RESTCommand`1 cmd, IRetryPolicy policy, OperationContext operationContext) in c:\Program Files (x86)\Jenkins\workspace\release_dotnet_master\Lib\ClassLibraryCommon\Core\Executor\Executor.cs:line 677
   --- End of inner exception stack trace ---
   at Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteSync[T](RESTCommand`1 cmd, IRetryPolicy policy, OperationContext operationContext) in c:\Program Files (x86)\Jenkins\workspace\release_dotnet_master\Lib\ClassLibraryCommon\Core\Executor\Executor.cs:line 604
   at Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer.CreateIfNotExists(BlobContainerPublicAccessType accessType, BlobRequestOptions requestOptions, OperationContext operationContext) in c:\Program Files (x86)\Jenkins\workspace\release_dotnet_master\Lib\ClassLibraryCommon\Blob\CloudBlobContainer.cs:line 233
   at C3.Code.Controls.Application.Storage.Blob.Blob.GetContainer(String containerName) …
Run Code Online (Sandbox Code Playgroud)

azure http-status-code-403 azure-storage-emulator

6
推荐指数
2
解决办法
2410
查看次数

Azure 存储模拟器无法启动

我正在尝试使用 Visual Studio 在本地运行 Azure Function 并执行定时触发器,并且我已在 local.settings.json 中进行了设置

"AzureWebJobsStorage": "UseDevelopmentStorage=true",
Run Code Online (Sandbox Code Playgroud)

但当我运行它时,出现错误“无效的存储帐户‘devstoreaccount1’。

我尝试启动模拟器(管理员,关闭防火墙),但出现此错误。默认安装,无需修改。

C:\Windows\system32>cd C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator

C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator>AzureStorageEmulator.exe init
Windows Azure Storage Emulator 5.2.0.0 command line tool
Found SQL Instance (localdb)\MSSQLLocalDB.
Creating database AzureStorageEmulatorDb52 on SQL instance '(localdb)\MSSQLLocalDB'.

Granting database access to user Robin-PC\Robin.
Database access for user Robin-PC\Robin was granted.

Initialization successful. The storage emulator is now ready for use.
The storage emulator was successfully initialized and is ready to use.

C:\Program Files …
Run Code Online (Sandbox Code Playgroud)

azure-storage-emulator

6
推荐指数
1
解决办法
5085
查看次数

windows azure存储模拟器进程无法访问该文件

当我们开始手动或通过Visual Studio启动Azure存储模拟器时,这是我们工作组中的常见错误.而且,问题并不一致.

azure-storage-emulator

5
推荐指数
1
解决办法
1033
查看次数

Azure 存储模拟器无法连接到 LocalDB

我的 Azure 存储模拟器有问题,它拒绝连接到 LocalDb。在我使用命名管道创建 ODBC 连接之前,它曾经工作得很好。发生了什么:

  • 我需要从 Mathematica 访问数据库中的数据,因此我生成了一个 ODBC 连接。
  • ODBC 无法连接到 (localdb)\v11.0,因此我改用命名管道。

从那时起,Azure 就停止工作了。我升级到了SDK2.0,但是没有帮助。我尝试运行 DSInit.exe,但我得到:

Found SQL Instance (localdb)\v11.0.
Creating database DevelopmentStorageDb20 on SQL instance '(localdb)\v11.0'.
Cannot create database 'DevelopmentStorageDb20' : A network-related or instance-specific
error occurred while establishing a connection to SQL Server. The server was not found or
was not accessible. Verify that the instance name is correct and that SQL Server is
configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error …
Run Code Online (Sandbox Code Playgroud)

azure localdb azure-storage-emulator

5
推荐指数
0
解决办法
836
查看次数

尝试在存储模拟器上测试上载时收到CORS错误

我正在尝试使用azure存储模拟器测试html5,angularjs应用程序的上传功能.出于某种原因,每次我将文件发送到localhost的azure生成的url时,我都会收到CORS错误.现在在云实例上,我使用以下代码添加CORS支持,它可以工作:

blobServiceProperties.Cors.CorsRules.Add(new CorsRule()
{
    AllowedHeaders = new List<string>() { "*" },
    //ExposedHeaders = new List<string>() {"*"},
    AllowedMethods = CorsHttpMethods.Post | CorsHttpMethods.Put | CorsHttpMethods.Get | CorsHttpMethods.Delete,
    AllowedOrigins = new List<string>() { "http://example.com" },
    MaxAgeInSeconds = 3600
});
Run Code Online (Sandbox Code Playgroud)

当我尝试为模拟器运行此操作时,我收到错误,指示不允许这样做.我是否还必须为模拟器设置CORS,如果是这样,我将如何执行此操作,因为上述代码无法从模拟器中运行?

azure azure-storage-emulator ng-file-upload

5
推荐指数
1
解决办法
208
查看次数

更改 Azure 存储模拟器的运行 IP

我正在使用“新的”Azure 存储模拟器命令行版本。在以前的版本中,可以在运行.

我再也找不到同一个文件,并查看了其他配置文件,但到目前为止还没有运气。有谁知道怎么改?

azure azure-storage azure-storage-emulator

5
推荐指数
1
解决办法
3215
查看次数

本地 Azure 存储帐户 - 在哪里可以找到连接字符串

我正在 Visual Studio (C#) 中使用一个 Azure Web 作业项目,该项目是由添加到存储帐户队列的消息触发的。

目前我找不到确定本地队列的连接字符串的方法。

在此输入图像描述

当我选择本地存储帐户时,我看不到任何属性

但是,当我选择 Azure 托管存储帐户时,我会获得更多属性,包括连接字符串:

在此输入图像描述

为了使工作正常进行,我需要提供这些应用程序配置值: 在此输入图像描述

Azure 存储帐户模拟器正在我的计算机上运行。

azure visual-studio azure-storage-emulator

5
推荐指数
1
解决办法
4969
查看次数

无法连接到本地 Azure 存储帐户

我已经在本地机器上初始化了一个 azure 存储模拟器,但我无法从 Visual Studio 或 Azure 存储资源管理器连接到它。我错过了什么?

当我尝试连接到本地 azure 存储帐户模拟器时出错:

Unable to retrieve child resources.
A network error occurred (NetworkTimeoutError: connect ECONNREFUSED 127.0.0.1:10002)
Run Code Online (Sandbox Code Playgroud)

如果我尝试探索存储=> 开发,则 Visual Studio 服务器资源管理器中会出错:

  Cannot create database 'AzureStorageEmulatorDb59' : The database 'AzureStorageEmulatorDb59' does not exist. Supply a valid database name. To see available databases, use sys.databases..
    Learn more about known storage blob issues and solutions at https://go.microsoft.com/fwlink/?LinkId=532762.
Run Code Online (Sandbox Code Playgroud)

在我的机器上初始化 Azure 存储模拟器的命令。

C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator>AzureStorageEmulator.exe init -server . -sqlinstance SQLEXPRESS -forcecreate
Windows Azure Storage Emulator …
Run Code Online (Sandbox Code Playgroud)

azure azure-storage azure-table-storage azure-storage-emulator

5
推荐指数
1
解决办法
4701
查看次数

在本地运行 Azure 函数应用程序时,Azure 函数的侦听器无法启动错误。怎么解决这个问题呢?

我有一个 Azure 函数应用程序。我试图在本地运行它,但出现以下错误。我已经启动并运行了存储模拟器。 存储模拟器状态

存储模拟器状态

我不知道为什么它抱怨 10000 端口,因为我的存储模拟器分别在 12000、12001、12002 上运行 blob、队列、表。

本地主机文件如下所示,

{
  "IsEncrypted": false,
  "Values": {
    "AzureWebJobsStorage": "UseDevelopmentStorage=true",
    "FUNCTIONS_WORKER_RUNTIME": "dotnet"
}
}
Run Code Online (Sandbox Code Playgroud)

运行时出现以下错误。您能否指导我如何解决在本地运行函数应用程序的问题?

函数“ABCFunction”的侦听器无法启动。Azure.Core:尝试 6 次后重试失败。可以在 ClientOptions.Retry 中调整重试设置。(无法建立连接,因为目标机器主动拒绝。(127.0.0.1:10000)) (无法建立连接,因为目标机器主动拒绝。(127.0.0.1:10000)) (无法建立连接因为目标机主动拒绝。(127.0.0.1:10000)) (无法建立连接,因为目标机主动拒绝。(127.0.0.1:10000)) (无法建立连接,因为目标机主动拒绝(127.0.0.1:10000)) (无法建立连接,因为目标机器主动拒绝。(127.0.0.1:10000))。Azure.Core:无法建立连接,因为目标计算机主动拒绝连接。(127.0.0.1:10000)。System.Net.Http:无法建立连接,因为目标机器主动拒绝。

azure azure-storage azure-storage-emulator azure-functions

5
推荐指数
1
解决办法
5900
查看次数