Skip to content

Commit

Permalink
resource_group: documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
evenh committed Jun 6, 2019
1 parent b1a030c commit 192c04b
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion website/docs/r/group.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,35 @@ Manages a Group within Azure Active Directory.

## Example Usage

*Basic example*

```hcl
resource "azuread_group" "my_group" {
name = "MyGroup"
}
```

*A group with members*

```hcl
resource "azuread_user" "my_user" {
display_name = "John Doe"
password = "notSecure123"
user_principal_name = "[email protected]"
}
resource "azuread_group" "my_group" {
name = "MyGroup"
members = [ azuread_user.my_user.id /*, more users */ ]
}
```

## Argument Reference

The following arguments are supported:

* `name` - (Required) The display name for the Group.
* `name` - (Required) The display name for the Group. Changing this forces a new resource to be created.
* `members` (Optional) A set of users who should be members of this Group.

-> **NOTE:** Group names are not unique within Azure Active Directory.

Expand All @@ -37,6 +55,8 @@ The following attributes are exported:

* `name` - The Display Name of the Group.

* `members` - The Group Members in the Group.

## Import

Azure Active Directory Groups can be imported using the `object id`, e.g.
Expand Down

0 comments on commit 192c04b

Please sign in to comment.