feat: per-host azure.yaml schemas and service targets for Foundry AI resources#8781
Merged
huimiu merged 4 commits intoJun 23, 2026
Merged
Conversation
fb0b1bf
into
hui/foundry-agent-shape-migration
50 of 77 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds per-host JSON schemas, service-level config writing, and full
azd deploysupport for five Foundry AI resource hosts in azure.yaml:azure.ai.project,azure.ai.connection,azure.ai.toolbox,azure.ai.skill, andazure.ai.routine.What changed
Per-host schemas
Each Foundry resource host now has its own JSON schema (
azure.ai.project.json,azure.ai.connection.json,azure.ai.toolbox.json,azure.ai.skill.json,azure.ai.routine.json) describing the properties that can appear inline on the service in azure.yaml. Bothschemas/v1.0/azure.yaml.jsonandschemas/alpha/azure.yaml.jsonhave five newif/thenconditionals — one per host — that compose these schemas into the core azure.yaml shape. Each Foundry host conditional also disables theconfig,project,runtime,docker, andimagefields, which do not apply to AI resources.Service-level config writing (
azure.ai.agents)resource_services.gonow writes project, connection, and toolbox entries usingAdditionalProperties(service-level inline) instead of the nestedconfig:block. Readers preferAdditionalPropertiesand fall back toConfigfor files written by earlier versions.azure.ai.skillservice targetazure.ai.skillsnow registers a service target provider.azd deployreadsinstructions,description, andallowed_toolsfrom the service entry and callsCreateVersionInline, setting that version as the default. The skill name is taken from the azure.yaml service name.azure.ai.routineservice targetazure.ai.routinesnow registers a service target provider.azd deploybinds the service-level properties directly to the routine API model (triggers,actions,tools,description) and callsPutRoutinefor a full upsert. The routine name is taken from the azure.yaml service name.Testing