Skip to main content

kube_environments

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

Overview

Namekube_environments
TypeResource
Idazure.web.kube_environments

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.
aksResourceIDstring:vartype aks_resource_id: str
appLogsConfigurationobjectCluster configuration which enables the log daemon to export app logs to a destination. Currently only "log-analytics" is supported.
arcConfigurationobjectCluster configuration which determines the ARC cluster components types. Eg: Choosing between BuildService kind, FrontEnd Service ArtifactsStorageType etc.
containerAppsConfigurationobjectCluster configuration for Container Apps Environments to configure Dapr Instrumentation Key and VNET Configuration.
defaultDomainstringDefault Domain Name for the cluster.
deploymentErrorsstringAny errors that occurred during deployment or deployment validation.
environmentTypestringType of Kubernetes Environment. Only supported for Container App Environments with value as Managed.
extendedLocationobjectExtended Location.
internalLoadBalancerEnabledbooleanOnly visible within Vnet/Subnet.
kindstringKind of resource.
locationstringThe geo-location where the resource lives. Required.
provisioningStatestringProvisioning state of the Kubernetes Environment. Known values are: "Succeeded", "Failed", "Canceled", "Waiting", "InitializationInProgress", "InfrastructureSetupInProgress", "InfrastructureSetupComplete", "ScheduledForDelete", "UpgradeRequested", and "UpgradeFailed". (Succeeded, Failed, Canceled, Waiting, InitializationInProgress, InfrastructureSetupInProgress, InfrastructureSetupComplete, ScheduledForDelete, UpgradeRequested, UpgradeFailed)
staticIpstringStatic IP of the KubeEnvironment.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
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, name, subscription_idGet the properties of a Kubernetes Environment. Description for Get the properties of a Kubernetes Environment.
list_by_resource_groupselectresource_group_name, subscription_idGet all the Kubernetes Environments in a resource group. Description for Get all the Kubernetes Environments in a resource group.
list_by_subscriptionselectsubscription_idGet all Kubernetes Environments for a subscription. Description for Get all Kubernetes Environments for a subscription.
create_or_updateinsertresource_group_name, name, subscription_id, locationCreates or updates a Kubernetes Environment. Description for Creates or updates a Kubernetes Environment.
updateupdateresource_group_name, name, subscription_idCreates or updates a Kubernetes Environment. Description for Creates or updates a Kubernetes Environment.
create_or_updatereplaceresource_group_name, name, subscription_id, locationCreates or updates a Kubernetes Environment. Description for Creates or updates a Kubernetes Environment.
deletedeleteresource_group_name, name, subscription_idDelete a Kubernetes Environment. Description for Delete a Kubernetes Environment.

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
namestringName of the Kubernetes Environment. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Get the properties of a Kubernetes Environment. Description for Get the properties of a Kubernetes Environment.

SELECT
id,
name,
aksResourceID,
appLogsConfiguration,
arcConfiguration,
containerAppsConfiguration,
defaultDomain,
deploymentErrors,
environmentType,
extendedLocation,
internalLoadBalancerEnabled,
kind,
location,
provisioningState,
staticIp,
systemData,
tags,
type
FROM azure.web.kube_environments
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND name = '{{ name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates a Kubernetes Environment. Description for Creates or updates a Kubernetes Environment.

INSERT INTO azure.web.kube_environments (
tags,
location,
properties,
extendedLocation,
kind,
resource_group_name,
name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ extendedLocation }}',
'{{ kind }}',
'{{ resource_group_name }}',
'{{ name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
extendedLocation,
kind,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Creates or updates a Kubernetes Environment. Description for Creates or updates a Kubernetes Environment.

UPDATE azure.web.kube_environments
SET
kind = '{{ kind }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND name = '{{ name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
extendedLocation,
kind,
location,
properties,
systemData,
tags,
type;

REPLACE examples

Creates or updates a Kubernetes Environment. Description for Creates or updates a Kubernetes Environment.

REPLACE azure.web.kube_environments
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}',
extendedLocation = '{{ extendedLocation }}',
kind = '{{ kind }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND name = '{{ name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
extendedLocation,
kind,
location,
properties,
systemData,
tags,
type;

DELETE examples

Delete a Kubernetes Environment. Description for Delete a Kubernetes Environment.

DELETE FROM azure.web.kube_environments
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND name = '{{ name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;