C#中的连接-Azaccount

发布于 2025-02-01 23:33:51 字数 251 浏览 1 评论 0 原文

我有一个问题,这是我最后想找到一个答案的问题,但是我找不到与Google一起找到与之相关的答案(这几乎是无效/初学者) 。

我正在尝试使用C#创建控制台应用程序。在此应用程序上,我生成了一个“密钥”,并且要在Azure键值上添加一个秘密的密钥。 在执行相同的过程之前,我已经完成了PowerShell脚本,但是当我在C#中尝试时,我做不到。

有人知道这是否真的可能吗?如果是,那么最好的方法是什么?

谢谢 :-)

I have a question, and this is the last I would like to come to find an answer but I couldn't find nothing related to it using google, neither my knowledge(which is almost null/beginner).

I'm trying to create a Console Application using C#. On this application, I generated a "key" and this key I want to add in a secret on Azure Key Vault.
I have done PowerShell scripts before to do the same process but when I tried in C#, I couldn't do that.

Does anyone know if that is actually possible? If yes, what is the best way to do that?

Thanks :-)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

何以心动 2025-02-08 23:33:51

在执行要求时,您首先需要对Azure服务进行身份验证。您可以通过Azure CLI,Azure PowerShell来执行此操作,也可以通过导航到 tools>>可以直接使用Azure Active Directory帐户登录。选项>> Azure服务身份验证选项通过Visual Studio,然后您准备执行任务。

您可以关注教程 azure键保管秘密客户库.NET 有关更多信息。

参考:

While performing your requirement you first need to authenticate to Azure services. You can do this either by Azure CLI, Azure powershell or you can just directly sign in with your Azure Active Directory account by navigating to Tools >> Options >> Azure Service Authentication options through Visual Studio and then you are ready to perform the task.

You can follow the tutorial Azure Key Vault secrets client library for .NET for more information.

REFERENCES:
Azure Identity client library for .NET - Azure for .NET Developers

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文