Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-AzPolicyAssignment - Missing information about removed output #3029

Closed
jagiraud opened this issue May 23, 2024 · 3 comments · Fixed by #3031
Closed

Get-AzPolicyAssignment - Missing information about removed output #3029

jagiraud opened this issue May 23, 2024 · 3 comments · Fixed by #3031
Assignees
Labels
assigned-to-author Tag - assigned to author doc-bug Issue - error in documentation Pri3 Priority - Low triaged

Comments

@jagiraud
Copy link

Type of issue

Missing information

Feedback

Undocumented breaking change for the Get-AzPolicyAssignment cmdlet
https://learn.microsoft.com/en-us/powershell/azure/migrate-az-12.0.0?view=azps-12.0.0#get-azpolicyassignment

Get-AzPolicyAssignment no longer contains the Identity output. Causing the variable $objectId to be empty.

Previous behaviour

$assignment = Get-AzPolicyAssignment
$objectId = $assignment.Identity.PrincipalId

Current behaviour

$assignment = Get-AzPolicyAssignment
$objectId = $assignment.IdentityPrincipalId

Page URL

https://learn.microsoft.com/en-us/powershell/azure/migrate-az-12.0.0?view=azps-12.0.0#azresources

Content source URL

https://github.com/MicrosoftDocs/azure-docs-powershell/blob/main/docs-conceptual/azps-12.0.0/migrate-az-12.0.0.md

Author

@mikefrobbins

Document Id

ba052cde-c7e2-77cf-3447-84a8a2e290ce

@jagiraud jagiraud added the needs-triage Waiting - Needs triage label May 23, 2024
@issues-automation issues-automation bot added the Pri3 Priority - Low label May 23, 2024
@TPavanBalaji TPavanBalaji self-assigned this May 23, 2024
@TPavanBalaji TPavanBalaji added triaged doc-bug Issue - error in documentation cxp labels May 23, 2024
@TPavanBalaji
Copy link

@jagiraud
Thanks for your feedback! We will investigate and update as appropriate.

@AjayBathini-MSFT AjayBathini-MSFT added assigned-to-author Tag - assigned to author and removed cxp needs-triage Waiting - Needs triage labels May 24, 2024
@AjayBathini-MSFT
Copy link

@jagiraud
Thanks for bringing this to our attention.
I'm going to assign this to the document author so they can take a look at it accordingly.

@TPavanBalaji TPavanBalaji removed their assignment May 24, 2024
@mikefrobbins
Copy link
Contributor

@jagiraud Thank you for reporting this oversight. I've contacted the Azure PowerShell engineering team for clarification. This issue is resolved via PR #3031.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assigned-to-author Tag - assigned to author doc-bug Issue - error in documentation Pri3 Priority - Low triaged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants