Microsoft Azure AI Engineer Associate AI-102 Practice Question
You manage an Azure AI Foundry Agent Service project whose endpoint URL is stored in the AZURE_AI_FOUNDRY_PROJECT_ENDPOINT environment variable. Before adding knowledge sources and tools, you need to register a new agent named hr-helper. Using the Azure CLI, which command should you run to create the agent definition in the project?
az rest --method post --resource https://ai.azure.com/ --url "$AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/assistants?api-version=2025-05-01" --body @agent.json
az cognitiveservices agent create --resource-group rg1 --name hr-helper
The az rest command sends an authenticated POST request directly to the /assistants endpoint of the project, creating the logical agent container. The --method post switch issues the creation call, --resource specifies the Azure AI audience for the token, --url targets the project endpoint plus the assistants path, and --body passes the agent configuration (for example, agent.json). The other commands either merely obtain a token, deploy unrelated resources, or update infrastructure and do not create an agent.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the purpose of the az rest command in the context of Azure CLI?
Open an interactive chat with Bash
What does the AZURE_AI_FOUNDRY_PROJECT_ENDPOINT environment variable represent?
Open an interactive chat with Bash
Why can’t alternative commands, like az cognitiveservices agent create, be used to create the agent?
Open an interactive chat with Bash
Microsoft Azure AI Engineer Associate AI-102
Implement an agentic solution
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .