ContainerServicesOperations.StartDeleteAsync(String, String, CancellationToken) Method

Definition

Deletes the specified container service in the specified subscription and resource group. The operation does not delete other resources created as part of creating a container service, including storage accounts, VMs, and availability sets. All the other resources created with the container service are part of the same resource group and can be deleted individually.

public virtual System.Threading.Tasks.Task<Azure.ResourceManager.Compute.ContainerServicesDeleteOperation> StartDeleteAsync (string resourceGroupName, string containerServiceName, System.Threading.CancellationToken cancellationToken = default);
abstract member StartDeleteAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.Compute.ContainerServicesDeleteOperation>
override this.StartDeleteAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.Compute.ContainerServicesDeleteOperation>
Public Overridable Function StartDeleteAsync (resourceGroupName As String, containerServiceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ContainerServicesDeleteOperation)

Parameters

resourceGroupName
System.String

The name of the resource group.

containerServiceName
System.String

The name of the container service in the specified subscription and resource group.

cancellationToken
System.Threading.CancellationToken

The cancellation token to use.

Returns

System.Threading.Tasks.Task<ContainerServicesDeleteOperation>

Exceptions

System.ArgumentNullException

resourceGroupName or containerServiceName is null.

Applies to