azure - Microsoft.Azure.Management.Resourcemanager.Fluent 和 Microsoft.Azure.Management.Fluent nuget 包之间有什么区别?

标签 azure nuget-package azure-management-api

有 2 个用于 Azure 资源管理的 nuget 包:

  1. Microsoft.Azure.Management.Resourcemanager.Fluent
  2. Microsoft.Azure.Management.Fluent

这些 nuget 包到底有何不同以及何时使用哪个?

最佳答案

Microsoft.Azure.Management.Fluentwrapper package ,它依赖于其他专用包,例如 Microsoft.Azure.Management.Resourcemanager.Fluent/Microsoft.Azure.Management.Storage.Fluent 等。您可以引用下面的截图:

enter image description here

Microsoft.Azure.Management.Fluent包提供了身份验证/指定订阅等基本功能,并且还提供了很多属性,例如ResourceGroups/StorageAccounts,您可以使用这些属性来创建的入口点>ResourceGroups/StorageAccounts 管理。截图如下:

enter image description here

Microsoft.Azure.Management.Resourcemanager.Fluent用于管理Azure资源,例如创建/更新/删除资源组/存储帐户等。它需要包Microsoft。 Azure.Management.Fluent 用于身份验证/获取入口点。

因此,对于您的问题,您应该始终安装包 Microsoft.Azure.Management.Fluent ,这将自动安装我在屏幕截图 1 中列出的所有其他专用软件包。然后在您的代码中 Microsoft.Azure.Management.Fluent提供一些基本服务,例如身份验证/创建入口点,然后使用 Microsoft.Azure.Management.Resourcemanager.Fluent 等其他包为 Azure 资源执行一些管理操作,例如创建/更新/删除。

为了更好地理解,您可以查看示例 here .

关于azure - Microsoft.Azure.Management.Resourcemanager.Fluent 和 Microsoft.Azure.Management.Fluent nuget 包之间有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58334616/

相关文章:

python - 无法使用 pyodbc 连接到 Azure SQL Server

azure - 是否可以使用 powershell 或任何编程语言获取日志分析工作区的摄取量?

entity-framework - 在 Entity Framework 项目中添加对项目的引用

c# - Azure IoT 中心 - 可移植库中的设备注册

rest - 使用 Azure 工作流管理 API 启用/禁用工作流

json - Azure 资源管理器模板语言-resourceId() : Unable to evaluate template language function 'resource Id'

azure - 如何正确设置 Azure Blob 的 ContentType?

azure - webadmin从github部署到azure

azure - 无法将 FTP 连接到 Azure 虚拟机

.net - 使用 nuget 包将配置添加到 appsettings.json