# Azure Elastic Search Plugins

**URL:** <https://discuss.elastic.co/t/azure-elastic-search-plugins/208978>\
**Category:** Elasticsearch\
**Created:** [November 21, 2019, 8:37pm UTC](https://discuss.elastic.co/t/azure-elastic-search-plugins/208978 "2019-11-21T20:37:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmitry.cherkas](https://avatars.discourse-cdn.com/v4/letter/d/ad7895/32.png) [@dmitry.cherkas](https://discuss.elastic.co/u/dmitry.cherkas)\
**Post date:** [November 21, 2019, 8:37pm UTC](https://discuss.elastic.co/t/azure-elastic-search-plugins/208978/1 "2019-11-21T20:37:02Z")

</div>

Hello,

Could you please help me with next issue?

I installed ES from Azure Market Place. I'm trying to configure Azure Repository plugin to manage snapshots using next command:

sudo bin/elasticsearch-plugin install repository-azure

But I'm getting issue that bin/elasticsearch-plugin command is not found. I've checked that this ES installment doesn't provide elasticsearch-plugin in bin directory.

Could you please advise how to resolve that issue?

---

<div class="post-metadata">

**Author:** ![forloop](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/forloop/32/9021_2.png) [@forloop](https://discuss.elastic.co/u/forloop)\
**Post date:** [November 24, 2019, 11:24pm UTC](https://discuss.elastic.co/t/azure-elastic-search-plugins/208978/2 "2019-11-24T23:24:04Z")

</div>

Elasticsearch from the Azure Marketplace uses the [Debian package to install Elasticsearch](https://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html). To install the repository-azure plugin would need to use the following command on each Elasticsearch node:

```bash
sudo /usr/share/elasticsearch/bin/elasticsearch-plugin install repository-azure

```

Perhaps even easier however, is that you can [install the ARM template with the repository-azure plugin included, from Elastic's GitHub repository](https://www.elastic.co/guide/en/elastic-stack-deploy/current/index.html). A simple install might look like the following with Azure CLI 2.0 (change argument values to ones that make sense for you 😄)

```python
az login

az account set --subscription "<subscription id>"

#create the resource group for a storage account
az group create --name "<storage rg>" --location "<location>"

# create the storage account for snapshots
az storage account create -n "<storage name>" -g "<storage rg>" -l "<location>" --sku Standard_LRS

# create the resource group for Elastic stack
az group create --name "<name>" --location "<location>"

template_base_uri=https://raw.githubusercontent.com/elastic/azure-marketplace
template_version=7.4.0

# deploy Elastic stack
az group deployment create \
  --resource-group "<name>" \
  --template-uri $template_base_uri/$template_version/src/mainTemplate.json \
  --parameters _artifactsLocation=$template_base_uri/$template_version/src/ \
               esVersion=7.4.0 esClusterName=elasticsearch \
               vmDataDiskCount=1 dataNodesAreMasterEligible=Yes \
               adminUsername=russ adminPassword=Password1234 \
               securityBootstrapPassword=bootstrapPassword123 \
               securityAdminPassword=adminPassword123 \
               securityKibanaPassword=kibanaPassword123 \
               securityLogstashPassword=logstashPassword123 \
               securityBeatsPassword=beatsPassword123 \
               securityApmPassword=apmPassword123 \
               securityRemoteMonitoringPassword=remoteMonitoringPassword123 \
               azureCloudPlugin=Yes azureCloudStorageAccountName="<storage name>" \
               azureCloudStorageAccountResourceGroup="<storage rg>" 
              

```

This is the same underlying ARM template as used by the Azure Marketplace, and I would recommend doing this, once you've had a chance to try Elasticsearch from the Azure Marketplace. Doing so means you can have repeatable deployments from the repository,when targeting a specific tagged release, as well as the ARM template exposing more features than are available in the Marketplace, which is intentionally simpler.

---

<div class="post-metadata">

**Author:** ![dmitry.cherkas](https://avatars.discourse-cdn.com/v4/letter/d/ad7895/32.png) [@dmitry.cherkas](https://discuss.elastic.co/u/dmitry.cherkas)\
**Post date:** [November 25, 2019, 11:53pm UTC](https://discuss.elastic.co/t/azure-elastic-search-plugins/208978/3 "2019-11-25T23:53:08Z")

</div>

Thank you so much! It resolved my issue!

---

<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:** [December 23, 2019, 11:53pm UTC](https://discuss.elastic.co/t/azure-elastic-search-plugins/208978/4 "2019-12-23T23:53:10Z")

</div>

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