Skip to main content

apply_updates_parents

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

Overview

Nameapply_updates_parents
TypeResource
Idazure.maintenance.apply_updates_parents

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
resourceParentNametextfield from the properties object
resourceParentTypetextfield 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, resourceParentName, resourceParentType, resourceType, subscriptionIdTrack maintenance updates to resource with parent
create_or_updateINSERTproviderName, resourceGroupName, resourceName, resourceParentName, resourceParentType, resourceType, subscriptionIdApply maintenance updates to resource with parent

SELECT examples

Track maintenance updates to resource with parent

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

INSERT example

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

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