NetworkSecurityGroupsOperations.StartCreateOrUpdateAsync(String, String, NetworkSecurityGroup, CancellationToken) Method

Definition

Creates or updates a network security group in the specified resource group.

public virtual System.Threading.Tasks.Task<Azure.ResourceManager.Network.NetworkSecurityGroupsCreateOrUpdateOperation> StartCreateOrUpdateAsync (string resourceGroupName, string networkSecurityGroupName, Azure.ResourceManager.Network.Models.NetworkSecurityGroup parameters, System.Threading.CancellationToken cancellationToken = default);
abstract member StartCreateOrUpdateAsync : string * string * Azure.ResourceManager.Network.Models.NetworkSecurityGroup * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.Network.NetworkSecurityGroupsCreateOrUpdateOperation>
override this.StartCreateOrUpdateAsync : string * string * Azure.ResourceManager.Network.Models.NetworkSecurityGroup * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.Network.NetworkSecurityGroupsCreateOrUpdateOperation>
Public Overridable Function StartCreateOrUpdateAsync (resourceGroupName As String, networkSecurityGroupName As String, parameters As NetworkSecurityGroup, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NetworkSecurityGroupsCreateOrUpdateOperation)

Parameters

resourceGroupName
System.String

The name of the resource group.

networkSecurityGroupName
System.String

The name of the network security group.

parameters
NetworkSecurityGroup

Parameters supplied to the create or update network security group operation.

cancellationToken
System.Threading.CancellationToken

The cancellation token to use.

Returns

System.Threading.Tasks.Task<NetworkSecurityGroupsCreateOrUpdateOperation>

Exceptions

System.ArgumentNullException

resourceGroupName, networkSecurityGroupName, or parameters is null.

Applies to