Skip to main content

update_runs

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

Overview

Nameupdate_runs
TypeResource
Idazure_stack.update_admin.update_runs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringURI of the resource.
namestringName of the resource.
locationstringRegion location of resource.
propertiesobjectProperties of a update run.
tagsobjectList of key-value pairs.
typestringType of resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, updateLocation, updateName, runNameGet an instance of update run using the ID.
listselectsubscriptionId, resourceGroupName, updateLocation, updateNameGet the list of update runs.
rerunexecsubscriptionId, resourceGroupName, updateLocation, updateName, runNameResume a failed 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
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
runNamestringUpdate run identifier.
subscriptionIdstringThe ID of the target subscription.
updateLocationstringThe name of the update location.
updateNamestringName of the update.

SELECT examples

Get an instance of update run using the ID.

SELECT
id,
name,
location,
properties,
tags,
type
FROM azure_stack.update_admin.update_runs
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND updateLocation = '{{ updateLocation }}' -- required
AND updateName = '{{ updateName }}' -- required
AND runName = '{{ runName }}' -- required
;

Lifecycle Methods

Resume a failed update.

EXEC azure_stack.update_admin.update_runs.rerun 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@updateLocation='{{ updateLocation }}' --required,
@updateName='{{ updateName }}' --required,
@runName='{{ runName }}' --required
;