feat(avm/res/cognitive-services/account): extract deployments child module#7207
Open
dmytroslotvinskyy wants to merge 6 commits into
Open
Conversation
…` for GA partner models (Anthropic Claude) Adds optional `modelProviderData` (`organizationName`, `countryCode`, `industry`) to `deploymentType` and projects it onto `Microsoft.CognitiveServices/accounts/deployments`. This carries the model-provider attestation the Cognitive Services RP requires for GA partner models such as Anthropic Claude (`model.format == 'Anthropic'`); the RP uses it to auto-accept the partner's Azure Marketplace offer. - Bump `accounts/deployments` API version 2025-06-01 -> 2026-05-01 (minimum GA version that accepts `properties.modelProviderData`). BCP081 is expected/suppressed as the version is newer than the current Bicep type catalog; it does not block deployment. - Project `modelProviderData: deployment.?modelProviderData` (null-omitted when absent, same mechanics as `raiPolicyName`/`versionUpgradeOption`); first-party (OpenAI) deployments are unaffected. - Add `ai-model-deployment-anthropic` e2e test. - Bump module version 0.15 -> 0.16; update CHANGELOG, README, main.json. Fixes Azure#7197
Co-authored-by: Erika Gressi <56914614+eriqua@users.noreply.github.com>
…child module Move Microsoft.CognitiveServices/accounts/deployments into a dedicated deployment/main.bicep child module, invoked from the parent account module with @batchsize(1). Export the deployment input type from the child module and import it in the parent. Regenerate main.json and README for parent and child.
|
Important The "Needs: Triage 🔍" label must be removed once the triage process is complete! Tip For additional guidance on how to triage this issue/PR, see the BRM Issue Triage documentation. |
|
Important If this is a module-related PR, being submitted by the sole owner of the module, the AVM core team must review and approve it (as module owners can't approve their own PRs). To indicate this PR needs the core team''s attention, apply the "Needs: Core Team 🧞" label! The core team will only review and approve PRs that have this label applied! |
9 tasks
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.
Description
Extracts the
Microsoft.CognitiveServices/accounts/deploymentschild resource from the inline implementation inaccount/main.bicepinto a dedicated child module:avm/res/cognitive-services/account/deployment/main.bicepThis implements the follow-up requested during the review of #7199 and tracked in #7206.
The parent account module continues to expose the existing
deploymentsparameter and delegates each model deployment to the new child module. This preserves the current public interface and existing consumer behavior.Changes
deployment/main.bicepcontaining theMicrosoft.CognitiveServices/accounts/deploymentsresource.deploymentTypefrom the child module and imported it into the parent module.@batchSize(1)to process model deployments serially.modelProviderDatasupport introduced in feat:avm/res/cognitive-services/accountsupport `modelProviderData… #7199.modelProviderData.main.jsonandREADME.mdfiles usingSet-AVMModule -Recurse.CHANGELOG.md.Dependency
This is a stacked follow-up PR based on the head branch of #7199. It should be rebased and retargeted to
mainafter #7199 is merged.Closes #7206
Pipeline Reference
Type of Change
version.json:version.json.version.json.Checklist
Set-AVMModulelocally to generate the supporting module files.