github.com/loicalbertin/terraform@v0.6.15-0.20170626182346-8e2583055467/website/docs/backends/types/azure.html.md (about) 1 --- 2 layout: "backend-types" 3 page_title: "Backend Type: azure" 4 sidebar_current: "docs-backends-types-standard-azure" 5 description: |- 6 Terraform can store state remotely in Azure Storage. 7 --- 8 9 # azure 10 11 **Kind: Standard (with no locking)** 12 13 Stores the state as a given key in a given bucket on [Microsoft Azure Storage](https://azure.microsoft.com/en-us/documentation/articles/storage-introduction/). 14 15 ## Example Configuration 16 17 ```hcl 18 terraform { 19 backend "azure" { 20 storage_account_name = "abcd1234" 21 container_name = "tfstate" 22 key = "prod.terraform.tfstate" 23 } 24 } 25 ``` 26 27 Note that for the access credentials we recommend using a 28 [partial configuration](/docs/backends/config.html). 29 30 ## Example Referencing 31 32 ```hcl 33 data "terraform_remote_state" "foo" { 34 backend = "azure" 35 config { 36 storage_account_name = "terraform123abc" 37 container_name = "terraform-state" 38 key = "prod.terraform.tfstate" 39 } 40 } 41 ``` 42 43 ## Configuration variables 44 45 The following configuration options are supported: 46 47 * `storage_account_name` - (Required) The name of the storage account 48 * `container_name` - (Required) The name of the container to use within the storage account 49 * `key` - (Required) The key where to place/look for state file inside the container 50 * `access_key` / `ARM_ACCESS_KEY` - (Required) Storage account access key 51 * `lease_id` / `ARM_LEASE_ID` - (Optional) If set, will be used when writing to storage blob. 52 * `environment` / `ARM_ENVIRONMENT` - (Optional) The cloud environment to use. Supported values are: 53 * `public` (default) 54 * `usgovernment` 55 * `german` 56 * `china`