Currently we only support adding an endpoint suffix for azure repositories. This is not enough when a custom Azure DNS  zone is used since the URI that's created using an endpoint suffix is incorrect.
```java
primaryUri = new URI(protocol + "://" + accountName + "." + service + "." + endpointSuffix);
``` 

We should add the ability to provide a custom endpoint to cover this situations.
modules/repository-azure/src/main/java/org/elasticsearch/repositories/azure/AzureStorageSettings.java
);
        }
    }
    private static <T> T getConfigValue(Settings settings, String clientName, Setting.AffixSetting<T> clientSetting) {
        final Setting<T> concreteSetting = clientSetting.getConcreteSettingForNamespace(clientName);
        return concreteSetting.get(settings);
    }
    private static <T> T getValue(Settings settings, String groupName, Setting<T> setting) {
        final Setting.AffixKey k = (Setting.AffixKey) setting.getRawKey();
        final String fullKey = k.toConcreteKey(groupName).toString();
        return setting.getConcreteSetting(fullKey).get(settings);
    }
    private static final String BLOB_ENDPOINT_NAME = "BlobEndpoint";
    private static final String BLOB_SECONDARY_ENDPOINT_NAME = "BlobSecondaryEndpoint";
    record StorageEndpoint(String primaryURI, @Nullable String secondaryURI) {}
    StorageEndpoint getStorageEndpoint() {
        String primaryURI = getProperty(BLOB_ENDPOINT_NAME);
        String secondaryURI = getProperty(BLOB_SECONDARY_ENDPOINT_NAME);
        if (primaryURI != null) {
            return new StorageEndpoint(primaryURI, secondaryURI);
        }
        return new StorageEndpoint(deriveURIFromSettings(true), deriveURIFromSettings(false));
    }
    /**
     * Returns the value for the given property name, or null if not configured.
     * @throws IllegalArgumentException if the connectionString is malformed
     */
    private String getProperty(String propertyName) {
        final String[] settings = getConnectString().split(";");
        for (int i = 0; i < settings.length; i++) {