Skip to main content

container_apps

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

Overview

Namecontainer_apps
TypeResource
Idazure.app_containers.container_apps

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
configurationobjectNon versioned Container App configuration properties.
customDomainVerificationIdstringId used to verify domain name ownership.
environmentIdstringResource ID of environment.
eventStreamEndpointstringThe endpoint of the eventstream of the container app.
extendedLocationobjectThe complex type of the extended location.
identityobjectmanaged identities for the Container App to interact with other Azure services without maintaining any secrets or credentials in code.
kindstringMetadata to represent the container app kind, representing if a container app is workflowapp or functionapp. Known values are: "workflowapp" and "functionapp". (workflowapp, functionapp)
latestReadyRevisionNamestringName of the latest ready revision of the Container App.
latestRevisionFqdnstringFully Qualified Domain Name of the latest revision of the Container App.
latestRevisionNamestringName of the latest revision of the Container App.
locationstringThe geo-location where the resource lives. Required.
managedBystringThe fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.
managedEnvironmentIdstringDeprecated. Resource ID of the Container App's environment.
outboundIpAddressesarrayOutbound IP Addresses for container app.
provisioningStatestringProvisioning state of the Container App. Known values are: "InProgress", "Succeeded", "Failed", "Canceled", and "Deleting". (InProgress, Succeeded, Failed, Canceled, Deleting)
runningStatusstringRunning status of the Container App. Known values are: "Progressing", "Running", "Stopped", "Suspended", and "Ready". (Progressing, Running, Stopped, Suspended, Ready)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
templateobjectContainer App versioned application definition.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
workloadProfileNamestringWorkload profile name to pin for container app execution.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, container_app_name, subscription_idGet the properties of a Container App. Get the properties of a Container App.
list_by_resource_groupselectresource_group_name, subscription_idGet the Container Apps in a given resource group. Get the Container Apps in a given resource group.
list_by_subscriptionselectsubscription_idGet the Container Apps in a given subscription. Get the Container Apps in a given subscription.
create_or_updateinsertresource_group_name, container_app_name, subscription_id, locationCreate or update a Container App. Create or update a Container App.
updateupdateresource_group_name, container_app_name, subscription_id, locationUpdate properties of a Container App. Patches a Container App using JSON Merge Patch.
create_or_updatereplaceresource_group_name, container_app_name, subscription_id, locationCreate or update a Container App. Create or update a Container App.
deletedeleteresource_group_name, container_app_name, subscription_idDelete a Container App. Delete a Container App.
list_custom_host_name_analysisexecresource_group_name, container_app_name, subscription_idcustomHostnameAnalyzes a custom hostname for a Container App. Analyzes a custom hostname for a Container App.
list_secretsexecresource_group_name, container_app_name, subscription_idList secrets for a container app. List secrets for a container app.
get_auth_tokenexecresource_group_name, container_app_name, subscription_idGet auth token for a container app. Get auth token for a container app.
startexecresource_group_name, container_app_name, subscription_idStart a container app. Start a container app.
stopexecresource_group_name, container_app_name, subscription_idStop a container app. Stop a container app.

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.

NameDatatypeDescription
container_app_namestringName of the Container App. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
customHostnamestringCustom hostname. Default value is None.

SELECT examples

Get the properties of a Container App. Get the properties of a Container App.

SELECT
id,
name,
configuration,
customDomainVerificationId,
environmentId,
eventStreamEndpoint,
extendedLocation,
identity,
kind,
latestReadyRevisionName,
latestRevisionFqdn,
latestRevisionName,
location,
managedBy,
managedEnvironmentId,
outboundIpAddresses,
provisioningState,
runningStatus,
systemData,
tags,
template,
type,
workloadProfileName
FROM azure.app_containers.container_apps
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND container_app_name = '{{ container_app_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create or update a Container App. Create or update a Container App.

INSERT INTO azure.app_containers.container_apps (
tags,
location,
properties,
extendedLocation,
identity,
managedBy,
kind,
resource_group_name,
container_app_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ extendedLocation }}',
'{{ identity }}',
'{{ managedBy }}',
'{{ kind }}',
'{{ resource_group_name }}',
'{{ container_app_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
extendedLocation,
identity,
kind,
location,
managedBy,
properties,
systemData,
tags,
type
;

UPDATE examples

Update properties of a Container App. Patches a Container App using JSON Merge Patch.

UPDATE azure.app_containers.container_apps
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}',
extendedLocation = '{{ extendedLocation }}',
identity = '{{ identity }}',
managedBy = '{{ managedBy }}',
kind = '{{ kind }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND container_app_name = '{{ container_app_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
extendedLocation,
identity,
kind,
location,
managedBy,
properties,
systemData,
tags,
type;

REPLACE examples

Create or update a Container App. Create or update a Container App.

REPLACE azure.app_containers.container_apps
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}',
extendedLocation = '{{ extendedLocation }}',
identity = '{{ identity }}',
managedBy = '{{ managedBy }}',
kind = '{{ kind }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND container_app_name = '{{ container_app_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
extendedLocation,
identity,
kind,
location,
managedBy,
properties,
systemData,
tags,
type;

DELETE examples

Delete a Container App. Delete a Container App.

DELETE FROM azure.app_containers.container_apps
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND container_app_name = '{{ container_app_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Analyzes a custom hostname for a Container App. Analyzes a custom hostname for a Container App.

EXEC azure.app_containers.container_apps.list_custom_host_name_analysis 
@resource_group_name='{{ resource_group_name }}' --required,
@container_app_name='{{ container_app_name }}' --required,
@subscription_id='{{ subscription_id }}' --required,
@customHostname='{{ customHostname }}'
;