SqlVmResource.TroubleshootAsync Method

Definition

Starts SQL virtual machine troubleshooting.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/troubleshoot.
  • Operation Id. : SqlVirtualMachines_Troubleshoot.
  • Default Api Version. : 2023-10-01.
  • Resource. : SqlVmResource.
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SqlVirtualMachine.Models.SqlVmTroubleshooting>> TroubleshootAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.SqlVirtualMachine.Models.SqlVmTroubleshooting sqlVmTroubleshooting, System.Threading.CancellationToken cancellationToken = default);
abstract member TroubleshootAsync : Azure.WaitUntil * Azure.ResourceManager.SqlVirtualMachine.Models.SqlVmTroubleshooting * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SqlVirtualMachine.Models.SqlVmTroubleshooting>>
override this.TroubleshootAsync : Azure.WaitUntil * Azure.ResourceManager.SqlVirtualMachine.Models.SqlVmTroubleshooting * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SqlVirtualMachine.Models.SqlVmTroubleshooting>>
Public Overridable Function TroubleshootAsync (waitUntil As WaitUntil, sqlVmTroubleshooting As SqlVmTroubleshooting, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of SqlVmTroubleshooting))

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.

sqlVmTroubleshooting
SqlVmTroubleshooting

The SQL virtual machine troubleshooting entity.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

sqlVmTroubleshooting is null.

Applies to