Skip to main content

update_runs

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

Overview

Nameupdate_runs
TypeResource
Idazure.fleet.update_runs

Fields

The following fields are returned by SELECT queries:

Azure operation completed successfully.

NameDatatypeDescription
eTagstringIf eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
propertiesobjectThe resource-specific properties for this resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, fleetName, updateRunNameGet a UpdateRun
list_by_fleetselectsubscriptionId, resourceGroupName, fleetNameList UpdateRun resources by Fleet
create_or_updateinsertsubscriptionId, resourceGroupName, fleetName, updateRunNameIf-Match, If-None-MatchCreate a UpdateRun
deletedeletesubscriptionId, resourceGroupName, fleetName, updateRunNameIf-MatchDelete a UpdateRun
skipexecsubscriptionId, resourceGroupName, fleetName, updateRunName, targetsIf-MatchSkips one or a combination of member/group/stage/afterStageWait(s) of an update run.
startexecsubscriptionId, resourceGroupName, fleetName, updateRunNameIf-MatchStarts an UpdateRun.
stopexecsubscriptionId, resourceGroupName, fleetName, updateRunNameIf-MatchStops an UpdateRun.

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
fleetNamestringThe name of the Fleet resource.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.
updateRunNamestringThe name of the UpdateRun resource.
If-MatchstringThe request should only proceed if an entity matches this string.
If-None-MatchstringThe request should only proceed if no entity matches this string.

SELECT examples

Get a UpdateRun

SELECT
eTag,
properties
FROM azure.fleet.update_runs
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND fleetName = '{{ fleetName }}' -- required
AND updateRunName = '{{ updateRunName }}' -- required
;

INSERT examples

Create a UpdateRun

INSERT INTO azure.fleet.update_runs (
data__properties,
subscriptionId,
resourceGroupName,
fleetName,
updateRunName,
If-Match,
If-None-Match
)
SELECT
'{{ properties }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ fleetName }}',
'{{ updateRunName }}',
'{{ If-Match }}',
'{{ If-None-Match }}'
RETURNING
eTag,
properties
;

DELETE examples

Delete a UpdateRun

DELETE FROM azure.fleet.update_runs
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND fleetName = '{{ fleetName }}' --required
AND updateRunName = '{{ updateRunName }}' --required
AND If-Match = '{{ If-Match }}'
;

Lifecycle Methods

Skips one or a combination of member/group/stage/afterStageWait(s) of an update run.

EXEC azure.fleet.update_runs.skip 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@fleetName='{{ fleetName }}' --required,
@updateRunName='{{ updateRunName }}' --required,
@If-Match='{{ If-Match }}'
@@json=
'{
"targets": "{{ targets }}"
}'
;