Skip to main content

managed_environments_storages

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

Overview

Namemanaged_environments_storages
TypeResource
Idazure.container_apps.managed_environments_storages

Fields

NameDatatypeDescription
propertiesobjectStorage properties

Methods

NameAccessible byRequired ParamsDescription
getSELECTenvironmentName, resourceGroupName, storageName, subscriptionIdGet storage for a managedEnvironment.
listSELECTenvironmentName, resourceGroupName, subscriptionIdGet all storages for a managedEnvironment.
create_or_updateINSERTenvironmentName, resourceGroupName, storageName, subscriptionIdCreate or update storage for a managedEnvironment.
deleteDELETEenvironmentName, resourceGroupName, storageName, subscriptionIdDelete storage for a managedEnvironment.

SELECT examples

Get all storages for a managedEnvironment.

SELECT
properties
FROM azure.container_apps.managed_environments_storages
WHERE environmentName = '{{ environmentName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.container_apps.managed_environments_storages (
environmentName,
resourceGroupName,
storageName,
subscriptionId,
properties
)
SELECT
'{{ environmentName }}',
'{{ resourceGroupName }}',
'{{ storageName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified managed_environments_storages resource.

/*+ delete */
DELETE FROM azure.container_apps.managed_environments_storages
WHERE environmentName = '{{ environmentName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND storageName = '{{ storageName }}'
AND subscriptionId = '{{ subscriptionId }}';