Connect azure

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

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 :

{
  "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 !