Re-host an Existing Agent from other platforms
Step 1: Collect information
Resolve two independent choices before initialization or edits:
- Model -- keep the existing model or use a Foundry model.
- Agent framework -- keep the existing framework or migrate it.
Infer these choices from the user's request and current code. Ask only for information that remains unclear; skip questions when the intent is explicit or evident, such as an existing Foundry model integration. Do not switch or deploy a model, or migrate the framework, without user intent.
Step 2: Initialize and adapt
To scaffold a Foundry agent project with existing agent codes, run:
bash
azd ai agent init --no-prompt \
--src ./src/my-agent \
--agent-name my-agent \
--deploy-mode code \
--runtime python_3_13 \