Skip to main content

extensions

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

Overview

Nameextensions
TypeResource
Idazure.kubernetes_configuration.extensions

Fields

NameDatatypeDescription
identityobjectIdentity for the resource.
planobjectPlan for the resource.
propertiesobjectProperties of an Extension resource
systemDataobjectMetadata pertaining to creation and last modification of the resource.

Methods

NameAccessible byRequired ParamsDescription
getSELECTclusterName, clusterResourceName, clusterRp, extensionName, resourceGroupName, subscriptionIdGets Kubernetes Cluster Extension.
listSELECTclusterName, clusterResourceName, clusterRp, resourceGroupName, subscriptionIdList all Extensions in the cluster.
createINSERTclusterName, clusterResourceName, clusterRp, extensionName, resourceGroupName, subscriptionIdCreate a new Kubernetes Cluster Extension.
deleteDELETEclusterName, clusterResourceName, clusterRp, extensionName, resourceGroupName, subscriptionIdDelete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from the cluster.
updateUPDATEclusterName, clusterResourceName, clusterRp, extensionName, resourceGroupName, subscriptionIdPatch an existing Kubernetes Cluster Extension.

SELECT examples

List all Extensions in the cluster.

SELECT
identity,
plan,
properties,
systemData
FROM azure.kubernetes_configuration.extensions
WHERE clusterName = '{{ clusterName }}'
AND clusterResourceName = '{{ clusterResourceName }}'
AND clusterRp = '{{ clusterRp }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.kubernetes_configuration.extensions (
clusterName,
clusterResourceName,
clusterRp,
extensionName,
resourceGroupName,
subscriptionId,
properties,
identity,
systemData,
plan
)
SELECT
'{{ clusterName }}',
'{{ clusterResourceName }}',
'{{ clusterRp }}',
'{{ extensionName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ identity }}',
'{{ systemData }}',
'{{ plan }}'
;

UPDATE example

Updates a extensions resource.

/*+ update */
UPDATE azure.kubernetes_configuration.extensions
SET
properties = '{{ properties }}'
WHERE
clusterName = '{{ clusterName }}'
AND clusterResourceName = '{{ clusterResourceName }}'
AND clusterRp = '{{ clusterRp }}'
AND extensionName = '{{ extensionName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified extensions resource.

/*+ delete */
DELETE FROM azure.kubernetes_configuration.extensions
WHERE clusterName = '{{ clusterName }}'
AND clusterResourceName = '{{ clusterResourceName }}'
AND clusterRp = '{{ clusterRp }}'
AND extensionName = '{{ extensionName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';