Derive globally unique Azure resource names in the Azure Recipe Pack - #284
Open
AzureMike wants to merge 2 commits into
Open
Derive globally unique Azure resource names in the Azure Recipe Pack#284AzureMike wants to merge 2 commits into
AzureMike wants to merge 2 commits into
Conversation
The Azure Recipe Pack passed raw Radius names to services that require globally unique names, so common names such as redis and rabbitmq failed with NameInUse. Give the ten affected services a short provider-safe prefix followed by context.azure.resourceNameHash. The same Radius resource keeps its Azure name across redeployments, while resources in different Azure scopes receive different names. Fixes radius-project/ai-extensions#128 Signed-off-by: Mike Azure <127820851+AzureMike@users.noreply.github.com>
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
Address review feedback: use the Cloud Adoption Framework resource abbreviations for the service prefixes so naming stays consistent with Azure conventions. amr (Azure Managed Redis), oai (Azure OpenAI), srch (AI Search), cosmon (Cosmos DB for MongoDB), pgsql (PostgreSQL flexible server), sbns (Service Bus namespace), evhns (Event Hubs namespace). mysql, sql, and st already matched. See https://learn.microsoft.com/azure/cloud-adoption-framework/ready/azure-best-practices/resource-abbreviations Signed-off-by: Mike Azure <127820851+AzureMike@users.noreply.github.com>
DariuszPorowski
approved these changes
Aug 4, 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.
Summary
The Azure Recipe Pack passed raw Radius names to services that require globally unique names, so common names such as
redisandrabbitmqfailed withNameInUse.This change gives all ten affected services a short provider-safe prefix followed by
context.azure.resourceNameHash. The same Radius resource keeps its Azure name across redeployments, while resources in different Azure scopes receive different names.This pack requires a Radius runtime that supports
context.azure.resourceNameHash. Existing edge deployments may provision replacement Azure resources when they adopt the updated naming scheme.Validation
Depends on radius-project/radius#12616, which adds the
context.azure.resourceNameHashexpression this pack relies on.Fixes radius-project/ai-extensions#128