/// <summary> /// Delete an internal load balancer from the deployment. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Compute.ILoadBalancerOperations. /// </param> /// <param name='serviceName'> /// Required. The name of the service. /// </param> /// <param name='deploymentName'> /// Required. The name of the deployment. /// </param> /// <param name='loadBalancerName'> /// Required. The name of the load balancer. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static Task <AzureOperationResponse> DeleteAsync(this ILoadBalancerOperations operations, string serviceName, string deploymentName, string loadBalancerName) { return(operations.DeleteAsync(serviceName, deploymentName, loadBalancerName, CancellationToken.None)); }
/// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Network.ILoadBalancerOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <param name='loadBalancerName'> /// Required. The name of the loadBalancer. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static Task <AzureOperationResponse> DeleteAsync(this ILoadBalancerOperations operations, string resourceGroupName, string loadBalancerName) { return(operations.DeleteAsync(resourceGroupName, loadBalancerName, CancellationToken.None)); }