Condividi tramite


FlowLogsOperationsExtensions.CreateOrUpdateAsync Method

Definition

Create or update a flow log for the specified network security group.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Network.Models.FlowLog> CreateOrUpdateAsync (this Microsoft.Azure.Management.Network.IFlowLogsOperations operations, string resourceGroupName, string networkWatcherName, string flowLogName, Microsoft.Azure.Management.Network.Models.FlowLog parameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.Network.IFlowLogsOperations * string * string * string * Microsoft.Azure.Management.Network.Models.FlowLog * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Network.Models.FlowLog>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IFlowLogsOperations, resourceGroupName As String, networkWatcherName As String, flowLogName As String, parameters As FlowLog, Optional cancellationToken As CancellationToken = Nothing) As Task(Of FlowLog)

Parameters

operations
IFlowLogsOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group.

networkWatcherName
String

The name of the network watcher.

flowLogName
String

The name of the flow log.

parameters
FlowLog

Parameters that define the create or update flow log resource.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to