# How can i able to change the default container name when i am using azure plugin?

**URL:** <https://discuss.elastic.co/t/how-can-i-able-to-change-the-default-container-name-when-i-am-using-azure-plugin/81602>\
**Category:** Elasticsearch\
**Created:** [April 7, 2017, 12:00pm UTC](https://discuss.elastic.co/t/how-can-i-able-to-change-the-default-container-name-when-i-am-using-azure-plugin/81602 "2017-04-07T12:00:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yaswanth](https://avatars.discourse-cdn.com/v4/letter/y/94ad74/32.png) [@Yaswanth](https://discuss.elastic.co/u/Yaswanth)\
**Post date:** [April 7, 2017, 12:00pm UTC](https://discuss.elastic.co/t/how-can-i-able-to-change-the-default-container-name-when-i-am-using-azure-plugin/81602/1 "2017-04-07T12:00:52Z")

</div>

Hi,

I need to send all the daily snapshots to one container and weekly snapshots to another container .  
By default all the snapshots will go to elasticsearch-snapshots container based on below configuration of elasticsearch.yml.

```
cloud:
    azure:
        storage:
            my_account:
                account: my_account
                key: my_key

```

My question is

1. How can change the container name from default(i.e.elasticsearch-snapshots ) to some other name?  
2)And is it possible to define in a elasticsearch.yml file that these snapshots should go to this container and others to these? Something like this:

Even i checked in curator but it has only repository name not container name. I know it can be done at run-time like this:

```
PUT _snapshot/my_backup2
{
    "type": "azure",
    "settings": {
        "container": "backup-container",
        "base_path": "backups",
        "chunk_size": "32m",
        "compress": true
    }
}

```

Since my backups are done using curator so i need these configurations in elasticsearch.yml file.

IS it possible?

Thanks

---

<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:** [April 7, 2017, 1:33pm UTC](https://discuss.elastic.co/t/how-can-i-able-to-change-the-default-container-name-when-i-am-using-azure-plugin/81602/2 "2017-04-07T13:33:54Z")

</div>

Even if it is possible today, it has been removed in 6.0 (and deprecated)

It's per repository. But you can create the repository in advance then use it in curator.

---

<div class="post-metadata">

**Author:** ![Yaswanth](https://avatars.discourse-cdn.com/v4/letter/y/94ad74/32.png) [@Yaswanth](https://discuss.elastic.co/u/Yaswanth)\
**Post date:** [April 7, 2017, 2:52pm UTC](https://discuss.elastic.co/t/how-can-i-able-to-change-the-default-container-name-when-i-am-using-azure-plugin/81602/3 "2017-04-07T14:52:52Z")

</div>

Thanks

> [@dadoonet](#):
>
> Even if it is possible today, it has been removed in 6.0 (and deprecated)

In what it is deprecated whether in azure plugin ?

> [@dadoonet](#):
>
> But you can create the repository in advance then use it in curator

So, this means at the time of creating respository i have to mention the container name like this

```
PUT _snapshot/my_backup2
{
    "type": "azure",
    "settings": {
        "container": "backup-container"
}
}

```

After that using curator i can able to snapshots to container `backup-container`.

Correct me if i am wrong..  
Thanks

---

<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:** [April 7, 2017, 3:14pm UTC](https://discuss.elastic.co/t/how-can-i-able-to-change-the-default-container-name-when-i-am-using-azure-plugin/81602/4 "2017-04-07T15:14:12Z")

</div>

Here is the meta issue:

> <https://github.com/elastic/elasticsearch/issues/22800>
>
> Today we have multiple ways to define settings when a user needs to create a rep…ository:
> 
> \* in \`elasticsearch.yml\` file using \`repositories.xxx\` prefix where \`xxx\` is the implementation name like \`s3\`, \`hdfs\`...
> \* when creating the repository itself with \`PUT \_snaphot/repo\`
> 
> Based on discussion we have on #22762 and on #22301 and also internally, I think we should reduce the overall complexity and completely remove support for global settings like this.
> 
> Actually, the creation of a repository is most of the time a unique manual operation so providing settings at repository creation time does not bring a lot of complexity for the end user.
> 
> And that will simplify \*\*a lot\*\* our code and our tests.
> 
> The plan would be:
> 
> \* Deprecate \`repositories.xxx\` settings in 5.x:
> 
> \- \[x\] Azure plugin (#22856)
> \- \[x\] S3 plugin (#23278)
> 
> \* Remove \`repositories.xxx\` settings in 6.x (master branch):
> 
> \- \[x\] Azure plugin (#23262)
> \- \[\] S3 plugin (#23276 has been closed. It will be done within another PR)
> 
> \* Check other plugins:
> 
> \- \[X\] GCS plugin (not needed as already not supported)
> \- \[X\] HDFS plugin (not needed as already not supported)

> So, this means at the time of creating respository i have to mention the container name like this

Yes

---

<div class="post-metadata">

**Author:** ![Yaswanth](https://avatars.discourse-cdn.com/v4/letter/y/94ad74/32.png) [@Yaswanth](https://discuss.elastic.co/u/Yaswanth)\
**Post date:** [April 7, 2017, 5:28pm UTC](https://discuss.elastic.co/t/how-can-i-able-to-change-the-default-container-name-when-i-am-using-azure-plugin/81602/5 "2017-04-07T17:28:29Z")

</div>

Thanks..  
IT helped

---

<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 5, 2017, 5:30pm UTC](https://discuss.elastic.co/t/how-can-i-able-to-change-the-default-container-name-when-i-am-using-azure-plugin/81602/6 "2017-05-05T17:30:44Z")

</div>

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