Skip to content

Commit

Permalink
VMSS: Updating the code samples to be valid. Fixes #1539 (#1549)
Browse files Browse the repository at this point in the history
  • Loading branch information
tombuildsstuff authored Jul 12, 2018
1 parent a08bfd1 commit 60eb5ba
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions website/docs/r/virtual_machine_scale_set.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -301,10 +301,12 @@ resource "azurerm_virtual_machine_scale_set" "test" {
type_handler_version = "1.0"
settings = "{\"port\": 50342}"
}
# ...
}
output "principal_id" {
value = "${lookup(azurerm_virtual_machine.test.identity[0], "principal_id")}"
}
output "principal_id" {
value = "${lookup(azurerm_virtual_machine_scale_set.test.identity[0], "principal_id")}"
}
```

`os_profile` supports the following:
Expand Down Expand Up @@ -435,21 +437,21 @@ machine scale set, as in the [example below](#example-of-storage_profile_image_r
## Example of storage_profile_image_reference with id

```hcl
resource "azurerm_image" "test" {
name = "test"
...
# ...
}
resource "azurerm_virtual_machine_scale_set" "test" {
name = "test"
...
# ...
storage_profile_image_reference {
id = "${azurerm_image.test.id}"
}
...
# ...
}
```

## Attributes Reference
Expand Down

0 comments on commit 60eb5ba

Please sign in to comment.