File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
src/PolicyInsights/PolicyInsights/help Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ New-AzPolicyAttestation `
85
85
-PolicyAssignmentId $policyInitiativeAssignmentId `
86
86
-PolicyDefinitionReferenceId $policyDefinitionReferenceId `
87
87
-ComplianceState $Compliant `
88
- -Comments $comment `
88
+ -Comment $comment `
89
89
-Evidence $policyEvidence `
90
90
-ExpiresOn $expiresOn `
91
91
-AssessmentDate $expiresOn.AddDays(-2) `
@@ -150,7 +150,7 @@ This command gets the attestation named 'attestation1' at the resource group 'my
150
150
+ Example 3: Get 5 policy attestations in a subscription with optional filters
151
151
``` powershell
152
152
Set-AzContext -Subscription "MySubscription"
153
- Get-PolicyAttestation -Top 5 -Filter "PolicyAssignmentId eq '/subscriptions/49c37404-cef8-46b2-ba72-fa8419c82ed5/providers/Microsoft.Authorization/policyAssignments/0774f87b3af94c1399d3ee52"
153
+ Get-AzPolicyAttestation -Top 5 -Filter "PolicyAssignmentId eq '/subscriptions/49c37404-cef8-46b2-ba72-fa8419c82ed5/providers/Microsoft.Authorization/policyAssignments/0774f87b3af94c1399d3ee52"
154
154
```
155
155
156
156
This command gets a max of 5 policy attestations underneath the subscription named 'My Subscription'. Only policy attestations for the given policy assignment will be retrieved.
@@ -195,10 +195,10 @@ This command deletes the attestation named 'attestation1' in subscription "My Su
195
195
``` powershell
196
196
$rgName = "myRG"
197
197
198
- Get-PolicyAttestation -Name "attestation2" -ResourceGroupName $rgName | Remove-AzPolicyAttestation
198
+ Get-AzPolicyAttestation -Name "attestation2" -ResourceGroupName $rgName | Remove-AzPolicyAttestation
199
199
```
200
200
201
- This command deletes the attestation named 'attestation2' at resource group 'myRG' using input object given by the ** Get-PolicyAttestation ** cmdlet.
201
+ This command deletes the attestation named 'attestation2' at resource group 'myRG' using input object given by the ** Get-AzPolicyAttestation ** cmdlet.
202
202
203
203
+ Example 3: Delete a policy remediation using ResourceId.
204
204
``` powershell
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ This command gets the attestation named 'attestation1' at the resource group 'my
64
64
### Example 3: Get 5 policy attestations in a subscription with optional filters
65
65
``` powershell
66
66
Set-AzContext -Subscription "MySubscription"
67
- Get-PolicyAttestation -Top 5 -Filter "PolicyAssignmentId eq '/subscriptions/49c37404-cef8-46b2-ba72-fa8419c82ed5/providers/Microsoft.Authorization/policyAssignments/0774f87b3af94c1399d3ee52"
67
+ Get-AzPolicyAttestation -Top 5 -Filter "PolicyAssignmentId eq '/subscriptions/49c37404-cef8-46b2-ba72-fa8419c82ed5/providers/Microsoft.Authorization/policyAssignments/0774f87b3af94c1399d3ee52"
68
68
```
69
69
70
70
This command gets a max of 5 policy attestations underneath the subscription named 'My Subscription'. Only policy attestations for the given policy assignment will be retrieved.
Original file line number Diff line number Diff line change @@ -47,10 +47,10 @@ This command deletes the attestation named 'attestation1' in subscription "My Su
47
47
``` powershell
48
48
$rgName = "myRG"
49
49
50
- Get-PolicyAttestation -Name "attestation2" -ResourceGroupName $rgName | Remove-AzPolicyAttestation
50
+ Get-AzPolicyAttestation -Name "attestation2" -ResourceGroupName $rgName | Remove-AzPolicyAttestation
51
51
```
52
52
53
- This command deletes the attestation named 'attestation2' at resource group 'myRG' using input object given by the ** Get-PolicyAttestation ** cmdlet.
53
+ This command deletes the attestation named 'attestation2' at resource group 'myRG' using input object given by the ** Get-AzPolicyAttestation ** cmdlet.
54
54
55
55
### Example 3: Delete a policy remediation using ResourceId.
56
56
``` powershell
You can’t perform that action at this time.
0 commit comments