Issue Description

The Azure Blob Storage configuration correctly injects the connection string, but fails to resolve the container name. Instead of retrieving the expected value from the environment variable (e.g., mdfinfra-ms-container), it prints the literal string $(AZURE_STORAGE_TIME_REGISTRATION_CONTAINER_NAME).

Observed Logs


2025-03-11 19:41:16 [main] INFO  c.s.m.c.c.AzureBlobStorageConfig - SUCCESS: Azure Storage container name loaded: $(AZURE_STORAGE_TIME_REGISTRATION_CONTAINER_NAME)

This indicates that the placeholder $(AZURE_STORAGE_TIME_REGISTRATION_CONTAINER_NAME) is not being replaced with its actual value.


Root Cause Analysis

  1. Spring Boot Property Resolution Issue
  2. Use of Shell-style Variable Notation ($()) Instead of Spring Property Syntax (${})
  3. Missing Environment Variable in Spring Context

**Solution:

As can be seen, this was really the solution:**

So, was this a troubleshoot case worthy?

Not really, but always good to also document human errors that can occur 😎