[英]How do you run Azurite with oauth and a self signed certificate?
I'm trying to do some local testing using Azurite, which should enable me to do all the things I want to do against blob containers etc. I want to be able to used a managed identity as well and therefore use DefaultAzureCredential when creating the blob client.我正在尝试使用 Azurite 进行一些本地测试,这应该使我能够对 blob 容器等执行所有我想做的事情。我也希望能够使用托管标识,因此在创建 blob 时使用 DefaultAzureCredential客户。
I found this really useful article that explains all this.我发现这篇非常有用的文章解释了这一切。 However, it assumes you're just kicking off Azurite yourself as you've downloaded it as an npm package. However, if you're using Visual Studio 2022 Azurite is built in and will 'just run' if you've got it setup as a service dependency.
但是,它假设您只是自己开始使用 Azurite,因为您已将其下载为 npm package。但是,如果您使用的是 Visual Studio 2022,则 Azurite 是内置的,如果您已安装它,它将“直接运行”作为服务依赖。 I don't know how I can therefore specify I want azurite to run with oauth and run with the cert specified.
因此,我不知道如何指定我希望 azurite 使用 oauth 运行并使用指定的证书运行。 In other words I can't see how I can replicate this step in the article:
换句话说,我看不出如何在文章中复制此步骤:
azurite --oauth basic --cert 127.0.0.1.pem --key 127.0.0.1-key.pem
azurite --oauth basic --cert 127.0.0.1.pem --key 127.0.0.1-key.pem
'azurite' isn't a commandlet that is known as it's not an npm package. The Azurite 'README' also specifies to do this but doesn't say how. “azurite”不是众所周知的命令行开关,因为它不是 npm package。Azurite “自述文件”也指定要执行此操作,但没有说明如何执行此操作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.