Repository navigation
[docs] Document Bicep parameter expressions for enum-valued SKU properties - #1859
Draft
aspire-repo-bot[bot] wants to merge 1 commit into
Draft
aspire-repo-bot[bot] wants to merge 1 commit into
aspire-repo-bot[bot] wants to merge 1 commit into
Conversation
…ties Documents the fix in microsoft/aspire#20557 that allows TypeScript AppHosts to assign a bicep().parameter(...) expression to an enum-valued Azure provisioning property (e.g. sku.name) without Aspire mistaking the string-backed expression for an enum literal. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
4 of 14 tasks
Contributor
Author
Frontend HTML artifact readyThe latest frontend build uploaded the This comment updates automatically when a new frontend build artifact is uploaded. |
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.
Documents changes from microsoft/aspire#20557 (
@sebastienros)Target branch
Targeting
release/17.0based on the source PR milestone17.0(exact match onmicrosoft/aspire.dev).Why this is needed
TypeScript AppHosts previously failed with
A value of type String cannot be assigned to a BicepValue<T>whenconfigureInfrastructureassigned abicep().parameter(...)expression to an enum-valued Azure provisioning property, such as a Storage SKU name. The source PR fixesBicepValueProxyso string-backed Bicep expressions can flow into enum-valued properties without being mistaken for literal enum values. The source PR body includes a dedicated "User-facing usage" section with the exact pattern, which is the trigger signal for this docs update (pr_body_has_user_facing_section).The existing "Configure SKUs and tiers" section in [Customize Azure resources]((aspire.dev/redacted) only showed assigning a literal enum value (e.g.
StorageSkuName.StandardGrs) tosku.name. It didn't cover assigning a deployment-time Bicep expression, which previously wasn't supported for enum-valued properties.What changed
Added a new subsection, "Assign a deployment-time expression to an enum-valued property", directly after "Configure SKUs and tiers" in
integrations/cloud/azure/customize-resources.mdx. It:await bicep.parameter(storageSku)tosku.nameon a Storage account, mirroring the source PR's usage sample.Files modified
src/frontend/src/content/docs/integrations/cloud/azure/customize-resources.mdx(updated, 24 lines added)No new pages were created; this is an addition to an existing, actively maintained page.
Validation
Documentation-only change (new prose and a TypeScript code sample); no site build or test commands were run per the task's guidance that doc-only changes need no validation unless documentation tests exist. The added code sample mirrors the pattern validated by the source PR's own description (CLI build,
aspire publish, andaspire deployruns against Azure Storage).