# Restore azure snapshot to other cluster

**URL:** <https://discuss.elastic.co/t/restore-azure-snapshot-to-other-cluster/148659>\
**Category:** Elasticsearch\
**Created:** [September 14, 2018, 5:20pm UTC](https://discuss.elastic.co/t/restore-azure-snapshot-to-other-cluster/148659 "2018-09-14T17:20:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![KeninHouston](https://avatars.discourse-cdn.com/v4/letter/k/54ee81/32.png) [@KeninHouston](https://discuss.elastic.co/u/KeninHouston)\
**Post date:** [September 14, 2018, 5:20pm UTC](https://discuss.elastic.co/t/restore-azure-snapshot-to-other-cluster/148659/1 "2018-09-14T17:20:23Z")

</div>

Hi,

I have successfully taken snapshots to an Azure blob from the primary cluster. On the secondary cluster, I have installed the Azure plugin and also set

/usr/share/elasticsearch/bin/elasticsearch-keystore add azure.client.default.account

/usr/share/elasticsearch/bin/elasticsearch-keystore add azure.client.default.key

to the same values as I used in the primary cluster.

When I try and setup the snapshot repository on the secondary cluster, I get the following error:

curl -k -XPUT -u elastic: '[https://hostname:9200/\_snapshot/prod\_backup](https://hostname:9200/_snapshot/prod_backup)' -H 'Content-Type: application/json' -d'  
{  
"type": "azure",  
"settings": {  
"container": "snapshots",  
"location\_mode" : "secondary\_only"  
}  
}'

{"error":{"root\_cause":[{"type":"repository\_exception","reason":"[prod\_backup] failed to create repository"}],"type":"repository\_exception","reason":"[prod\_backup] failed to create repository","caused\_by":{"type":"illegal\_argument\_exception","reason":"If you want to use an azure repository, you need to define a client configuration."}},"status":500}[owa\_admin@admin ~]$  
[owa\_admin@admin ~]$

Have I misunderstood something? It's telling me that I need to setup my client configuration, but I have specified the account and key in Azure successfully. The primary clusters repository is there in Azure. I just need to connect to it and then restore from it but the secondary cluster doesn't have any repositories defined

Any suggestions accepted

---

<div class="post-metadata">

**Author:** ![KeninHouston](https://avatars.discourse-cdn.com/v4/letter/k/54ee81/32.png) [@KeninHouston](https://discuss.elastic.co/u/KeninHouston)\
**Post date:** [September 14, 2018, 5:27pm UTC](https://discuss.elastic.co/t/restore-azure-snapshot-to-other-cluster/148659/2 "2018-09-14T17:27:45Z")

</div>

Got it guys, just forgot to reboot the cluster to pick up the values.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 12, 2018, 5:27pm UTC](https://discuss.elastic.co/t/restore-azure-snapshot-to-other-cluster/148659/3 "2018-10-12T17:27:50Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
