apply_updates
Creates, updates, deletes, gets or lists a apply_updates
resource.
Overview
Name | apply_updates |
Type | Resource |
Id | azure.maintenance.apply_updates |
Fields
- vw_apply_updates
- apply_updates
Name | Datatype | Description |
---|---|---|
id | text | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name | text | The name of the resource |
applyUpdateName | text | field from the properties object |
last_update_time | text | field from the properties object |
providerName | text | field from the properties object |
resourceGroupName | text | field from the properties object |
resourceName | text | field from the properties object |
resourceType | text | field from the properties object |
resource_id | text | field from the properties object |
status | text | field from the properties object |
subscriptionId | text | field from the properties object |
type | text | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
Name | Datatype | Description |
---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name | string | The name of the resource |
properties | object | Properties for apply update |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | applyUpdateName, providerName, resourceGroupName, resourceName, resourceType, subscriptionId | Track maintenance updates to resource |
list | SELECT | subscriptionId | |
create_or_update | INSERT | providerName, resourceGroupName, resourceName, resourceType, subscriptionId | Apply maintenance updates to resource |
SELECT
examples
- vw_apply_updates
- apply_updates
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 }}';
SELECT
id,
name,
properties,
type
FROM azure.maintenance.apply_updates
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new apply_updates
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.maintenance.apply_updates (
providerName,
resourceGroupName,
resourceName,
resourceType,
subscriptionId
)
SELECT
'{{ providerName }}',
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ resourceType }}',
'{{ subscriptionId }}'
;
- name: your_resource_model_name
props: []