Trying to create backup repository for snapshots in Elasticsearch 6.5.2. But I am getting Internal server error(500) when executing the curl below. The error message is {"type":"unknown_host_exception","reason":"{{storage-account-name}}.blob.core.windows.net"}
I checked multiple times and this storage account exists in azure, as well as the container and the key matches. The storage account lives inside a different resource group than the resource group of the elasticsearch cluster. However, I do not think this is the issue.
curl -X PUT http://{{address}}/_snapshot/{{repo-name}} \
-H 'Content-Type: application/json;charset=UTF-8' -v \
-d '{
"type": "azure",
"settings": {
"container": "{{container-name}}",
"chunk_size": "32m",
"compress": true
}
}'
My elasticsearch.yml has the following configuration:
cloud.azure.storage.timeout: 10s
azure.client.default.max_retries: 7
azure.client.default.endpoint_suffix: {{azure-cloud}}
cloud:
azure:
storage:
{{container-name}}:
account: {{storage-account-name}}
key:{{storage-account-key}}