Set-CsAgent
Use the Set-CsAgent cmdlet to change an AI Agent.
Syntax
Default (Default)
Set-CsAgent
-Instance <AIAgentConfiguration>
[<CommonParameters>]
Description
Use the Set-CsAgent cmdlet to modify an existing AI Agent. The cmdlet follows a retrieve-modify-set pattern: retrieve the agent with Get-CsAgent, change properties on the returned object, and then pass the modified object back through the -Instance parameter.
Caution
This cmdlet will only work for customers that are participating in the AI Agent private preview for this feature. General Availability for this functionality has not been determined at this time.
Examples
Example 1
$AIAgent = Get-CsAgent -Id 7d9997d0-1013-4d9c-83eb-caa6ec05f1b3
$AIAgent.Name = "NewName"
Set-CsAgent -Instance $AIAgent
This example sets a new name value of an AI Agent with the Id 7d9997d0-1013-4d9c-83eb-caa6ec05f1b3.
Parameters
-Instance
The instance of the AI Agent to change.
Parameter properties
| Type: | Microsoft.Rtc.Management.OAA.Models.AIAgentConfiguration |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | True |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.