【问题标题】:What is the difference between Microsoft.Azure.Management.Resourcemanager.Fluent and Microsoft.Azure.Management.Fluent nuget packages?Microsoft.Azure.Management.Resourcemanager.Fluent 和 Microsoft.Azure.Management.Fluent nuget 包有什么区别?
【发布时间】:2019-10-11 05:13:48
【问题描述】:

Azure 资源管理有 2 个 nuget 包:

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

这些 nuget 包究竟有何不同,何时使用哪一个?

【问题讨论】:

    标签: azure nuget-package azure-management-api


    【解决方案1】:

    Microsoft.Azure.Management.Fluent 是一个wrapper package,它依赖于其他专用包,如Microsoft.Azure.Management.Resourcemanager.Fluent / Microsoft.Azure.Management.Storage.Fluent 等。您可以参考下面的截图:

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

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

    所以对于您的问题,您应该始终安装包Microsoft.Azure.Management.Fluent,它会自动安装我在屏幕截图 1 中列出的所有其他专用包。然后在您的代码中,Microsoft.Azure.Management.Fluent 提供一些基本服务,例如身份验证/创建条目点,像Microsoft.Azure.Management.Resourcemanager.Fluent 这样的其他包然后用于对天蓝色资源进行一些管理,例如创建/更新/删除。

    为了更好地理解,您可以浏览示例here

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-04-12
      • 1970-01-01
      • 1970-01-01
      • 2021-06-11
      • 2017-11-13
      • 1970-01-01
      • 2017-12-05
      • 2011-07-05
      相关资源
      最近更新 更多