Skip to main content

updates

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

Overview

Nameupdates
TypeResource
Idazure_stack.update_admin.updates

Fields

The following fields are returned by SELECT queries:

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

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, updateLocation, updateNameGet a specific update at an update location.
listselectsubscriptionId, resourceGroupName, updateLocationGet the list of updates at an update locations
prepareexecsubscriptionId, resourceGroupName, updateLocation, updateNamePrepare a specified update at an update location.
health_checkexecsubscriptionId, resourceGroupName, updateLocation, updateNameRun health check for a specified update at an update location.
applyexecsubscriptionId, resourceGroupName, updateLocation, updateNameApply a specific update at an update location.

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.
subscriptionIdstringThe ID of the target subscription.
updateLocationstringThe name of the update location.
updateNamestringName of the update.

SELECT examples

Get a specific update at an update location.

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

Lifecycle Methods

Prepare a specified update at an update location.

EXEC azure_stack.update_admin.updates.prepare 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@updateLocation='{{ updateLocation }}' --required,
@updateName='{{ updateName }}' --required
;