Skip to content
This repository was archived by the owner on Dec 6, 2023. It is now read-only.

Conversation

omondiatieno
Copy link
Contributor

@omondiatieno omondiatieno commented Jul 11, 2023

Description

Checklist

  • This pull request was tested on both of:
  • Scripts do not contain static passwords or other secret tokens.
  • All Azure resource identifiers which must be universally unique are guaranteed to be so.

Testing information

Platform and PowerShell version: [pscustomobject]$PSVersionTable | Select-Object OS, BuildVersion, PSVersion

Az version: (Get-InstalledModule -Name Az).Version

@omondiatieno
Copy link
Contributor Author

#sign-off

omondiatieno and others added 2 commits July 11, 2023 10:32
This change refactors the application management sample scripts for:

- Clarity, using more  descriptive variable names and reducing duplicate
  code where possible.
- Idiomatic practices, replacing aliases and using explicit parameters,
  replacing `Add-Member` calls with the creation of **PSCustomObject**.
- Line length, keeping the script width readable and succinct.

This change does not affect the functionality of the scripts, only their
presentation. Future changes could include replacing the non-idiomatic
read/write host operations with script parameters, which would also
allow for validation and in-console help.
Copy link
Member

@sdwheeler sdwheeler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@michaeltlombardi I like the code changes. It is much easier to read and change as needed.

@sdwheeler sdwheeler merged commit 345494f into Azure:master Jul 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants