# Azure Blob repository snapshot

**URL:** <https://discuss.elastic.co/t/azure-blob-repository-snapshot/179132>\
**Category:** Elastic Cloud Enterprise (ECE)\
**Created:** [April 30, 2019, 5:33pm UTC](https://discuss.elastic.co/t/azure-blob-repository-snapshot/179132 "2019-04-30T17:33:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![afuggetta](https://avatars.discourse-cdn.com/v4/letter/a/71e660/32.png) [@afuggetta](https://discuss.elastic.co/u/afuggetta)\
**Post date:** [April 30, 2019, 5:33pm UTC](https://discuss.elastic.co/t/azure-blob-repository-snapshot/179132/1 "2019-04-30T17:33:14Z")

</div>

Hi All,

I have recently installed ECE and I'm trying to evaluate the snapshot functionality.  
I have everything built on top of Azure so I would like to connect this to an Azure storage account.

I have unsuccessfully tried setting up repository with the `Advanced` option and the following code:

```
{
"type": "Azure",
 "settings": {
 "container": "containerName",
 "client": "storageAccountName"
}
}

```

I haven't been able to find good documentation on how to set this up. Such as how to pass credentials to the container etc...

Any help is much appreciated.

Thanks.

---

<div class="post-metadata">

**Author:** ![Alex\_Piggott](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_piggott/32/11053_2.png) [@Alex\_Piggott](https://discuss.elastic.co/u/Alex_Piggott)\
**Post date:** [April 30, 2019, 6:19pm UTC](https://discuss.elastic.co/t/azure-blob-repository-snapshot/179132/2 "2019-04-30T18:19:23Z")

</div>

These docs should work for ES 5.x and 6.x: [https://www.elastic.co/guide/en/cloud-enterprise/current/ece-configure-azure-snapshotting.html](https://www.elastic.co/guide/en/cloud-enterprise/current/ece-configure-azure-snapshotting.html)

For 7.x we haven't updated the docs yet but the only difference should be that you'd use the keystore UI (from the ECE overview page to the cluster) to the credentials: [https://www.elastic.co/guide/en/elasticsearch/plugins/7.0/repository-azure-usage.html](https://www.elastic.co/guide/en/elasticsearch/plugins/7.0/repository-azure-usage.html)

Alex

---

<div class="post-metadata">

**Author:** ![afuggetta](https://avatars.discourse-cdn.com/v4/letter/a/71e660/32.png) [@afuggetta](https://discuss.elastic.co/u/afuggetta)\
**Post date:** [April 30, 2019, 8:46pm UTC](https://discuss.elastic.co/t/azure-blob-repository-snapshot/179132/3 "2019-04-30T20:46:44Z")

</div>

Thanks @Alex_Piggott.

It's not very intuitive for somebody like me that hasn't used this before.

It's working now, what I had to do for my ES7 cluster:

- Add azure.client.default.account with the name of the storage account
- Add azure.client.default.key with the storage account key
- Restart the cluster so that settings can take effect
- Create a new repository in the main " **Platform** -\> **Repositories**" menu
- Go back into the cluster and set the Snapshots from its menu

Hopefully the docs will improve with time. But thanks for the prompt reply!

Andrea

---

<div class="post-metadata">

**Author:** ![Alex\_Piggott](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_piggott/32/11053_2.png) [@Alex\_Piggott](https://discuss.elastic.co/u/Alex_Piggott)\
**Post date:** [April 30, 2019, 9:06pm UTC](https://discuss.elastic.co/t/azure-blob-repository-snapshot/179132/4 "2019-04-30T21:06:20Z")

</div>

Glad you got it working - we definitely agree it's not very intuitive at the moment.

In addition to fixing the docs, we do have plans to improve the actual snapshot configuration user experience (back to the point where you can just select the repo from the dropdown)

(_Note: one alternative to using Azure directly is to use `minio` as an S3-Azure gateway, since the S3 repo plugin is better supported in ECE (because ES lets you put the credentials in the repo metadata, unlike for GCP and Azure)_)

---

<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:** [May 14, 2019, 9:18pm UTC](https://discuss.elastic.co/t/azure-blob-repository-snapshot/179132/5 "2019-05-14T21:18:59Z")

</div>

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