Manages an Application Security Group.
resource "azurerm_resource_group" "example" {
name = "tf-test"
location = "West Europe"
}
resource "azurerm_application_security_group" "example" {
name = "tf-appsecuritygroup"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
tags = {
Hello = "World"
}
}
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. Changing this forces a new resource to be created.
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.
In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of the Application Security Group.The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 30 minutes) Used when creating the Application Security Group.update
- (Defaults to 30 minutes) Used when updating the Application Security Group.read
- (Defaults to 5 minutes) Used when retrieving the Application Security Group.delete
- (Defaults to 30 minutes) Used when deleting the Application Security Group.Application Security Groups can be imported using the resource id
, e.g.
terraform import azurerm_application_security_group.securitygroup1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Network/applicationSecurityGroups/securitygroup1