Skip to main content

managed_database_move_operations

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

Overview

Namemanaged_database_move_operations
TypeResource
Idazure.sql.managed_database_move_operations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
errorCodeintegerThe operation error code.
errorDescriptionstringThe operation error description.
errorSeverityintegerThe operation error severity.
isCancellablebooleanIs move operation cancellable.
isUserErrorbooleanWhether or not the error is a user error.
operationstringThe name of operation.
operationFriendlyNamestringThe friendly name of operation.
operationModestringOperation mode. Known values are: "Move" and "Copy". (Move, Copy)
sourceDatabaseNamestringSource database name.
sourceManagedInstanceIdstringSource Managed Instance resource id.
sourceManagedInstanceNamestringSource Managed Instance name.
startTimestring (date-time)The operation start time.
statestringThe operation state. Known values are: "Pending", "InProgress", "Succeeded", "Failed", "CancelInProgress", and "Cancelled". (Pending, InProgress, Succeeded, Failed, CancelInProgress, Cancelled)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
targetDatabaseNamestringTarget database name.
targetManagedInstanceIdstringTarget Managed instance resource id.
targetManagedInstanceNamestringTarget Managed Instance name.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, location_name, operation_id, subscription_idGets a managed database move operation.
list_by_locationselectresource_group_name, location_name, subscription_idonlyLatestPerDatabase, $filterLists managed database move operations.

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
location_namestringThe name of the region where the resource is located. Required.
operation_idstringThe ID of the managed database move operation. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
$filterstringAn OData filter expression that filters elements in the collection. Default value is None.
onlyLatestPerDatabasebooleanWhether or not to only get the latest operation for each database. Has higher priority than $filter. Default value is None.

SELECT examples

Gets a managed database move operation.

SELECT
id,
name,
errorCode,
errorDescription,
errorSeverity,
isCancellable,
isUserError,
operation,
operationFriendlyName,
operationMode,
sourceDatabaseName,
sourceManagedInstanceId,
sourceManagedInstanceName,
startTime,
state,
systemData,
targetDatabaseName,
targetManagedInstanceId,
targetManagedInstanceName,
type
FROM azure.sql.managed_database_move_operations
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND location_name = '{{ location_name }}' -- required
AND operation_id = '{{ operation_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;