Share via


IDeploymentStacksOperations.BeginDeleteAtManagementGroupWithHttpMessagesAsync Method

Definition

Overloads

BeginDeleteAtManagementGroupWithHttpMessagesAsync(String, String, String, String, String, Dictionary<String,List<String>>, CancellationToken)

Deletes a Deployment Stack by name. When operation completes, status code 200 returned without content.

BeginDeleteAtManagementGroupWithHttpMessagesAsync(String, String, String, String, String, Nullable<Boolean>, Dictionary<String, List<String>>, CancellationToken)

Deletes a Deployment stack by name at Management Group scope. When operation completes, status code 200 returned without content.

BeginDeleteAtManagementGroupWithHttpMessagesAsync(String, String, String, String, String, Dictionary<String,List<String>>, CancellationToken)

Deletes a Deployment Stack by name. When operation completes, status code 200 returned without content.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationHeaderResponse<Microsoft.Azure.Management.Resources.Models.DeploymentStacksDeleteAtManagementGroupHeaders>> BeginDeleteAtManagementGroupWithHttpMessagesAsync (string managementGroupId, string deploymentStackName, string unmanageActionResources = default, string unmanageActionResourceGroups = default, string unmanageActionManagementGroups = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member BeginDeleteAtManagementGroupWithHttpMessagesAsync : string * string * string * string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationHeaderResponse<Microsoft.Azure.Management.Resources.Models.DeploymentStacksDeleteAtManagementGroupHeaders>>
Public Function BeginDeleteAtManagementGroupWithHttpMessagesAsync (managementGroupId As String, deploymentStackName As String, Optional unmanageActionResources As String = Nothing, Optional unmanageActionResourceGroups As String = Nothing, Optional unmanageActionManagementGroups As String = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationHeaderResponse(Of DeploymentStacksDeleteAtManagementGroupHeaders))

Parameters

managementGroupId
String

Management Group.

deploymentStackName
String

Name of the deployment stack.

unmanageActionResources
String

Flag to indicate delete rather than detach for the resources.

unmanageActionResourceGroups
String

Flag to indicate delete rather than detach for the resource groups.

unmanageActionManagementGroups
String

Flag to indicate delete rather than detach for the management groups.

customHeaders
Dictionary<String,List<String>>

The headers that will be added to request.

cancellationToken
CancellationToken

The cancellation token.

Returns

Exceptions

Thrown when the operation returned an invalid status code

Thrown when a required parameter is null

Thrown when the operation returned an invalid status code

Remarks

Deletes a Deployment Stack by name. When operation completes, status code 200 returned without content.

Applies to

BeginDeleteAtManagementGroupWithHttpMessagesAsync(String, String, String, String, String, Nullable<Boolean>, Dictionary<String, List<String>>, CancellationToken)

Deletes a Deployment stack by name at Management Group scope. When operation completes, status code 200 returned without content.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationHeaderResponse<Microsoft.Azure.Management.Resources.Models.DeploymentStacksDeleteAtManagementGroupHeaders>> BeginDeleteAtManagementGroupWithHttpMessagesAsync (string managementGroupId, string deploymentStackName, string unmanageActionResources = default, string unmanageActionResourceGroups = default, string unmanageActionManagementGroups = default, bool? bypassStackOutOfSyncError = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member BeginDeleteAtManagementGroupWithHttpMessagesAsync : string * string * string * string * string * Nullable<bool> * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationHeaderResponse<Microsoft.Azure.Management.Resources.Models.DeploymentStacksDeleteAtManagementGroupHeaders>>
Public Function BeginDeleteAtManagementGroupWithHttpMessagesAsync (managementGroupId As String, deploymentStackName As String, Optional unmanageActionResources As String = Nothing, Optional unmanageActionResourceGroups As String = Nothing, Optional unmanageActionManagementGroups As String = Nothing, Optional bypassStackOutOfSyncError As Nullable(Of Boolean) = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationHeaderResponse(Of DeploymentStacksDeleteAtManagementGroupHeaders))

Parameters

managementGroupId
String

Management Group id.

deploymentStackName
String

Name of the deployment stack.

unmanageActionResources
String

Flag to indicate delete rather than detach for unmanaged resources.

unmanageActionResourceGroups
String

Flag to indicate delete rather than detach for unmanaged resource groups.

unmanageActionManagementGroups
String

Flag to indicate delete rather than detach for unmanaged management groups.

bypassStackOutOfSyncError
Nullable<Boolean>

Flag to bypass service errors that indicate the stack resource list is not correctly synchronized.

customHeaders
Dictionary<String,List<String>>

The headers that will be added to request.

cancellationToken
CancellationToken

The cancellation token.

Returns

Exceptions

Thrown when the operation returned an invalid status code

Remarks

Deletes a Deployment stack by name at Management Group scope. When operation completes, status code 200 returned without content.

Applies to