Skip to content

Conversation

@xavierjohn
Copy link
Owner

@xavierjohn xavierjohn commented Aug 14, 2025

Modifying naming conventions to optimize resource organization for teams hosting multiple microservices in one Azure subscription.

    // Region specific resources.
    // Example: App Service, Key Vault, Managed Identity. etc.
    public static string GetResourceName(this EnvironmentOptions settings, string resourceType) =>
        $"{settings.Environment}-{settings.RegionShortName}-{settings.ServiceName}-{resourceType}".ToLowerInvariant();

    // Shared resources.
    // Example: Storage Account, Cosmos DB, SQL etc.
    public static string GetResourceNameShared(this EnvironmentOptions settings, string resourceType) =>
        $"{settings.Environment}-{settings.ServiceName}-{resourceType}".ToLowerInvariant();

…ams hosting multiple microservices in one Azure subscription.
@xavierjohn xavierjohn merged commit eb137e9 into main Aug 14, 2025
1 check passed
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