Skip to main content

jobs

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

Overview

Namejobs
TypeResource
Idazure.container_apps.jobs

Fields

NameDatatypeDescription
extendedLocationobjectThe complex type of the extended location.
identityobjectManaged service identity (system assigned and/or user assigned identities)
locationstringThe geo-location where the resource lives
propertiesobjectContainer Apps Job resource specific properties.
tagsobjectResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTjobName, resourceGroupName, subscriptionId
list_by_resource_groupSELECTresourceGroupName, subscriptionId
list_by_subscriptionSELECTsubscriptionId
create_or_updateINSERTjobName, resourceGroupName, subscriptionIdCreate or Update a Container Apps Job.
deleteDELETEjobName, resourceGroupName, subscriptionIdDelete a Container Apps Job.
updateUPDATEjobName, resourceGroupName, subscriptionIdPatches a Container Apps Job using JSON Merge Patch
proxy_getEXECapiName, jobName, resourceGroupName, subscriptionIdGet the properties of a Container App Job.
startEXECjobName, resourceGroupName, subscriptionId
stop_executionEXECjobExecutionName, jobName, resourceGroupName, subscriptionId
stop_multiple_executionsEXECjobName, resourceGroupName, subscriptionId

SELECT examples

SELECT
extendedLocation,
identity,
location,
properties,
tags
FROM azure.container_apps.jobs
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new jobs resource.

/*+ create */
INSERT INTO azure.container_apps.jobs (
jobName,
resourceGroupName,
subscriptionId,
tags,
location,
extendedLocation,
identity,
properties
)
SELECT
'{{ jobName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ tags }}',
'{{ location }}',
'{{ extendedLocation }}',
'{{ identity }}',
'{{ properties }}'
;

UPDATE example

Updates a jobs resource.

/*+ update */
UPDATE azure.container_apps.jobs
SET
extendedLocation = '{{ extendedLocation }}',
identity = '{{ identity }}',
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
jobName = '{{ jobName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified jobs resource.

/*+ delete */
DELETE FROM azure.container_apps.jobs
WHERE jobName = '{{ jobName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';