Skip to main content

update_runs

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

Overview

Nameupdate_runs
TypeResource
Idazure.container_service_fleet.update_runs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
autoUpgradeProfileIdstringAutoUpgradeProfileId is the id of an auto upgrade profile resource.
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.
managedClusterUpdateobjectThe update to be applied to all clusters in the UpdateRun. The managedClusterUpdate can be modified until the run is started. Required.
provisioningStatestringThe provisioning state of the UpdateRun resource. Known values are: "Succeeded", "Failed", and "Canceled". (Succeeded, Failed, Canceled)
statusobjectThe status of the UpdateRun.
strategyobjectThe strategy defines the order in which the clusters will be updated. If not set, all members will be updated sequentially. The UpdateRun status will show a single UpdateStage and a single UpdateGroup targeting all members. The strategy of the UpdateRun can be modified until the run is started.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
updateStrategyIdstringThe resource id of the FleetUpdateStrategy resource to reference. When creating a new run, there are three ways to define a strategy for the run: 1. Define a new strategy in place: Set the "strategy" field. 2. Use an existing strategy: Set the "updateStrategyId" field. (since 2023-08-15-preview) 3. Use the default strategy to update all the members one by one: Leave both "updateStrategyId" and "strategy" unset. (since 2023-08-15-preview) Setting both "updateStrategyId" and "strategy" is invalid. UpdateRuns created by "updateStrategyId" snapshot the referenced UpdateStrategy at the time of creation and store it in the "strategy" field. Subsequent changes to the referenced FleetUpdateStrategy resource do not propagate. UpdateRunStrategy changes can be made directly on the "strategy" field before launching the UpdateRun.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, fleet_name, update_run_name, subscription_idGet a UpdateRun.
list_by_fleetselectresource_group_name, fleet_name, subscription_id$top, $skipTokenList UpdateRun resources by Fleet.
create_or_updateinsertresource_group_name, fleet_name, update_run_name, subscription_idCreate a UpdateRun.
create_or_updatereplaceresource_group_name, fleet_name, update_run_name, subscription_idCreate a UpdateRun.
deletedeleteresource_group_name, fleet_name, update_run_name, subscription_idDelete a UpdateRun.
startexecresource_group_name, fleet_name, update_run_name, subscription_idStarts an UpdateRun.
stopexecresource_group_name, fleet_name, update_run_name, subscription_idStops an UpdateRun.
skipexecresource_group_name, fleet_name, update_run_name, subscription_id, targetsSkips one or a combination of member/group/stage/afterStageWait(s) of an update run.

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
fleet_namestringThe name of the Fleet resource. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
update_run_namestringThe name of the UpdateRun resource. Required.
$skipTokenstringThe page-continuation token to use with a paged version of this API. Default value is None.
$topintegerThe number of result items to return. Default value is None.

SELECT examples

Get a UpdateRun.

SELECT
id,
name,
autoUpgradeProfileId,
eTag,
managedClusterUpdate,
provisioningState,
status,
strategy,
systemData,
type,
updateStrategyId
FROM azure.container_service_fleet.update_runs
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND fleet_name = '{{ fleet_name }}' -- required
AND update_run_name = '{{ update_run_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create a UpdateRun.

INSERT INTO azure.container_service_fleet.update_runs (
properties,
resource_group_name,
fleet_name,
update_run_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ fleet_name }}',
'{{ update_run_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
eTag,
properties,
systemData,
type
;

REPLACE examples

Create a UpdateRun.

REPLACE azure.container_service_fleet.update_runs
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND fleet_name = '{{ fleet_name }}' --required
AND update_run_name = '{{ update_run_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
eTag,
properties,
systemData,
type;

DELETE examples

Delete a UpdateRun.

DELETE FROM azure.container_service_fleet.update_runs
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND fleet_name = '{{ fleet_name }}' --required
AND update_run_name = '{{ update_run_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Starts an UpdateRun.

EXEC azure.container_service_fleet.update_runs.start 
@resource_group_name='{{ resource_group_name }}' --required,
@fleet_name='{{ fleet_name }}' --required,
@update_run_name='{{ update_run_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;