Share via


MockableContainerInstanceResourceGroupResource.DeleteSubnetServiceAssociationLinkAsync Method

Definition

Delete container group virtual network association links. The operation does not delete other resources provided by the user.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}/providers/Microsoft.ContainerInstance/serviceAssociationLinks/default
  • Operation Id: SubnetServiceAssociationLink_Delete
  • Default Api Version: 2023-05-01
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation> DeleteSubnetServiceAssociationLinkAsync (Azure.WaitUntil waitUntil, string virtualNetworkName, string subnetName, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteSubnetServiceAssociationLinkAsync : Azure.WaitUntil * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation>
override this.DeleteSubnetServiceAssociationLinkAsync : Azure.WaitUntil * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation>
Public Overridable Function DeleteSubnetServiceAssociationLinkAsync (waitUntil As WaitUntil, virtualNetworkName As String, subnetName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation)

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.

virtualNetworkName
String

The name of the virtual network.

subnetName
String

The name of the subnet.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

virtualNetworkName or subnetName is an empty string, and was expected to be non-empty.

virtualNetworkName or subnetName is null.

Applies to