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
Name | Datatype | Description |
---|---|---|
identity | object | Managed service identity (system assigned and/or user assigned identities) |
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
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | environmentName, resourceGroupName, subscriptionId | Get the properties of a Managed Environment used to host container apps. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | 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 | environmentName, resourceGroupName, subscriptionId | Creates or updates a Managed Environment used to host container apps. |
delete | DELETE | environmentName, resourceGroupName, subscriptionId | Delete a Managed Environment if it does not have any container apps. |
update | UPDATE | environmentName, resourceGroupName, subscriptionId | Patches a Managed Environment using JSON Merge Patch |
SELECT
examples
Get all Managed Environments for a subscription.
SELECT
identity,
kind,
location,
properties,
tags
FROM azure.container_apps.managed_environments
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new managed_environments
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.container_apps.managed_environments (
environmentName,
resourceGroupName,
subscriptionId,
tags,
location,
kind,
identity,
properties
)
SELECT
'{{ environmentName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ tags }}',
'{{ location }}',
'{{ kind }}',
'{{ identity }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: tags
value: object
- name: location
value: string
- name: kind
value: string
- name: identity
value:
- name: principalId
value: string
- name: tenantId
value: string
- name: type
value: []
- name: userAssignedIdentities
value: []
- name: properties
value:
- name: provisioningState
value: string
- name: daprAIInstrumentationKey
value: string
- name: daprAIConnectionString
value: string
- name: vnetConfiguration
value:
- name: internal
value: boolean
- name: infrastructureSubnetId
value: string
- name: dockerBridgeCidr
value: string
- name: platformReservedCidr
value: string
- name: platformReservedDnsIP
value: string
- name: deploymentErrors
value: string
- name: defaultDomain
value: string
- name: staticIp
value: string
- name: appLogsConfiguration
value:
- name: destination
value: string
- name: logAnalyticsConfiguration
value:
- name: customerId
value: string
- name: sharedKey
value: string
- name: dynamicJsonColumns
value: boolean
- name: appInsightsConfiguration
value:
- name: connectionString
value: string
- name: openTelemetryConfiguration
value:
- name: destinationsConfiguration
value:
- name: dataDogConfiguration
value:
- name: site
value: string
- name: key
value: string
- name: otlpConfigurations
value:
- - name: name
value: string
- name: endpoint
value: string
- name: insecure
value: boolean
- name: headers
value:
- - name: key
value: string
- name: value
value: string
- name: tracesConfiguration
value:
- name: destinations
value:
- string
- name: logsConfiguration
value:
- name: destinations
value:
- string
- name: metricsConfiguration
value:
- name: destinations
value:
- string
- name: zoneRedundant
value: boolean
- name: customDomainConfiguration
value:
- name: customDomainVerificationId
value: string
- name: dnsSuffix
value: string
- name: certificateKeyVaultProperties
value:
- name: identity
value: string
- name: keyVaultUrl
value: string
- name: certificateValue
value: string
- name: certificatePassword
value: string
- name: expirationDate
value: string
- name: thumbprint
value: string
- name: subjectName
value: string
- name: eventStreamEndpoint
value: string
- name: workloadProfiles
value:
- - name: name
value: []
- name: workloadProfileType
value: []
- name: minimumCount
value: integer
- name: maximumCount
value: integer
- name: kedaConfiguration
value:
- name: version
value: string
- name: daprConfiguration
value:
- name: version
value: string
- name: infrastructureResourceGroup
value: string
- name: peerAuthentication
value:
- name: mtls
value:
- name: enabled
value: boolean
- name: peerTrafficConfiguration
value:
- name: encryption
value:
- name: enabled
value: boolean
- name: privateEndpointConnections
value:
- - name: properties
value:
- name: groupIds
value:
- string
- name: privateEndpoint
value:
- name: id
value: string
- name: privateLinkServiceConnectionState
value:
- name: status
value: []
- name: description
value: string
- name: actionsRequired
value: string
- name: provisioningState
value: []
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: systemData
value:
- name: createdBy
value: string
- name: createdByType
value: string
- name: createdAt
value: string
- name: lastModifiedBy
value: string
- name: lastModifiedByType
value: string
- name: lastModifiedAt
value: string
- name: publicNetworkAccess
value: string
UPDATE
example
Updates a managed_environments
resource.
/*+ update */
UPDATE azure.container_apps.managed_environments
SET
tags = '{{ tags }}',
location = '{{ location }}',
kind = '{{ kind }}',
identity = '{{ identity }}',
properties = '{{ properties }}'
WHERE
environmentName = '{{ environmentName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified managed_environments
resource.
/*+ delete */
DELETE FROM azure.container_apps.managed_environments
WHERE environmentName = '{{ environmentName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';