Skip to main content

sql_virtual_machine_troubleshoot

Creates, updates, deletes, gets or lists a sql_virtual_machine_troubleshoot resource.

Overview

Namesql_virtual_machine_troubleshoot
TypeResource
Idazure.sql_virtual_machine.sql_virtual_machine_troubleshoot

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
troubleshootexecresource_group_name, sql_virtual_machine_name, subscription_idStarts SQL virtual machine troubleshooting.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
resource_group_namestringName of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required.
sql_virtual_machine_namestringName of the SQL virtual machine. Required.
subscription_idstring

Lifecycle Methods

Starts SQL virtual machine troubleshooting.

EXEC azure.sql_virtual_machine.sql_virtual_machine_troubleshoot.troubleshoot 
@resource_group_name='{{ resource_group_name }}' --required,
@sql_virtual_machine_name='{{ sql_virtual_machine_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"startTimeUtc": "{{ startTimeUtc }}",
"endTimeUtc": "{{ endTimeUtc }}",
"troubleshootingScenario": "{{ troubleshootingScenario }}",
"properties": "{{ properties }}"
}'
;