Skip to main content

connected_environments

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

Overview

Nameconnected_environments
TypeResource
Idazure.container_apps.connected_environments

Fields

NameDatatypeDescription
extendedLocationobjectThe complex type of the extended location.
locationstringThe geo-location where the resource lives
propertiesobjectConnectedEnvironment resource specific properties
tagsobjectResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTconnectedEnvironmentName, resourceGroupName, subscriptionIdGet the properties of an connectedEnvironment.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGet all connectedEnvironments in a resource group.
list_by_subscriptionSELECTsubscriptionIdGet all connectedEnvironments for a subscription.
create_or_updateINSERTconnectedEnvironmentName, resourceGroupName, subscriptionIdCreates or updates an connectedEnvironment.
deleteDELETEconnectedEnvironmentName, resourceGroupName, subscriptionIdDelete an connectedEnvironment.
updateUPDATEconnectedEnvironmentName, resourceGroupName, subscriptionIdPatches a Managed Environment. Only patching of tags is supported currently
check_name_availabilityEXECconnectedEnvironmentName, resourceGroupName, subscriptionIdChecks if resource connectedEnvironmentName is available.

SELECT examples

Get all connectedEnvironments for a subscription.

SELECT
extendedLocation,
location,
properties,
tags
FROM azure.container_apps.connected_environments
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.container_apps.connected_environments (
connectedEnvironmentName,
resourceGroupName,
subscriptionId,
tags,
location,
extendedLocation,
properties
)
SELECT
'{{ connectedEnvironmentName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ tags }}',
'{{ location }}',
'{{ extendedLocation }}',
'{{ properties }}'
;

UPDATE example

Updates a connected_environments resource.

/*+ update */
UPDATE azure.container_apps.connected_environments
SET

WHERE
connectedEnvironmentName = '{{ connectedEnvironmentName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified connected_environments resource.

/*+ delete */
DELETE FROM azure.container_apps.connected_environments
WHERE connectedEnvironmentName = '{{ connectedEnvironmentName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';