Search code examples
azurenuget-packageazure-management-api

What is the difference between Microsoft.Azure.Management.Resourcemanager.Fluent and Microsoft.Azure.Management.Fluent nuget packages?


There are 2 nuget packages for Azure resource management:

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

How exactly are these nuget packages differ and when to use which one?


Solution

  • Microsoft.Azure.Management.Fluent is a wrapper package, it depends on other dedicated packages like Microsoft.Azure.Management.Resourcemanager.Fluent / Microsoft.Azure.Management.Storage.Fluent etc. You can refer to this screenshot below:

    enter image description here

    The Microsoft.Azure.Management.Fluent package provides basic functions like authentication / specify subscription etc. And it also provides a lot of properties like ResourceGroups / StorageAccounts, you can use these properties to create entry point to ResourceGroups / StorageAccounts management. Here is a screenshot as below:

    enter image description here

    The package Microsoft.Azure.Management.Resourcemanager.Fluent is used to manage azure resources like create / update / delete a resource group / storage account etc. It needs the package Microsoft.Azure.Management.Fluent for authentication / get a entry point.

    So for your question, you should always install the package Microsoft.Azure.Management.Fluent, which would automatically install all the other dedicated packages I listed in screenshot 1. Then in your code, Microsoft.Azure.Management.Fluent provides some basic services like authentication / create entry point, the other packages like Microsoft.Azure.Management.Resourcemanager.Fluent is then used to do some management thing a for azure resource like create / update / delete.

    For better understanding, you can go through the samples here.