如何在 Azure Fluent 中创建网络配置文件?

How to create a network profile in Azure Fluent?

此处的 REST 客户端 createorupdate shows how to create a network profile, but there doesn't seem to be any corresponding code in Azure Fluent. When creating a Container Instance in Azure CLI, it automatically creates a Network Profile, but the Fluent class for Network Profiles 似乎没有做任何事情。 那么如何在 Fluent 中创建网络配置文件呢?

您在 Network Profiles is a model for container service, not an available interface for the network. What you need is the interface here 中找到的内容:

CreateOrUpdateWithHttpMessagesAsync(String, String, NetworkProfileInner, Dictionary<String,List>, CancellationToken)

这是网络的正确选择。