update the model used in a deployment

Haim Katz 0 Reputation points
2026-11-24T14:07:33.3133333+00:00

I have a model deployed that was built in foundry. Can I update the model use the same deployment so that my app doesn't break?

Microsoft Foundry
Microsoft Foundry

A unified Azure platform for creating and managing AI models, agents, and applications with built‑in enterprise security, monitoring, and governance

0 comments No comments

2 answers

Sort by: Newest
  1. Haim Katz 0 Reputation points
    2026-11-24T14:53:33.67+00:00

    I have two models in the project they both seem to have the same api. How does it know which one to use. Do I need to redeploy with the model I want?

    Was this answer helpful?

    0 comments No comments

  2. AI answer

    2026-11-24T14:08:40.7866667+00:00

    You can update a supported model version in place while retaining the same Azure OpenAI deployment name, so the application can continue addressing that deployment without changing its endpoint or deployment-name configuration.^1^

    1. Check the deployment type and current version
      • In the Foundry portal, open the deployment and select Details.
      • Record its deployment name, model version, deployment type, capacity, and version-update policy.^2^
    2. Test the target version separately first
      • Create a temporary deployment using the target model version.
      • Run representative prompts, structured-output tests, tool calls, safety tests, and load tests against it.
      • Model-version updates can change application behavior even when the API contract remains compatible.^2^
    3. Update the existing deployment For an in-place model-version update, Azure PowerShell can retain the existing deployment name:
         $d = Get-AzCognitiveServicesAccountDeployment `
           -ResourceGroupName "<resource-group>" `
           -AccountName "<account-name>" `
           -Name "<deployment-name>"
      
         $d.Properties.Model.Version = "<target-version>"
      
         New-AzCognitiveServicesAccountDeployment `
           -ResourceGroupName "<resource-group>" `
           -AccountName "<account-name>" `
           -Name "<deployment-name>" `
           -Properties $d.Properties `
           -Sku $d.Sku
      
      Wait until the deployment’s provisioning state returns to Succeeded, then run smoke tests through the existing application endpoint. The deployment name supplied by the application remains the stable routing identifier.^1^

    If “update” means changing to another model family

    Do not assume every deployment type supports replacing one model family with another in place.

    • Provisioned deployment: Microsoft documents in-place model-family migration through the REST API or Azure CLI. During migration, the provisioning state changes to updating and then returns to succeeded.^1^
    • Standard deployment: The documented update policies apply to versions of the deployed model. The supplied documentation does not establish a general in-place family swap for Standard deployments. Create a second deployment for the new family, validate it, and change the application’s deployment setting during a controlled rollout.
    • Availability varies by region, so the intended target must be offered for that resource and deployment type.^1^

    For a provisioned workload where interruption must be minimized, Microsoft also documents a multi-deployment migration: create a new deployment, move traffic gradually, verify the old deployment has received no requests for 5–10 minutes, and only then remove it.^1^

    Automatic version updates

    For supported Standard deployments, the available policies are:

    • Auto-update to default
    • Upgrade when the current version expires
    • No Auto Upgrade

    With No Auto Upgrade, the deployment stops working after its selected model version is retired. Automatic model updates are supported only for Standard deployment types; provisioned deployments use their documented migration procedures.^1^


    References

    1. Working with models
    2. Azure OpenAI in Azure AI Foundry Models model versions
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.