An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
Updating an existing agent to use a different model is only supported where the underlying API/SDK allows modifying the agent’s model property on update. In the Azure AI Foundry ecosystem there are two relevant patterns:
- New Foundry Agents (recommended)
For Foundry Agents, model changes are typically handled by creating a new agent version rather than updating the model in-place. The migration and troubleshooting guidance notes that older methods likecreate_agent()were removed and replaced withcreate_version()/CreateAgentVersionAsync()/createAgentVersion()that take aPromptAgentDefinitionincluding the model:- To “change” the model for an agent, create a new agent version with the desired model in the
PromptAgentDefinitioninstead of trying to update the existing version’s model. - If the new model performs poorly or causes issues, use the Agent Playground version history to roll back to a previous version. The rollback restores the earlier model configuration for that agent.
- To “change” the model for an agent, create a new agent version with the desired model in the
- Persistent/Assistants-style APIs
For the .NET Persistent Agents client (which follows the Assistants semantics), thePersistentAgentsAdministrationClient.UpdateAgentAsyncmethod has amodelparameter specifically documented as:
This means, in principle, updating an agent’s model is supported by passing the new model ID intoThe ID of the model to use.
UpdateAgentAsyncalong with theassistantId. However, whether a particular non-ChatGPT model (such asLlama-4-Maverick-17B-128E-Instruct-FP8) is accepted depends on:- The model being valid and enabled for the Assistants/Agents feature in the region and resource.
- The service-side constraints for which models can be used with Assistants/Agents. Not all deployed models are necessarily valid for Assistants/Agents, even if they can be used for plain completions.
- Assistants API deprecation and Foundry Agents
The Assistants API is explicitly marked as deprecated and scheduled for retirement, with guidance to move to the Microsoft Foundry Agents service. For long-term and fully supported behavior (including model changes), the recommended path is:- Migrate workloads from Assistants to Foundry Agents.
- Use agent versioning (create a new version with the new model) instead of relying on in-place model changes.
- Practical mitigation for the described issue
Given that:
- Agent creation with the non-ChatGPT model works, but
- Updating the agent to use that model fails,
- Treat model changes as new versions of the agent rather than updates to the existing one.
- For Foundry Agents: call the appropriate
create_version/CreateAgentVersionAsync/createAgentVersionwith aPromptAgentDefinitionthat references the non-ChatGPT model. - Use Agent Playground version history to roll back if needed.
UpdateAgentAsyncwith themodelparameter fails specifically for this model while creation works, this is likely a platform issue that requires service-side investigation.
References:
- Migrate to the new agents developer experience
- Connect an AI gateway to Foundry Agent Service (preview)
- PersistentAgentsAdministrationClient.UpdateAgentAsync Method
- Azure OpenAI in Microsoft Foundry Models REST API preview reference
- Azure OpenAI in Azure AI Foundry Models
- Upgrade or switch models with Ask AI (preview)