Dela via


ContainerInstanceExtensions.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: 2024-05-01-preview
public static System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation> DeleteSubnetServiceAssociationLinkAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.WaitUntil waitUntil, string virtualNetworkName, string subnetName, System.Threading.CancellationToken cancellationToken = default);
static member DeleteSubnetServiceAssociationLinkAsync : Azure.ResourceManager.Resources.ResourceGroupResource * Azure.WaitUntil * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation>
<Extension()>
Public Function DeleteSubnetServiceAssociationLinkAsync (resourceGroupResource As ResourceGroupResource, waitUntil As WaitUntil, virtualNetworkName As String, subnetName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation)

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

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.

resourceGroupResource, virtualNetworkName or subnetName is null.

Applies to