Skip to content

Commit

Permalink
adding example for dlp policies (#343)
Browse files Browse the repository at this point in the history
  • Loading branch information
mawasile committed Jun 17, 2024
1 parent af3fd68 commit 1857414
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
19 changes: 18 additions & 1 deletion docs/data-sources/data_loss_prevention_policies.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,24 @@ description: |-

Fetches the list of Data Loss Prevention Policies in a Power Platform tenant. See [Manage data loss prevention policies](https://learn.microsoft.com/power-platform/admin/prevent-data-loss) for more information.


## Example Usage

```terraform
terraform {
required_providers {
powerplatform = {
source = "microsoft/power-platform"
}
}
}
provider "powerplatform" {
use_cli = true
}
data "powerplatform_data_loss_prevention_policies" "tenant_data_loss_prevention_policies" {
}
```

<!-- schema generated by tfplugindocs -->
## Schema
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
terraform {
required_providers {
powerplatform = {
source = "microsoft/power-platform"
}
}
}

provider "powerplatform" {
use_cli = true
}

data "powerplatform_data_loss_prevention_policies" "tenant_data_loss_prevention_policies" {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
output "all_applications" {
description = "All policies"
value = data.powerplatform_data_loss_prevention_policies.tenant_data_loss_prevention_policies.policies
}

0 comments on commit 1857414

Please sign in to comment.