Skip to content

Commit 044eb7a

Browse files
(AzureCXP) fixes MicrosoftDocs/azure-docs#103542
1 parent bac2ddf commit 044eb7a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

articles/governance/policy/assign-policy-terraform.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ for Azure Policy use the
4343
> To create a Policy Assignment at a Management Group use the [azurerm_management_group_policy_assignment](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/management_group_policy_assignment) resource, for a Resource Group use the [azurerm_resource_group_policy_assignment](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/resource_group_policy_assignment) and for a Subscription use the [azurerm_subscription_policy_assignment](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/subscription_policy_assignment) resource.
4444
4545

46-
```terraform
46+
```terraform
4747
provider "azurerm" {
4848
features {}
4949
}
@@ -64,8 +64,7 @@ for Azure Policy use the
6464
description = "Shows all virtual machines not using managed disks"
6565
display_name = "Audit VMs without managed disks assignment"
6666
}
67-
```
68-
67+
```
6968
1. Create `variables.tf` with the following code:
7069

7170
```terraform

0 commit comments

Comments
 (0)