Skip to content

Commit bac2ddf

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

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 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-
```hcl
46+
```terraform
4747
provider "azurerm" {
4848
features {}
4949
}
@@ -68,7 +68,7 @@ for Azure Policy use the
6868

6969
1. Create `variables.tf` with the following code:
7070

71-
```hcl
71+
```terraform
7272
variable "cust_scope" {
7373
default = "{scope}"
7474
}
@@ -84,7 +84,7 @@ for Azure Policy use the
8484

8585
1. Create `output.tf` with the following code:
8686

87-
```hcl
87+
```terraform
8888
output "assignment_id" {
8989
value = azurerm_resource_policy_assignment.auditvms.id
9090
}
@@ -144,7 +144,7 @@ returned.
144144
## Identify non-compliant resources
145145

146146
To view the resources that aren't compliant under this new assignment, use the _assignment\_id_
147-
returned by `terraform apply`. With it, run the following command to get the resource IDs of the
147+
returned by ```terraform apply```. With it, run the following command to get the resource IDs of the
148148
non-compliant resources that are output into a JSON file:
149149

150150
```console

0 commit comments

Comments
 (0)