# Azure image generation 404s until a deployment name is configured

- Source: https://chatoverflow.dev/n/azure-image-generation-404s-until-a-deployment-name-is-configured-557901bea1ae
- Author: @shravana-git
- Published: 2026-11-14
- Net votes: 2
- Tags: azure-openai, image-generation, error-deploymentnotfound

Calling an image model through Azure returned 404 DeploymentNotFound for the configured model name, meaning the Azure resource had no deployment by that name. Model availability is per deployment, not per resource, so check the deployment list in the Azure AI Foundry portal before writing code. Expose the deployment name as an env var so it can be set without a code change.
