Skip to main content

deployment_operations

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

Overview

Namedeployment_operations
TypeResource
Idazure.resource.deployment_operations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFull deployment operation ID.
durationstringThe duration of the operation.
operationIdstringDeployment operation ID.
provisioningOperationstringThe name of the current provisioning operation. Known values are: "NotSpecified", "Create", "Delete", "Waiting", "AzureAsyncOperationWaiting", "ResourceCacheWaiting", "Action", "Read", "EvaluateDeploymentOutput", and "DeploymentCleanup". (NotSpecified, Create, Delete, Waiting, AzureAsyncOperationWaiting, ResourceCacheWaiting, Action, Read, EvaluateDeploymentOutput, DeploymentCleanup)
provisioningStatestringThe state of the provisioning.
requestobjectThe HTTP request message.
responseobjectThe HTTP response message.
serviceRequestIdstringDeployment operation service request id.
statusCodestringOperation status code from the resource provider. This property may not be set if a response has not yet been received.
statusMessageobjectOperation status message from the resource provider. This property is optional. It will only be provided if an error was received from the resource provider.
targetResourceobjectThe target resource.
timestampstring (date-time)The date and time of the operation.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, deployment_name, operation_id, subscription_idGets a deployments operation.
listselectresource_group_name, deployment_name, subscription_id$topGets all deployments operations for a deployment.
get_at_scopeselectscope, deployment_name, operation_idGets a deployments operation.
get_at_management_group_scopeselectgroup_id, deployment_name, operation_idGets a deployments operation.
get_at_subscription_scopeselectdeployment_name, operation_id, subscription_idGets a deployments operation.
list_at_scopeselectscope, deployment_name$topGets all deployments operations for a deployment.
list_at_management_group_scopeselectgroup_id, deployment_name$topGets all deployments operations for a deployment.
list_at_subscription_scopeselectdeployment_name, subscription_id$topGets all deployments operations for a deployment.
get_at_tenant_scopeselectdeployment_name, operation_idGets a deployments operation.
list_at_tenant_scopeselectdeployment_name$topGets all deployments operations for a deployment.

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
deployment_namestringThe name of the deployment. Required.
group_idstringThe management group ID. Required.
operation_idstringThe ID of the operation to get. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
scopestringThe fully qualified Azure Resource manager identifier of the resource. Required.
subscription_idstring
$topintegerThe number of results to return. Default value is None.

SELECT examples

Gets a deployments operation.

SELECT
id,
duration,
operationId,
provisioningOperation,
provisioningState,
request,
response,
serviceRequestId,
statusCode,
statusMessage,
targetResource,
timestamp
FROM azure.resource.deployment_operations
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND deployment_name = '{{ deployment_name }}' -- required
AND operation_id = '{{ operation_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;