private static Object buildAzureCredentials(final CasConfigurationProperties casProperties) {
        val azure = casProperties.getGeoLocation().getAzure();
        val resolver = SpringExpressionLanguageValueResolver.getInstance();
        return StringUtils.isNotBlank(azure.getApiKey())
            ? new AzureKeyCredential(resolver.resolve(azure.getApiKey()))
            : new DefaultAzureCredentialBuilder()
            .tenantId(resolver.resolve(azure.getTenantId()))
            .managedIdentityClientId(resolver.resolve(azure.getClientId()))
            .build();
    }
This is {@link AzureMapsGeoLocationService} that reads geo data
from Azure.

@author Misagh Moayyed
@since 7.0.0
support/cas-server-support-geolocation-azure/src/main/java/org/apereo/cas/support/geo/azure/AzureMapsGeoLocationService.java