Skip to content

Commit c8ac80d

Browse files
Merge pull request #285725 from davidsmatlak/ds-fix-pwsh-command-20240828
Updates Azure PowerShell command syntax in Policy quickstart
2 parents f2755fe + 018f6d1 commit c8ac80d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Quickstart: Create policy assignment using Azure PowerShell"
33
description: In this quickstart, you create an Azure Policy assignment to identify non-compliant resources using Azure PowerShell.
4-
ms.date: 02/26/2024
4+
ms.date: 08/28/2024
55
ms.topic: quickstart
66
ms.custom: devx-track-azurepowershell
77
---
@@ -59,7 +59,7 @@ Run the following commands and replace `<resourceGroupName>` with your resource
5959
$rg = Get-AzResourceGroup -Name '<resourceGroupName>'
6060
6161
$definition = Get-AzPolicyDefinition |
62-
Where-Object { $_.Properties.DisplayName -eq 'Audit VMs that do not use managed disks' }
62+
Where-Object { $_.DisplayName -eq 'Audit VMs that do not use managed disks' }
6363
```
6464

6565
The `$rg` variable stores properties for the resource group and the `$definition` variable stores the policy definition's properties. The properties are used in subsequent commands.

0 commit comments

Comments
 (0)