Skip to main content

maintenance_configurations

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

Overview

Namemaintenance_configurations
TypeResource
Idazure.app_containers.maintenance_configurations

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.
scheduledEntriesarrayList of maintenance schedules for a managed environment. Required.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, environment_name, config_name, subscription_idGets the maintenance configuration of a ManagedEnvironment .
listselectresource_group_name, environment_name, subscription_idGets all maintenance configurations in the specified Managed Environment.
create_or_updateinsertresource_group_name, environment_name, config_name, subscription_idCreate or update the maintenance configuration for Managed Environment.
create_or_updatereplaceresource_group_name, environment_name, config_name, subscription_idCreate or update the maintenance configuration for Managed Environment.
deletedeleteresource_group_name, environment_name, config_name, subscription_idDeletes the maintenance configuration of a ManagedEnvironment .

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
config_namestringName of the Maintenance Configuration. Required.
environment_namestringName of the managed environment. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Gets the maintenance configuration of a ManagedEnvironment .

SELECT
id,
name,
scheduledEntries,
systemData,
type
FROM azure.app_containers.maintenance_configurations
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND environment_name = '{{ environment_name }}' -- required
AND config_name = '{{ config_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create or update the maintenance configuration for Managed Environment.

INSERT INTO azure.app_containers.maintenance_configurations (
properties,
resource_group_name,
environment_name,
config_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ environment_name }}',
'{{ config_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

REPLACE examples

Create or update the maintenance configuration for Managed Environment.

REPLACE azure.app_containers.maintenance_configurations
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND environment_name = '{{ environment_name }}' --required
AND config_name = '{{ config_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Deletes the maintenance configuration of a ManagedEnvironment .

DELETE FROM azure.app_containers.maintenance_configurations
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND environment_name = '{{ environment_name }}' --required
AND config_name = '{{ config_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;