@@ -15,8 +15,8 @@ An initiative is a policy of definition type "Initiative".
15
15
16
16
### VmScope (Default)
17
17
```
18
- Get-AzVMGuestPolicyStatusHistory [-ResourceGroupName] <String> [-VMName] <String> [-ShowOnlyChange]
19
- [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
18
+ Get-AzVMGuestPolicyStatusHistory [-ResourceGroupName] <String> [-VMName] <String>
19
+ [-ShowOnlyChange] [- DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
20
20
```
21
21
22
22
### InitiativeIdScope
@@ -40,29 +40,29 @@ Use Get-AzVMGuestPolicyStatus cmdlet to get details of a single compliance statu
40
40
41
41
### Example 1
42
42
```
43
- PS C:\> Get-AzVMGuestPolicyStatusHistory -ResourceGroupName "MyResourceGroupName" -VMName "MyVMName" -InitiativeId "/providers/Microsoft.Authorization/policySetDefinitions/3fa7cbf5-c0a4-4a59-85a5-cca4d996d5af" -ShowOnlyChanges
43
+ PS C:\> Get-AzVMGuestPolicyStatusHistory -ResourceGroupName "MyResourceGroupName" -VMName "MyVMName" -InitiativeId "/providers/Microsoft.Authorization/policySetDefinitions/3fa7cbf5-c0a4-4a59-85a5-cca4d996d5af" -ShowOnlyChange
44
44
```
45
45
46
46
Gets compliance status history by initiative Id.
47
- ShowOnlyChanges switch shows only historical status changes.
47
+ ShowOnlyChange switch shows only historical status changes.
48
48
Skips statuses that have not changed between two compliance checks.
49
49
50
50
### Example 2
51
51
```
52
- PS C:\> Get-AzVMGuestPolicyStatusHistory -ResourceGroupName "MyResourceGroupName" -VMName "MyVMName" -InitiativeName "b5a822e0-ba98-4e54-9278-5d9833aa9b17" -ShowOnlyChanges
52
+ PS C:\> Get-AzVMGuestPolicyStatusHistory -ResourceGroupName "MyResourceGroupName" -VMName "MyVMName" -InitiativeName "b5a822e0-ba98-4e54-9278-5d9833aa9b17" -ShowOnlyChange
53
53
```
54
54
55
55
Gets compliance status history by initiative name.
56
- ShowOnlyChanges switch shows only historical status changes.
56
+ ShowOnlyChange switch shows only historical status changes.
57
57
Skips statuses that have not changed between two compliance checks.
58
58
59
59
### Example 3
60
60
```
61
- PS C:\> Get-AzVMGuestPolicyStatusHistory -ResourceGroupName "MyResourceGroupName" -VMName "MyVMName" -ShowOnlyChanges
61
+ PS C:\> Get-AzVMGuestPolicyStatusHistory -ResourceGroupName "MyResourceGroupName" -VMName "MyVMName" -ShowOnlyChange
62
62
```
63
63
64
64
Gets compliance status history for all guest configuration policies assigned to the VM.
65
- ShowOnlyChanges switch shows only historical status changes.
65
+ ShowOnlyChange switch shows only historical status changes.
66
66
Skips statuses that have not changed between two compliance checks.
67
67
68
68
### Example 4
@@ -195,8 +195,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
195
195
### System.Management.Automation.SwitchParameter
196
196
## OUTPUTS
197
197
198
- ### System.Collections.Generic.IList` 1[[Microsoft.Azure.Management.GuestConfiguration.Models.GuestConfigurationAssignment, Microsoft.Azure.Management.GuestConfiguration, Version=0.9.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]
199
- # ## System.Collections.Generic.IList`1[[Microsoft.Azure.Management.GuestConfiguration.Models.GuestConfigurationAssignmentReport, Microsoft.Azure.Management.GuestConfiguration, Version=0.9.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]
198
+ ### [Microsoft.Azure.Management.GuestConfiguration.Models.PolicyStatus, Microsoft.Azure.Management.GuestConfiguration, Version=0.9.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]
200
199
## NOTES
201
200
202
201
## RELATED LINKS
0 commit comments