Repository navigation
fix: make Bicep CMK specification examples cloud-aware - #3159
Merged
Alexander Sehr (AlexanderSehr) merged 2 commits intoNov 22, 2026
Merged
Alexander Sehr (AlexanderSehr) merged 2 commits into
Alexander Sehr (AlexanderSehr) merged 2 commits into
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Alexander Sehr (AlexanderSehr)
approved these changes
Nov 22, 2026
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.
Overview/Summary
Make both Bicep customer-managed-key specification examples recognize Managed HSM resource IDs regardless of capitalization and derive HSM endpoints from the deployment's Azure environment rather than hardcoding public Azure.
Requested by Alexander Sehr (@AlexanderSehr) in this review comment on Azure/bicep-registry-modules#7528.
cc: Erika Gressi (@eriqua)
This PR fixes/adds/changes/removes
environment().suffixes.keyvaultDnsand reuses the resulting vault URI for versioned and versionless key identifiers.Breaking Changes
Local validation: Bicep
0.49.2.45890.bicep build schema1.materialized.bicep --outfile schema1.materialized.json- passed.bicep build schema2.materialized.bicep --outfile schema2.materialized.json- passed.bicep build-params schema1-public-managedhsms.bicepparam --outfile schema1-public-managedhsms.json- passed.bicep build-params schema2-hsm-without-version.bicepparam --outfile schema2-hsm-without-version.json- passed.git diff --check- passed.The specification includes contain placeholders, so compilation used temporary materialized copies: a concrete common-types import, a declared
managedIdentitiesinput, and an output in place of the example resource. Offline cases evaluated expressions extracted from the edited files, with environment and existing-key metadata supplied as test inputs. These temporary validation files are not included in this PR. No Azure deployments were run.The full Hugo site build was not run locally because Hugo is unavailable. GitHub PR checks remain pending.
As part of this Pull Request I have
mainbranch