Skip to main content

kube_environments

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

Overview

Namekube_environments
TypeResource
Idazure.app_service.kube_environments

Fields

NameDatatypeDescription
idstringResource Id.
namestringResource Name.
extendedLocationobjectExtended Location.
kindstringKind of resource.
locationstringResource Location.
propertiesobjectKubeEnvironment resource specific properties
tagsobjectResource tags.
typestringResource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTname, resourceGroupName, subscriptionIdDescription for Get the properties of a Kubernetes Environment.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdDescription for Get all the Kubernetes Environments in a resource group.
list_by_subscriptionSELECTsubscriptionIdDescription for Get all Kubernetes Environments for a subscription.
create_or_updateINSERTname, resourceGroupName, subscriptionIdDescription for Creates or updates a Kubernetes Environment.
deleteDELETEname, resourceGroupName, subscriptionIdDescription for Delete a Kubernetes Environment.
updateUPDATEname, resourceGroupName, subscriptionIdDescription for Creates or updates a Kubernetes Environment.

SELECT examples

Description for Get all Kubernetes Environments for a subscription.

SELECT
id,
name,
extendedLocation,
kind,
location,
properties,
tags,
type
FROM azure.app_service.kube_environments
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.app_service.kube_environments (
name,
resourceGroupName,
subscriptionId,
kind,
location,
tags,
properties,
extendedLocation
)
SELECT
'{{ name }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ kind }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}',
'{{ extendedLocation }}'
;

UPDATE example

Updates a kube_environments resource.

/*+ update */
UPDATE azure.app_service.kube_environments
SET
kind = '{{ kind }}',
properties = '{{ properties }}'
WHERE
name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified kube_environments resource.

/*+ delete */
DELETE FROM azure.app_service.kube_environments
WHERE name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';