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

NameDatatypeDescription
e_tagtextfield from the properties object
fleetNametextfield from the properties object
managed_cluster_updatetextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
statustextfield from the properties object
strategytextfield from the properties object
subscriptionIdtextfield from the properties object
updateRunNametextfield from the properties object
update_strategy_idtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTfleetName, resourceGroupName, subscriptionId, updateRunNameGet a UpdateRun
list_by_fleetSELECTfleetName, resourceGroupName, subscriptionIdList UpdateRun resources by Fleet
create_or_updateINSERTfleetName, resourceGroupName, subscriptionId, updateRunNameCreate a UpdateRun
deleteDELETEfleetName, resourceGroupName, subscriptionId, updateRunNameDelete a UpdateRun
skipEXECfleetName, resourceGroupName, subscriptionId, updateRunName, data__targetsSkips one or a combination of member/group/stage/afterStageWait(s) of an update run.
startEXECfleetName, resourceGroupName, subscriptionId, updateRunNameStarts an UpdateRun.
stopEXECfleetName, resourceGroupName, subscriptionId, updateRunNameStops an UpdateRun.

SELECT examples

List UpdateRun resources by Fleet

SELECT
e_tag,
fleetName,
managed_cluster_update,
provisioning_state,
resourceGroupName,
status,
strategy,
subscriptionId,
updateRunName,
update_strategy_id
FROM azure.fleet.vw_update_runs
WHERE fleetName = '{{ fleetName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.fleet.update_runs (
fleetName,
resourceGroupName,
subscriptionId,
updateRunName,
properties
)
SELECT
'{{ fleetName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ updateRunName }}',
'{{ properties }}'
;

DELETE example

Deletes the specified update_runs resource.

/*+ delete */
DELETE FROM azure.fleet.update_runs
WHERE fleetName = '{{ fleetName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND updateRunName = '{{ updateRunName }}';