Skip to main content

apply_updates

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

Overview

Nameapply_updates
TypeResource
Idazure.maintenance.apply_updates

Fields

NameDatatypeDescription
idtextFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
nametextThe name of the resource
applyUpdateNametextfield from the properties object
last_update_timetextfield from the properties object
providerNametextfield from the properties object
resourceGroupNametextfield from the properties object
resourceNametextfield from the properties object
resourceTypetextfield from the properties object
resource_idtextfield from the properties object
statustextfield from the properties object
subscriptionIdtextfield from the properties object
typetextThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

NameAccessible byRequired ParamsDescription
getSELECTapplyUpdateName, providerName, resourceGroupName, resourceName, resourceType, subscriptionIdTrack maintenance updates to resource
listSELECTsubscriptionId
create_or_updateINSERTproviderName, resourceGroupName, resourceName, resourceType, subscriptionIdApply maintenance updates to resource

SELECT examples

SELECT
id,
name,
applyUpdateName,
last_update_time,
providerName,
resourceGroupName,
resourceName,
resourceType,
resource_id,
status,
subscriptionId,
type
FROM azure.maintenance.vw_apply_updates
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new apply_updates resource.

/*+ create */
INSERT INTO azure.maintenance.apply_updates (
providerName,
resourceGroupName,
resourceName,
resourceType,
subscriptionId
)
SELECT
'{{ providerName }}',
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ resourceType }}',
'{{ subscriptionId }}'
;