Skip to content

Derive globally unique Azure resource names in the Azure Recipe Pack - #284

Open
AzureMike wants to merge 2 commits into
mainfrom
azuremike/azure-globally-unique-names
Open

Derive globally unique Azure resource names in the Azure Recipe Pack#284
AzureMike wants to merge 2 commits into
mainfrom
azuremike/azure-globally-unique-names

Conversation

@AzureMike

Copy link
Copy Markdown
Contributor

Summary

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.

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

  • Compiled the Azure Recipe Pack with the Radius Bicep extension.
  • Confirmed all generated names meet the affected Azure services' character and length limits.

Depends on radius-project/radius#12616, which adds the context.azure.resourceNameHash expression this pack relies on.

Fixes radius-project/ai-extensions#128

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>
@AzureMike
AzureMike requested review from a team as code owners August 4, 2026 20:57
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

Comment thread docs/contributing/contributing-resource-types-recipes.md Outdated
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants