[英]Unable to discover Azure resources using ResourceManagementClient class from Microsoft.Azure.Management.ResourceManager.Fluent namespace
[英]What is the difference between Microsoft.Azure.Management.Resourcemanager.Fluent and Microsoft.Azure.Management.Fluent nuget packages?
Azure资源管理有2个nuget包:
这些 nuget 封装究竟有何不同,何时使用哪一个?
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:
Microsoft.Azure.Management.Fluent package提供了认证/指定订阅等基本功能,还提供了很多ResourceGroups
/ StorageAccounts
等属性,你可以使用这些属性来创建ResourceGroups
/ StorageAccounts
管理的入口。 这是一个截图,如下所示:
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像身份验证/创建入口点,像Microsoft.Azure.Management.Resourcemanager.Fluent
这样的其他包然后用于对 azure 资源进行一些管理,例如创建/更新/删除。
为了更好地理解,您可以通过此处的示例 go 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.