container_apps
Creates, updates, deletes, gets or lists a container_apps
resource.
Overview
Name | container_apps |
Type | Resource |
Id | azure.app_service.container_apps |
Fields
Name | Datatype | Description |
---|---|---|
id | string | Resource Id. |
name | string | Resource Name. |
kind | string | Kind of resource. |
location | string | Resource Location. |
properties | object | ContainerApp resource specific properties |
tags | object | Resource tags. |
type | string | Resource type. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | name, resourceGroupName, subscriptionId | |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | |
list_by_subscription | SELECT | subscriptionId | |
create_or_update | INSERT | name, resourceGroupName, subscriptionId | Description for Create or update a Container App. |
delete | DELETE | name, resourceGroupName, subscriptionId | Description for Delete a Container App. |
SELECT
examples
SELECT
id,
name,
kind,
location,
properties,
tags,
type
FROM azure.app_service.container_apps
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new container_apps
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.app_service.container_apps (
name,
resourceGroupName,
subscriptionId,
kind,
location,
tags,
properties
)
SELECT
'{{ name }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ kind }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: id
value: string
- name: name
value: string
- name: kind
value: string
- name: location
value: string
- name: type
value: string
- name: tags
value: object
- name: properties
value:
- name: provisioningState
value: string
- name: kubeEnvironmentId
value: string
- name: latestRevisionName
value: string
- name: latestRevisionFqdn
value: string
- name: configuration
value:
- name: secrets
value:
- - name: name
value: string
- name: value
value: string
- name: activeRevisionsMode
value: string
- name: ingress
value:
- name: fqdn
value: string
- name: external
value: boolean
- name: targetPort
value: integer
- name: transport
value: string
- name: traffic
value:
- - name: revisionName
value: string
- name: weight
value: integer
- name: latestRevision
value: boolean
- name: allowInsecure
value: boolean
- name: registries
value:
- - name: server
value: string
- name: username
value: string
- name: passwordSecretRef
value: string
- name: template
value:
- name: revisionSuffix
value: string
- name: containers
value:
- - name: image
value: string
- name: name
value: string
- name: command
value:
- string
- name: args
value:
- string
- name: env
value:
- - name: name
value: string
- name: value
value: string
- name: secretRef
value: string
- name: resources
value:
- name: cpu
value: number
- name: memory
value: string
- name: scale
value:
- name: minReplicas
value: integer
- name: maxReplicas
value: integer
- name: rules
value:
- - name: name
value: string
- name: azureQueue
value:
- name: queueName
value: string
- name: queueLength
value: integer
- name: auth
value:
- - name: secretRef
value: string
- name: triggerParameter
value: string
- name: custom
value:
- name: type
value: string
- name: metadata
value: object
- name: auth
value:
- - name: secretRef
value: string
- name: triggerParameter
value: string
- name: http
value:
- name: metadata
value: object
- name: auth
value:
- - name: secretRef
value: string
- name: triggerParameter
value: string
- name: dapr
value:
- name: enabled
value: boolean
- name: appId
value: string
- name: appPort
value: integer
- name: components
value:
- - name: name
value: string
- name: type
value: string
- name: version
value: string
- name: metadata
value:
- - name: name
value: string
- name: value
value: string
- name: secretRef
value: string
DELETE
example
Deletes the specified container_apps
resource.
/*+ delete */
DELETE FROM azure.app_service.container_apps
WHERE name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';