Skip to main content

updates

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

Overview

Nameupdates
TypeResource
Idazure_stack.azure_stack_hci.updates

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.
additionalPropertiesstringExtensible KV pairs serialized as a string. This is currently used to report the stamp OEM family and hardware model information when an update is flagged as Invalid for the stamp based on OEM type.
availabilityTypestringIndicates how the update content is made available for download. This determines whether the update is sourced locally, from an online repository, or requires user notification. Known values are: "Local", "Online", and "Notify". (Local, Online, Notify)
componentVersionsarrayAn array of component versions for a Solution Bundle update, and an empty array otherwise.
descriptionstringDescription of the update.
displayNamestringDisplay name of the Update.
healthCheckDatestring (date-time)Last time the package-specific checks were run.
healthCheckResultarrayAn array of PrecheckResult objects.
healthStatestringOverall health state for update-specific health checks. Known values are: "Unknown", "Success", "Failure", "Warning", "Error", and "InProgress". (Unknown, Success, Failure, Warning, Error, InProgress)
installedDatestring (date-time)Date that the update was installed.
locationstringThe geo-location where the resource lives.
minSbeVersionRequiredstringMinimum Sbe Version of the update.
packagePathstringPath where the update package is available.
packageSizeInMbnumberSize of the package. This value is a combination of the size from update metadata and size of the payload that results from the live scan operation for OS update content.
packageTypestringCustomer-visible type of the update.
prerequisitesarrayIf update State is HasPrerequisite, this property contains an array of objects describing prerequisite updates before installing this update. Otherwise, it is empty.
provisioningStatestringProvisioning state of the Updates 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)
publisherstringPublisher of the update package.
rebootRequiredstringIndicates whether a reboot is required after the update or operation. Helps determine if a system restart is necessary to complete the process. Known values are: "Unknown", "True", and "False". (Unknown, True, False)
releaseLinkstringLink to release notes for the update.
statestringRepresents the current state of the update as it relates to this stamp. This includes phases such as preparation, installation, scanning, and error handling, providing insight into the update's progress and any issues encountered. Known values are: "HasPrerequisite", "Obsolete", "Ready", "NotApplicableBecauseAnotherUpdateIsInProgress", "Preparing", "Installing", "Installed", "PreparationFailed", "InstallationFailed", "Invalid", "Recalled", "Downloading", "DownloadFailed", "HealthChecking", "HealthCheckFailed", "ReadyToInstall", "ScanInProgress", "ScanFailed", "AdditionalContentRequired", "HealthCheckExpired", and "PendingOEMValidation". (HasPrerequisite, Obsolete, Ready, NotApplicableBecauseAnotherUpdateIsInProgress, Preparing, Installing, Installed, PreparationFailed, InstallationFailed, Invalid, Recalled, Downloading, DownloadFailed, HealthChecking, HealthCheckFailed, ReadyToInstall, ScanInProgress, ScanFailed, AdditionalContentRequired, HealthCheckExpired, PendingOEMValidation)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
updateStatePropertiesobjectAdditional information regarding the state of the update. See definition of UpdateStateProperties type below for more details on this property.
versionstringVersion of the update.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, cluster_name, update_name, subscription_idGet specified Update.
listselectresource_group_name, cluster_name, subscription_idList all Updates.
deletedeleteresource_group_name, cluster_name, update_name, subscription_idDelete specified Update.
putexecresource_group_name, cluster_name, update_name, subscription_idPut specified Update.
postexecresource_group_name, cluster_name, update_name, subscription_idApply Update.
prepareexecresource_group_name, cluster_name, update_name, subscription_idPrepare 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.

SELECT examples

Get specified Update.

SELECT
id,
name,
additionalProperties,
availabilityType,
componentVersions,
description,
displayName,
healthCheckDate,
healthCheckResult,
healthState,
installedDate,
location,
minSbeVersionRequired,
packagePath,
packageSizeInMb,
packageType,
prerequisites,
provisioningState,
publisher,
rebootRequired,
releaseLink,
state,
systemData,
type,
updateStateProperties,
version
FROM azure_stack.azure_stack_hci.updates
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND cluster_name = '{{ cluster_name }}' -- required
AND update_name = '{{ update_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

DELETE examples

Delete specified Update.

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

Lifecycle Methods

Put specified Update.

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