Skip to main content

agent_deployments

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

Overview

Nameagent_deployments
TypeResource
Idazure.cognitive_services.agent_deployments

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.
agentsarrayReturns a flat list of agent:version deployed in this deployment.
deploymentIdstringGets or sets the unique identifier of the deployment.
deploymentTypestringGets or sets the type of deployment for the agent. Required. Known values are: "Managed", "Hosted", and "Custom".
descriptionstringThe asset description text.
displayNamestringGets or sets the display name of the deployment.
protocolsarrayGets or sets the supported protocol types and versions exposed by this deployment.
provisioningStatestringGets or sets the provisioning state of the agent deployment. Known values are: "Succeeded", "Failed", "Canceled", "Creating", "Updating", and "Deleting". (Succeeded, Failed, Canceled, Creating, Updating, Deleting)
statestringGets or sets the current operational state of the deployment (and, intrinsically, of the comprising agents). Known values are: "Starting", "Running", "Stopping", "Stopped", "Failed", "Deleting", "Deleted", and "Updating". (Starting, Running, Stopping, Stopped, Failed, Deleting, Deleted, Updating)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectTag dictionary. Tags can be added, removed, and updated.
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, app_name, deployment_name, subscription_idGets an Agent Deployment by name. Gets an Agent Deployment by name.
listselectresource_group_name, account_name, project_name, app_name, subscription_idcount, $skipToken, orderBy, orderByAscLists Agent Deployments in the application. Lists Agent Deployments in the application.
create_or_updateinsertresource_group_name, account_name, project_name, app_name, deployment_name, subscription_id, propertiesCreates or updates an Agent Deployment (asynchronous). Creates or updates an Agent Deployment (asynchronous).
create_or_updatereplaceresource_group_name, account_name, project_name, app_name, deployment_name, subscription_id, propertiesCreates or updates an Agent Deployment (asynchronous). Creates or updates an Agent Deployment (asynchronous).
deletedeleteresource_group_name, account_name, project_name, app_name, deployment_name, subscription_idDelete Agent Deployment. Delete Agent Deployment.
startexecresource_group_name, account_name, project_name, app_name, deployment_name, subscription_idStarts an Agent Deployment. Starts an Agent Deployment.
stopexecresource_group_name, account_name, project_name, app_name, deployment_name, subscription_idStops an Agent Deployment. Stops an Agent Deployment.

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.
app_namestringThe name of the application associated with the Cognitive Services Account. Required.
deployment_namestringThe name of the deployment associated with the Cognitive Services Account. 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
$skipTokenstringContinuation token for pagination. Default value is None.
countintegerNumber of agent deployments 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.

SELECT examples

Gets an Agent Deployment by name. Gets an Agent Deployment by name.

SELECT
id,
name,
agents,
deploymentId,
deploymentType,
description,
displayName,
protocols,
provisioningState,
state,
systemData,
tags,
type
FROM azure.cognitive_services.agent_deployments
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND account_name = '{{ account_name }}' -- required
AND project_name = '{{ project_name }}' -- required
AND app_name = '{{ app_name }}' -- required
AND deployment_name = '{{ deployment_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

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

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

REPLACE examples

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

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

DELETE examples

Delete Agent Deployment. Delete Agent Deployment.

DELETE FROM azure.cognitive_services.agent_deployments
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND project_name = '{{ project_name }}' --required
AND app_name = '{{ app_name }}' --required
AND deployment_name = '{{ deployment_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Starts an Agent Deployment. Starts an Agent Deployment.

EXEC azure.cognitive_services.agent_deployments.start 
@resource_group_name='{{ resource_group_name }}' --required,
@account_name='{{ account_name }}' --required,
@project_name='{{ project_name }}' --required,
@app_name='{{ app_name }}' --required,
@deployment_name='{{ deployment_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;