Skip to main content

patches

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

Overview

Namepatches
TypeResource
Idazure.container_apps.patches

Fields

The following fields are returned by SELECT queries:

Patch information retrieved successfully.

NameDatatypeDescription
propertiesobjectProperties that describes current states of the patch resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, containerAppName, patchNameGet details for specific Container Apps Patch by patch name.
list_by_container_appselectsubscriptionId, resourceGroupName, containerAppName$filterList Container Apps Patch resources by ContainerApp.
deletedeletesubscriptionId, resourceGroupName, containerAppName, patchNameDelete specific Container Apps Patch by patch name.
skip_configureexecsubscriptionId, resourceGroupName, containerAppName, patchNameConfigure the Container Apps Patch skip option by patch name.
applyexecsubscriptionId, resourceGroupName, containerAppName, patchNameApply a Container Apps Patch resource with patch name.

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
containerAppNamestringName of the Container App the Build is associated.
patchNamestringThe name of the patch
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.
$filterstringThe filter to apply on the operation. For example, $filter=properties/patchApplyStatus eq 'Succeeded'

SELECT examples

Get details for specific Container Apps Patch by patch name.

SELECT
properties
FROM azure.container_apps.patches
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND containerAppName = '{{ containerAppName }}' -- required
AND patchName = '{{ patchName }}' -- required
;

DELETE examples

Delete specific Container Apps Patch by patch name.

DELETE FROM azure.container_apps.patches
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND containerAppName = '{{ containerAppName }}' --required
AND patchName = '{{ patchName }}' --required
;

Lifecycle Methods

Configure the Container Apps Patch skip option by patch name.

EXEC azure.container_apps.patches.skip_configure 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@containerAppName='{{ containerAppName }}' --required,
@patchName='{{ patchName }}' --required
@@json=
'{
"skip": {{ skip }}
}'
;