Skip to content

Commit

Permalink
Documenting the Application Security Group resource
Browse files Browse the repository at this point in the history
  • Loading branch information
tombuildsstuff committed Feb 28, 2018
1 parent e858aa0 commit 2ef927e
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
4 changes: 4 additions & 0 deletions website/azurerm.erb
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,10 @@
<a href="/docs/providers/azurerm/r/application_gateway.html">azurerm_application_gateway</a>
</li>

<li<%= sidebar_current("docs-azurerm-resource-network-application-security-group") %>>
<a href="/docs/providers/azurerm/r/application_security_group.html">azurerm_application_security_group</a>
</li>

<li<%= sidebar_current("docs-azurerm-resource-network-express-route-circuit") %>>
<a href="/docs/providers/azurerm/r/express_route_circuit.html">azurerm_express_route_circuit</a>
</li>
Expand Down
57 changes: 57 additions & 0 deletions website/docs/r/application_security_group.html.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
---
layout: "azurerm"
page_title: "Azure Resource Manager: azurerm_application_security_group"
sidebar_current: "docs-azurerm-resource-network-application-security-group"
description: |-
Create an Application Security Group.
---

# azurerm_application_security_group

Create an Application Security Group.

-> **Note:** Application Security Groups are currently in Public Preview on an opt-in basis. [More information, including how you can register for the Preview, and which regions Application Security Groups are available in are available here](https://docs.microsoft.com/en-us/azure/virtual-network/create-network-security-group-preview)

## Example Usage

```hcl
resource "azurerm_resource_group" "test" {
name = "tf-test"
location = "West Europe"
}
resource "azurerm_application_security_group" "test" {
name = "tf-appsecuritygroup"
location = "${azurerm_resource_group.test.location}"
resource_group_name = "${azurerm_resource_group.test.name}"
tags {
"Hello" = "World"
}
}
```

## Argument Reference

The following arguments are supported:

* `name` - (Required) Specifies the name of the Application Security Group. Changing this forces a new resource to be created.

* `resource_group_name` - (Required) The name of the resource group in which to create the Application Security Group.

* `location` - (Required) Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

* `tags` - (Optional) A mapping of tags to assign to the resource.

## Attributes Reference

The following attributes are exported:

* `id` - The ID of the Application Security Group.

## Import

Application Security Groups can be imported using the `resource id`, e.g.

```shell
terraform import azurerm_application_security_group.securitygroup1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Network/applicationSecurityGroups/securitygroup1
```

0 comments on commit 2ef927e

Please sign in to comment.