private static GeolocationClient buildGeoLocationClient(final CasConfigurationProperties casProperties,
                                                            final Object keyCredential) {
        val azure = casProperties.getGeoLocation().getAzure();
        val resolver = SpringExpressionLanguageValueResolver.getInstance();
        val builder = new GeolocationClientBuilder();
        if (keyCredential instanceof final AzureKeyCredential azkc) {
            builder.credential(azkc);
        } else {
            builder.credential((TokenCredential) keyCredential);
        }
        return builder.clientId(resolver.resolve(azure.getClientId())).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