Skip to main content

deployments_at_tenant_scopes

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

Overview

Namedeployments_at_tenant_scopes
TypeResource
Idazure.resources.deployments_at_tenant_scopes

Fields

The following fields are returned by SELECT queries:

OK - Returns information about the deployment, including provisioning status.

NameDatatypeDescription
idstringThe ID of the deployment.
namestringThe name of the deployment.
locationstringthe location of the deployment.
propertiesobjectDeployment properties.
tagsobjectDeployment tags
typestringThe type of the deployment.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdeploymentNameGets a deployment.
listselect$filter, $topGet all the deployments at the tenant scope.
create_or_updateinsertdeploymentName, data__location, data__propertiesYou can provide the template and parameters directly in the request or link to JSON files.
deletedeletedeploymentNameA template deployment that is currently running cannot be deleted. Deleting a template deployment removes the associated deployment operations. This is an asynchronous operation that returns a status of 202 until the template deployment is successfully deleted. The Location response header contains the URI that is used to obtain the status of the process. While the process is running, a call to the URI in the Location header returns a status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If the asynchronous request failed, the URI in the Location header returns an error-level status code.

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
deploymentNamestringThe name of the deployment.
$filterstringThe filter to apply on the operation. For example, you can use $filter=provisioningState eq '{state}'.
$topinteger (int32)The number of results to get. If null is passed, returns all deployments.

SELECT examples

Gets a deployment.

SELECT
id,
name,
location,
properties,
tags,
type
FROM azure.resources.deployments_at_tenant_scopes
WHERE deploymentName = '{{ deploymentName }}' -- required
;

INSERT examples

You can provide the template and parameters directly in the request or link to JSON files.

INSERT INTO azure.resources.deployments_at_tenant_scopes (
data__location,
data__properties,
data__tags,
deploymentName
)
SELECT
'{{ location }}' /* required */,
'{{ properties }}' /* required */,
'{{ tags }}',
'{{ deploymentName }}'
RETURNING
id,
name,
location,
properties,
tags,
type
;

DELETE examples

A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the associated deployment operations. This is an asynchronous operation that returns a status of 202 until the template deployment is successfully deleted. The Location response header contains the URI that is used to obtain the status of the process. While the process is running, a call to the URI in the Location header returns a status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If the asynchronous request failed, the URI in the Location header returns an error-level status code.

DELETE FROM azure.resources.deployments_at_tenant_scopes
WHERE deploymentName = '{{ deploymentName }}' --required
;