Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Important
Items marked (preview) in this article are currently in public preview. This preview is provided without a service-level agreement, and we don't recommend it for production workloads. Certain features might not be supported or might have constrained capabilities. For more information, see Supplemental Terms of Use for Microsoft Azure Previews.
Use azd ai agent endpoint update to patch endpoint and card metadata on an already-deployed Microsoft Foundry agent. You can refresh consumer-facing details without cutting a new agent version.
Prerequisites
- An existing hosted agent deployed to a Foundry project.
endpoint updatedoesn't create a hosted agent. - An azd project that has the agent declared in
azure.yaml, or an explicit Foundry project endpoint. For more information, see Set the azd project context. - The azd Foundry extensions installed.
- An authenticated
azdsession.
Decide when to update metadata
Use azd ai agent endpoint update when you only need to refresh metadata that consumers and tooling read about the agent. This metadata includes the public endpoint, display name, description, and contact info.
Common cases include:
- You changed the public-facing display name or description on the agent card and want it reflected in the Foundry portal without redeploying.
- You moved or re-issued the public agent endpoint URL.
- You updated owner or contact metadata on the card for routing or governance.
If you changed the model, instructions, tools, code, or environment variables, don't use endpoint update. Those changes need a new version. Run azd deploy or azd up instead.
Update the endpoint and card
Edit the
agent_endpointsection, theagent_cardsection, or both sections in theazure.ai.agentservice in yourazure.yamlfile.Run the update command:
azd ai agent endpoint updateIn a multi-service project, pass the service name as a positional:
azd ai agent endpoint update my-agent
The CLI reads the two sections from the agent service in azure.yaml and patches the existing agent record. The process doesn't create a new agent version, rebuild a container, or change any infrastructure.
Verify the update
Confirm the change took effect:
azd ai agent show
The output reflects the new endpoint and card values. The version number is unchanged.
Review fields updated
endpoint update only updates endpoint and card metadata. Use the table to decide whether your change requires a full deploy.
Field on the azure.ai.agent service |
Updated by endpoint update? |
|---|---|
agent_endpoint |
Yes |
agent_card |
Yes |
model, model_deployment |
No - requires azd deploy |
instructions |
No - requires azd deploy |
tools, toolboxes, skills |
No - requires azd deploy |
env |
No - requires azd deploy |
| Container image / entry point / runtime | No - requires azd deploy |
If you're not sure whether a change qualifies for endpoint update, run azd ai agent doctor afterward. It flags any divergence between azure.yaml and the deployed agent state.
Related content
- Diagnose hosted agent issues to catch
azure.yamlversus deployed-state drift. - Deploy a hosted agent when you need a new agent version.
- Author azure.yaml for hosted agents to understand hosted agent service fields.