# Create a repository failed

**URL:** https://discuss.elastic.co/t/create-a-repository-failed/86150
**Category:** Elasticsearch
**Created:** [May 17, 2017, 5:22pm UTC](https://discuss.elastic.co/t/create-a-repository-failed/86150 "2017-05-17T17:22:04Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![swu](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@swu](https://discuss.elastic.co/u/swu)
#### Post date: [May 17, 2017, 5:22pm UTC](https://discuss.elastic.co/t/create-a-repository-failed/86150/1 "2017-05-17T17:22:04Z")

</div>

i am trying to create repository:

```auto
PUT _snapshot/backup
{
  "type" : "azure"
}

```

but get the following error:

```auto
{
  "error": {
    "root_cause": [
      {
        "type": "settings_exception",
        "reason": "Failed to get setting group for [] setting prefix and setting [account] because of a missing '.'"
      }
    ],
    "type": "repository_exception",
    "reason": "[backup] failed to create repository",
    "caused_by": {
      "type": "settings_exception",
      "reason": "Failed to get setting group for [] setting prefix and setting [account] because of a missing '.'"
    }
  },
  "status": 500
}

```

FYI,in elasticsearch.yml config file, i put

```auto
cloud:
   azure:
        storage:
                account: XXXXXXX
                key: XXXX

```

do i miss some setting in elasticsearch?

thanks a lot!

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [May 17, 2017, 9:37pm UTC](https://discuss.elastic.co/t/create-a-repository-failed/86150/2 "2017-05-17T21:37:16Z")

</div>

Please format your code using `</>` icon as explained in [this guide](https://discuss.elastic.co/t/about-the-elasticsearch-category/21). It will make your post more readable.

Or use markdown style like:

````
```
CODE
```

````

I updated your question.

I guess you are using a recent version, right?

It should be:

```auto
cloud:
   azure:
        storage:
            my_account:
                account: XXXXXXX
                key: XXXX

```

---

<div class="post-metadata">

### Author: ![casieowen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/casieowen/32/8734_2.png) [@casieowen](https://discuss.elastic.co/u/casieowen)
#### Post date: [May 18, 2017, 4:14pm UTC](https://discuss.elastic.co/t/create-a-repository-failed/86150/3 "2017-05-18T16:14:58Z")

</div>

Thanks dadoonet, we discovered the "my\_account:" change last night and that did indeed resolve the issue. The last version we created repositories on was 1.7.2, and "my\_account:" was not part of the syntax in that version.

---

<div class="post-metadata">

### Author: ![swu](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@swu](https://discuss.elastic.co/u/swu)
#### Post date: [May 18, 2017, 4:45pm UTC](https://discuss.elastic.co/t/create-a-repository-failed/86150/4 "2017-05-18T16:45:25Z")

</div>

Thanks for updating my question, dadoonet. i will make sure that my future post be more readable.

Before, i thought only when you define more than one account, you need put "my\_account:" there. Nice to learn. thanks dadoonet!([https://www.elastic.co/guide/en/elasticsearch/plugins/5.4/repository-azure-usage.html](https://www.elastic.co/guide/en/elasticsearch/plugins/5.4/repository-azure-usage.html))

it works well. thanks both of your help, dadoonet and Casie!

---

<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: [June 15, 2017, 4:45pm UTC](https://discuss.elastic.co/t/create-a-repository-failed/86150/5 "2017-06-15T16:45:27Z")

</div>

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