Description:
Running azd up directly will fail during the container service deployment phase, displaying an error message indicating that the container registry endpoint cannot be determined.
However, if the process is broken down into two steps: first running azd provision, then running azd deploy, the deployment will succeed.

Steps to Reproduce:
- Initialize the project:
azd init --template Azure-Samples/ai-foundry-starter-basic.
- Initialize AI agent:
azd ai agent init -m https://github.com/microsoft-foundry/foundry-samples/blob/main/samples/python/hosted-agents/langgraph/calculator-agent/agent.yaml and select location southcentralus.
- Run
azd up.
Environment:
Expected Behavior:
azd up can be run successfully directly.
@JeffreyCA and @rajeshkamal5050 for notification.