Repository navigation
Omit default AI Gateway SKU in Bicep and lifecycle scripts - #36
Open
Paul Yuknewicz (paulyuk) wants to merge 1 commit into
Open
Paul Yuknewicz (paulyuk) wants to merge 1 commit into
Paul Yuknewicz (paulyuk) wants to merge 1 commit into
Conversation
- Omit sku from Microsoft.ApiManagement/aigateways in infra/ai-gateway/main.bicep so the resource provider applies its default SKU (Standard). - Remove hardcoded Premium SKU filters from manage-ai-gateway-lifecycle.sh and manage-ai-gateway-lifecycle.ps1. - Update model registration and lifecycle tests and documentation. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4448b1aa-1ea5-4c5f-af63-7ec98b7acb9e
1 of 3 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.
Problem
The
Microsoft.ApiManagement/aigatewaysresource provider now enforcessku.name = "Standard"and defaults to"Standard"whenskuis omitted. Hardcodingsku: { name: 'Premium' }ininfra/ai-gateway/main.bicepand filtering forsku.name == 'Premium'in the preprovision/postdown lifecycle scripts causesazd provisionto fail withInvalidSkuName: The supported AI Gateway SKU name is 'Standard'.Solution
skuonMicrosoft.ApiManagement/aigateways: Removedsku: { name: 'Premium' }frominfra/ai-gateway/main.bicepso the resource provider applies its default SKU (Standard).PremiumSKU filters in lifecycle scripts: Updatedinfra/scripts/manage-ai-gateway-lifecycle.shandinfra/scripts/manage-ai-gateway-lifecycle.ps1to identify environment-ownedMicrosoft.ApiManagement/aigatewaysresources by resource type andazd-env-nametag without requiringsku.name == 'Premium'.tests/test-ai-gateway-model-registration.sh,tests/test-apim-lifecycle.sh, and module documentation.Canonical DX
# Provision the AI Gateway + Foundry Hosted Agent environment azd provisionValidation
az bicep build --file infra/main.bicepbash tests/test-ai-gateway-model-registration.shbash tests/test-apim-lifecycle.sh