> For the complete documentation index, see [llms.txt](https://ploegert.gitbook.io/til/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ploegert.gitbook.io/til/tools/hashicorp-vault-consul/install-vault-consul/setups-azure-hosted-consul.md).

# Setups Azure Hosted Consul

### Activating consul in Azure

```
# ensure you have the latest az cli: https://aka.ms/installazurecliwindows


# add the hashicorp extension:
az extension add --source https://releases.hashicorp.com/hcs/0.2.0/hcs-0.2.0-py2.py3-none-any.whl


# Get config    
$rg = "core-rg" 
$name = "appdcorehashi"

az hcs get-config --resource-group $rg --name $name

# check config:
cat consul.json

# bootstrap acl system
az hcs create-token --resource-group $rg --name $name
        Command group 'hcs' is in preview. It may be changed/removed in a future release.
        {
        "masterToken": {
            "accessorId": "95940b0b-afb4-8d0b-1f66-5a4463f72954",
            "secretId": "SOMEPASS"
        }
        }
```
