Skip to main content

update_runs

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

Overview

Nameupdate_runs
TypeResource
Idazure_stack.azure_stack_hci.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.
durationstringDuration of the update run.
lastUpdatedTimestring (date-time)Timestamp of the most recently completed step in the update run.
locationstringThe geo-location where the resource lives.
progressobjectProgress representation of the update run steps.
provisioningStatestringProvisioning state of the UpdateRuns proxy resource. Indicates the current lifecycle status of the update operation, such as whether it has been accepted, is in progress, or has completed. Known values are: "NotSpecified", "Error", "Succeeded", "Failed", "Canceled", "Connected", "Disconnected", "Deleted", "Creating", "Updating", "Deleting", "Moving", "PartiallySucceeded", "PartiallyConnected", "InProgress", "Accepted", "Provisioning", and "DisableInProgress". (NotSpecified, Error, Succeeded, Failed, Canceled, Connected, Disconnected, Deleted, Creating, Updating, Deleting, Moving, PartiallySucceeded, PartiallyConnected, InProgress, Accepted, Provisioning, DisableInProgress)
statestringRepresents the current state of the update run. Indicates whether the update is in progress, has completed successfully, failed, or is in an unknown state. Known values are: "Unknown", "Succeeded", "InProgress", and "Failed". (Unknown, Succeeded, InProgress, Failed)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
timeStartedstring (date-time)Timestamp of the update run was started.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, cluster_name, update_name, update_run_name, subscription_idGet the Update run for a specified update.
listselectresource_group_name, cluster_name, update_name, subscription_idList all Update runs for a specified update.
deletedeleteresource_group_name, cluster_name, update_name, update_run_name, subscription_idDelete specified Update Run.
putexecresource_group_name, cluster_name, update_name, update_run_name, subscription_idPut Update runs for a specified update.

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
cluster_namestringThe name of the cluster. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
update_namestringThe name of the Update. Required.
update_run_namestringThe name of the Update Run. Required.

SELECT examples

Get the Update run for a specified update.

SELECT
id,
name,
duration,
lastUpdatedTime,
location,
progress,
provisioningState,
state,
systemData,
timeStarted,
type
FROM azure_stack.azure_stack_hci.update_runs
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND cluster_name = '{{ cluster_name }}' -- required
AND update_name = '{{ update_name }}' -- required
AND update_run_name = '{{ update_run_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

DELETE examples

Delete specified Update Run.

DELETE FROM azure_stack.azure_stack_hci.update_runs
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND cluster_name = '{{ cluster_name }}' --required
AND update_name = '{{ update_name }}' --required
AND update_run_name = '{{ update_run_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Put Update runs for a specified update.

EXEC azure_stack.azure_stack_hci.update_runs.put 
@resource_group_name='{{ resource_group_name }}' --required,
@cluster_name='{{ cluster_name }}' --required,
@update_name='{{ update_name }}' --required,
@update_run_name='{{ update_run_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"properties": "{{ properties }}",
"location": "{{ location }}"
}'
;