Skip to content

Replace alias cmdlets with explicit cmdlets in IAM deduplication logic#119

Open
sql-dr-watson wants to merge 1 commit into
microsoft:mainfrom
sql-dr-watson:main
Open

Replace alias cmdlets with explicit cmdlets in IAM deduplication logic#119
sql-dr-watson wants to merge 1 commit into
microsoft:mainfrom
sql-dr-watson:main

Conversation

@sql-dr-watson

@sql-dr-watson sql-dr-watson commented Jun 26, 2026

Copy link
Copy Markdown

This change improves readability and consistency by replacing short alias usage with explicit PowerShell cmdlets in the IAM role assignment deduplication path.

What changed

Updated alias usage in the deduplication pipeline to full cmdlet names in [Get-AzureResourceIAMData.ps1:75]
Replaced sort with Sort-Object.
Replaced select with Select-Object.

Why

Explicit cmdlet names are easier to read and maintain.
Using full cmdlet names aligns with PowerShell style best practices and improves clarity for contributors.
Behavior impact

No intended functional change.
Logic and output remain the same; this is a readability/maintainability refactor.

Closes: #120

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ubuntu container failure in IAM export path due to alias cmdlets in deduplication pipeline

1 participant