# Connect azure

**URL:** <https://discuss.elastic.co/t/connect-azure/308058>\
**Category:** Elasticsearch\
**Tags:** snapshot-and-restore\
**Created:** [June 23, 2022, 9:37pm UTC](https://discuss.elastic.co/t/connect-azure/308058 "2022-06-23T21:37:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![A\_j\_xx](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/a_j_xx/32/98491_2.png) [@A\_j\_xx](https://discuss.elastic.co/u/A_j_xx)\
**Post date:** [June 23, 2022, 9:37pm UTC](https://discuss.elastic.co/t/connect-azure/308058/1 "2022-06-23T21:37:50Z")

</div>

Hi all ,  
Is there a way to add azure account to snapshot repository from kibana console  
I tried this query but it turns out it does not work

```auto
PUT /_snapshot/repo_with_features
{
  "type": "azure",
  "settings": {
     "account": "xxx",
    "key": "xxx",
    "container": "armorbackup",
    "chunk_size": "32MB",
    "compress": true
  }
}

```

This error keeps on showing up :

```auto
{
  "error" : {
    "root_cause" : [
      {
        "type" : "repository_exception",
        "reason" : "[repo_with_features] Could not determine repository generation from root blobs"
      }
    ],
    "type" : "repository_exception",
    "reason" : "[repo_with_features] Could not determine repository generation from root blobs",
    "caused_by" : {
      "type" : "i_o_exception",
      "reason" : "Unable to list blobs by prefix [index-] for path ",
      "caused_by" : {
        "type" : "settings_exception",
        "reason" : "Unable to find client with name [ajasra]"
      }
    }
  },
  "status" : 500
}

```

I have check all my access keys and account , its working fine when i am adding my azure account by adding my keys with elastic-keystore but not like this  
And is there a way to do this without running the default commands to first add azure account with elastic keystore then setup my repository  
Is there a way to add azure account on the fly via ansible as well ??  
Would be a great help !!  
Hoping to get a early reply  
Thanks !

---

<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:** [July 21, 2022, 9:38pm UTC](https://discuss.elastic.co/t/connect-azure/308058/2 "2022-07-21T21:38:34Z")

</div>

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