CmdID / az / az cognitiveservices / az cognitiveservices agent
az cognitiveservices agent create
Create a new hosted agent from a container image or source code. Azure CLI reference
21 options Its page in the Azure CLI reference
Options
--account-name, -aName of the Cognitive Services account.--build-remoteForce remote build using Azure Container Registry Task.--cpuCPU allocation (default is 1 core).--descriptionHuman-readable description of the agent--dockerfileName of the Dockerfile in source directory (default is 'Dockerfile').--environment-variables, --envEnvironment variables in key=value format.--imageDocker image URI with tag to use for the agent.--max-replicasMaximum number of replicas for scaling (default is 3).--memoryMemory allocation with unit (default is 2Gi).--min-replicasMinimum number of replicas for scaling (default is 0).--name, -nName of the agent to create.--no-startSkip automatic deployment after agent version creation.--no-waitDo not wait for the long-running operation to finish--project-name, -pName of the AI Foundry project.--protocol-versionProtocol version (default is v1).--protocolCommunication protocol (responses or streaming).--registryAzure Container Registry name or full URI.--show-logsStream container console logs during deployment.--skip-acr-checkSkip validation that project managed identity has access to container registry.--sourcePath to source directory containing Dockerfile.--timeoutMaximum time in seconds to wait for deployment to be ready.