Skip to main content

agent_applications

Creates, updates, deletes, gets or lists an agent_applications resource.

Overview

Nameagent_applications
TypeResource
Idazure.cognitive_services.agent_applications

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.
agentIdentityBlueprintobjectThe EntraId Agentic Blueprint of the application.
agentsarrayThe list of agent definitions comprising this application, returned as references to the objects under the parent project; use this to obtain a flat list of all agent-version pairs represented by this application.
authorizationPolicyobjectGets or sets the authorization policy associated with this agentic application instance.
baseUrlstringThe application's dedicated invocation endpoint.
defaultInstanceIdentityobjectThe (default) agent instance identity of the application.
descriptionstringThe asset description text.
displayNamestringThe display name of the application.
isEnabledbooleanEnabledstate of the application.
provisioningStatestringProvisioning state of the application. Known values are: "Succeeded", "Failed", "Canceled", "Creating", "Updating", and "Deleting". (Succeeded, Failed, Canceled, Creating, Updating, Deleting)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectTag dictionary. Tags can be added, removed, and updated.
trafficRoutingPolicyobjectGets or sets the traffic routing policy for the application's deployments.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, account_name, project_name, name, subscription_idGets an Agent Application by name. Gets an Agent Application by name.
listselectresource_group_name, account_name, project_name, subscription_idcount, $skip, $skipToken, searchText, orderBy, orderByAscLists Agent Applications in the project. Lists Agent Applications in the project.
create_or_updateinsertresource_group_name, account_name, project_name, name, subscription_id, propertiesCreates or updates an Agent Application (asynchronous). Creates or updates an Agent Application (asynchronous).
create_or_updatereplaceresource_group_name, account_name, project_name, name, subscription_id, propertiesCreates or updates an Agent Application (asynchronous). Creates or updates an Agent Application (asynchronous).
deletedeleteresource_group_name, account_name, project_name, name, subscription_idDelete Agent Application. Delete Agent Application.
list_agentsexecresource_group_name, account_name, project_name, name, subscription_idLists agents for an Agent Application. Lists agents for an Agent Application.
enableexecresource_group_name, account_name, project_name, name, subscription_idEnables an Agent Application. Enables an Agent Application.
disableexecresource_group_name, account_name, project_name, name, subscription_idDisables an Agent Application. Disables an Agent Application.

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
account_namestringThe name of Cognitive Services account. Required.
namestringName for the Agent Application. Required.
project_namestringThe name of Cognitive Services account's project. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
$skipintegerNumber of agent applications to skip. Default value is None.
$skipTokenstringContinuation token for pagination. Default value is None.
countintegerNumber of agent applications to be retrieved in a page of results. Default value is 30.
orderBystringField to order by. Default value is None.
orderByAscbooleanWhether to order in ascending order. Default value is False.
searchTextstringSearch text for filtering agent applications. Default value is None.

SELECT examples

Gets an Agent Application by name. Gets an Agent Application by name.

SELECT
id,
name,
agentIdentityBlueprint,
agents,
authorizationPolicy,
baseUrl,
defaultInstanceIdentity,
description,
displayName,
isEnabled,
provisioningState,
systemData,
tags,
trafficRoutingPolicy,
type
FROM azure.cognitive_services.agent_applications
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND account_name = '{{ account_name }}' -- required
AND project_name = '{{ project_name }}' -- required
AND name = '{{ name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates an Agent Application (asynchronous). Creates or updates an Agent Application (asynchronous).

INSERT INTO azure.cognitive_services.agent_applications (
properties,
resource_group_name,
account_name,
project_name,
name,
subscription_id
)
SELECT
'{{ properties }}' /* required */,
'{{ resource_group_name }}',
'{{ account_name }}',
'{{ project_name }}',
'{{ name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

REPLACE examples

Creates or updates an Agent Application (asynchronous). Creates or updates an Agent Application (asynchronous).

REPLACE azure.cognitive_services.agent_applications
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND project_name = '{{ project_name }}' --required
AND name = '{{ name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND properties = '{{ properties }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Delete Agent Application. Delete Agent Application.

DELETE FROM azure.cognitive_services.agent_applications
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND project_name = '{{ project_name }}' --required
AND name = '{{ name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Lists agents for an Agent Application. Lists agents for an Agent Application.

EXEC azure.cognitive_services.agent_applications.list_agents 
@resource_group_name='{{ resource_group_name }}' --required,
@account_name='{{ account_name }}' --required,
@project_name='{{ project_name }}' --required,
@name='{{ name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;