2015-06-11 20:27:26 +02:00
|
|
|
---
|
|
|
|
layout: "azure"
|
|
|
|
page_title: "Azure: azure_hosted_service"
|
|
|
|
sidebar_current: "docs-azure-hosted-service"
|
|
|
|
description: |-
|
|
|
|
Creates a new hosted service on Azure with its own .cloudapp.net domain.
|
|
|
|
---
|
|
|
|
|
|
|
|
# azure\_hosted\_service
|
|
|
|
|
|
|
|
Creates a new hosted service on Azure with its own .cloudapp.net domain.
|
|
|
|
|
|
|
|
## Example Usage
|
|
|
|
|
|
|
|
```
|
|
|
|
resource "azure_hosted_service" "terraform-service" {
|
2015-06-26 14:48:01 +02:00
|
|
|
name = "terraform-service"
|
|
|
|
location = "North Europe"
|
2015-06-11 20:27:26 +02:00
|
|
|
ephemeral_contents = false
|
2015-06-26 14:48:01 +02:00
|
|
|
description = "Hosted service created by Terraform."
|
2015-06-11 20:27:26 +02:00
|
|
|
label = "tf-hs-01"
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Argument Reference
|
|
|
|
|
|
|
|
The following arguments are supported:
|
|
|
|
|
|
|
|
* `name` - (Required) The name of the hosted service. Must be unique on Azure.
|
|
|
|
|
|
|
|
* `location` - (Required) The location where the hosted service should be created.
|
2016-01-14 21:55:39 +01:00
|
|
|
For a list of all Azure locations, please consult [this link](https://azure.microsoft.com/en-us/regions/).
|
2015-06-11 20:27:26 +02:00
|
|
|
|
|
|
|
* `ephemeral_contents` - (Required) A boolean value (true|false), specifying
|
|
|
|
whether all the resources present in the hosted hosted service should be
|
|
|
|
destroyed following the hosted service's destruction.
|
|
|
|
|
|
|
|
* `reverse_dns_fqdn` - (Optional) The reverse of the fully qualified domain name
|
|
|
|
for the hosted service.
|
|
|
|
|
|
|
|
* `label` - (Optional) A label to be used for tracking purposes. Must be
|
|
|
|
non-void. Defaults to `Made by Terraform.`.
|
|
|
|
|
|
|
|
* `description` - (Optional) A description for the hosted service.
|
|
|
|
|
|
|
|
## Attributes Reference
|
|
|
|
|
|
|
|
The following attributes are exported:
|
|
|
|
|
|
|
|
* `id` - The hosted service ID. Coincides with the given `name`.
|