private static MapsSearchClient buildMapSearchClient(final CasConfigurationProperties casProperties,
                                                         final Object keyCredential) {
        val azure = casProperties.getGeoLocation().getAzure();
        val resolver = SpringExpressionLanguageValueResolver.getInstance();
        val builder = new MapsSearchClientBuilder();
        if (keyCredential instanceof final AzureKeyCredential azkc) {
            builder.credential(azkc);
        } else {
            builder.credential((TokenCredential) keyCredential);
        }
        return builder
            .mapsClientId(resolver.resolve(azure.getClientId()))
            .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BODY_AND_HEADERS))
            .buildClient();
    }
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