Share via


NetworkPacketBrokerCollection.CreateOrUpdateAsync Method

Definition

Creates a Network Packet Broker.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkPacketBrokers/{networkPacketBrokerName}
  • Operation Id: NetworkPacketBrokers_Create
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ManagedNetworkFabric.NetworkPacketBrokerResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string networkPacketBrokerName, Azure.ResourceManager.ManagedNetworkFabric.NetworkPacketBrokerData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.ManagedNetworkFabric.NetworkPacketBrokerData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ManagedNetworkFabric.NetworkPacketBrokerResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.ManagedNetworkFabric.NetworkPacketBrokerData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ManagedNetworkFabric.NetworkPacketBrokerResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, networkPacketBrokerName As String, data As NetworkPacketBrokerData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of NetworkPacketBrokerResource))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

networkPacketBrokerName
String

Name of the Network Packet Broker.

data
NetworkPacketBrokerData

Request payload.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

networkPacketBrokerName is an empty string, and was expected to be non-empty.

networkPacketBrokerName or data is null.

Applies to