Skip to content

Commit 3265065

Browse files
Addressed pipeline errors
1 parent cb66cfe commit 3265065

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/PolicyInsights/PolicyInsights/help/Az.PolicyInsightsCmdlet.Design.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ New-AzPolicyAttestation `
8585
-PolicyAssignmentId $policyInitiativeAssignmentId `
8686
-PolicyDefinitionReferenceId $policyDefinitionReferenceId `
8787
-ComplianceState $Compliant `
88-
-Comments $comment `
88+
-Comment $comment `
8989
-Evidence $policyEvidence `
9090
-ExpiresOn $expiresOn `
9191
-AssessmentDate $expiresOn.AddDays(-2) `
@@ -150,7 +150,7 @@ This command gets the attestation named 'attestation1' at the resource group 'my
150150
+ Example 3: Get 5 policy attestations in a subscription with optional filters
151151
```powershell
152152
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"
154154
```
155155

156156
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
195195
```powershell
196196
$rgName = "myRG"
197197
198-
Get-PolicyAttestation -Name "attestation2" -ResourceGroupName $rgName | Remove-AzPolicyAttestation
198+
Get-AzPolicyAttestation -Name "attestation2" -ResourceGroupName $rgName | Remove-AzPolicyAttestation
199199
```
200200

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.
202202

203203
+ Example 3: Delete a policy remediation using ResourceId.
204204
```powershell

src/PolicyInsights/PolicyInsights/help/Get-AzPolicyAttestation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ This command gets the attestation named 'attestation1' at the resource group 'my
6464
### Example 3: Get 5 policy attestations in a subscription with optional filters
6565
```powershell
6666
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"
6868
```
6969

7070
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.

src/PolicyInsights/PolicyInsights/help/Remove-AzPolicyAttestation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ This command deletes the attestation named 'attestation1' in subscription "My Su
4747
```powershell
4848
$rgName = "myRG"
4949
50-
Get-PolicyAttestation -Name "attestation2" -ResourceGroupName $rgName | Remove-AzPolicyAttestation
50+
Get-AzPolicyAttestation -Name "attestation2" -ResourceGroupName $rgName | Remove-AzPolicyAttestation
5151
```
5252

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.
5454

5555
### Example 3: Delete a policy remediation using ResourceId.
5656
```powershell

0 commit comments

Comments
 (0)