managed_environments
Creates, updates, deletes, gets or lists a managed_environments
resource.
Overview
Name | managed_environments |
Type | Resource |
Id | azure.container_apps.managed_environments |
Fields
The following fields are returned by SELECT
queries:
- get
- list_by_resource_group
- list_by_subscription
Name | Datatype | Description |
---|---|---|
identity | object | Managed identities for the Managed Environment to interact with other Azure services without maintaining any secrets or credentials in code. |
kind | string | Kind of the Environment. |
location | string | The geo-location where the resource lives |
properties | object | Managed environment resource specific properties |
tags | object | Resource tags. |
Name | Datatype | Description |
---|---|---|
identity | object | Managed identities for the Managed Environment to interact with other Azure services without maintaining any secrets or credentials in code. |
kind | string | Kind of the Environment. |
location | string | The geo-location where the resource lives |
properties | object | Managed environment resource specific properties |
tags | object | Resource tags. |
Name | Datatype | Description |
---|---|---|
identity | object | Managed identities for the Managed Environment to interact with other Azure services without maintaining any secrets or credentials in code. |
kind | string | Kind of the Environment. |
location | string | The geo-location where the resource lives |
properties | object | Managed environment resource specific properties |
tags | object | Resource tags. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | subscriptionId , resourceGroupName , environmentName | Get the properties of a Managed Environment used to host container apps. | |
list_by_resource_group | select | subscriptionId , resourceGroupName | Get all the Managed Environments in a resource group. | |
list_by_subscription | select | subscriptionId | Get all Managed Environments for a subscription. | |
create_or_update | insert | subscriptionId , resourceGroupName , environmentName | Creates or updates a Managed Environment used to host container apps. | |
update | update | subscriptionId , resourceGroupName , environmentName | Patches a Managed Environment using JSON Merge Patch | |
delete | delete | subscriptionId , resourceGroupName , environmentName | Delete a Managed Environment if it does not have any container apps. |
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.
Name | Datatype | Description |
---|---|---|
environmentName | string | Name of the Environment. |
resourceGroupName | string | The name of the resource group. The name is case insensitive. |
subscriptionId | string (uuid) | The ID of the target subscription. The value must be an UUID. |
SELECT
examples
- get
- list_by_resource_group
- list_by_subscription
Get the properties of a Managed Environment used to host container apps.
SELECT
identity,
kind,
location,
properties,
tags
FROM azure.container_apps.managed_environments
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND environmentName = '{{ environmentName }}' -- required
;
Get all the Managed Environments in a resource group.
SELECT
identity,
kind,
location,
properties,
tags
FROM azure.container_apps.managed_environments
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
;
Get all Managed Environments for a subscription.
SELECT
identity,
kind,
location,
properties,
tags
FROM azure.container_apps.managed_environments
WHERE subscriptionId = '{{ subscriptionId }}' -- required
;
INSERT
examples
- create_or_update
- Manifest
Creates or updates a Managed Environment used to host container apps.
INSERT INTO azure.container_apps.managed_environments (
data__tags,
data__location,
data__kind,
data__identity,
data__properties,
subscriptionId,
resourceGroupName,
environmentName
)
SELECT
'{{ tags }}',
'{{ location }}',
'{{ kind }}',
'{{ identity }}',
'{{ properties }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ environmentName }}'
RETURNING
identity,
kind,
location,
properties,
tags
;
# Description fields are for documentation purposes
- name: managed_environments
props:
- name: subscriptionId
value: string (uuid)
description: Required parameter for the managed_environments resource.
- name: resourceGroupName
value: string
description: Required parameter for the managed_environments resource.
- name: environmentName
value: string
description: Required parameter for the managed_environments resource.
- name: tags
value: object
description: |
Resource tags.
- name: location
value: string
description: |
The geo-location where the resource lives
- name: kind
value: string
description: |
Kind of the Environment.
- name: identity
value: object
description: |
Managed identities for the Managed Environment to interact with other Azure services without maintaining any secrets or credentials in code.
- name: properties
value: object
description: |
Managed environment resource specific properties
UPDATE
examples
- update
Patches a Managed Environment using JSON Merge Patch
UPDATE azure.container_apps.managed_environments
SET
data__tags = '{{ tags }}',
data__location = '{{ location }}',
data__kind = '{{ kind }}',
data__identity = '{{ identity }}',
data__properties = '{{ properties }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND environmentName = '{{ environmentName }}' --required
RETURNING
identity,
kind,
location,
properties,
tags;
DELETE
examples
- delete
Delete a Managed Environment if it does not have any container apps.
DELETE FROM azure.container_apps.managed_environments
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND environmentName = '{{ environmentName }}' --required
;