Skip to main content

managed_instance_operations

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

Overview

Namemanaged_instance_operations
TypeResource
Idazure.sql.managed_instance_operations

Fields

The following fields are returned by SELECT queries:

Successfully retrieved the specified managed instance operation.

NameDatatypeDescription
propertiesobjectResource properties.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, managedInstanceName, operationId, subscriptionIdGets a management operation on a managed instance.
cancelexecresourceGroupName, managedInstanceName, operationId, subscriptionIdCancels the asynchronous operation on the managed instance.

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
managedInstanceNamestringThe name of the managed instance.
operationIdstring (uuid)
resourceGroupNamestringThe name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
subscriptionIdstringThe subscription ID that identifies an Azure subscription.

SELECT examples

Gets a management operation on a managed instance.

SELECT
properties
FROM azure.sql.managed_instance_operations
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND managedInstanceName = '{{ managedInstanceName }}' -- required
AND operationId = '{{ operationId }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

Lifecycle Methods

Cancels the asynchronous operation on the managed instance.

EXEC azure.sql.managed_instance_operations.cancel 
@resourceGroupName='{{ resourceGroupName }}' --required,
@managedInstanceName='{{ managedInstanceName }}' --required,
@operationId='{{ operationId }}' --required,
@subscriptionId='{{ subscriptionId }}' --required
;