Variables within PowerShell commands need to be explained

Open Beginner friendly
#24,072 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Quiet
Tech stack
powershell
Domain
documentation

Research direction

Start with src/RecoveryServices/RecoveryServices/help/Get-AzRecoveryServicesAsrProtectableItem.md and review the examples containing $Container, $pc, $piFriendlyName, and $piName. Check the linked Get-AzRecoveryServicesAsrProtectableItem documentation and surrounding examples to determine what each variable represents and how users obtain it. Done means the examples explain the required variable values sufficiently to run the commands.

Written by the indexing model from the issue text.

Description

act-observability-squad customer-reported Doc - Reference Recovery Services Backup Service Attention
Type of issue

Missing information

Feedback

When I look at the PS commands, there are variables within the examples which are not explained (on what goes into each variable):

  1. $ProtectableItems = Get-AzRecoveryServicesAsrProtectableItem -ProtectionContainer $Container
  2. Get-AzRecoveryServicesAsrProtectableItem -ProtectionContainer $pc -FriendlyName $piFriendlyName
  3. Get-AzRecoveryServicesAsrProtectableItem -ProtectionContainer $pc -Name $piName

I feel the examples should explain how to get the data for each variable to run the command

Page URL

https://learn.microsoft.com/en-us/powershell/module/az.recoveryservices/get-azrecoveryservicesasrprotectableitem?view=azps-11.2.0&tryIt=true&source=docs#code-try-5

Content source URL

https://github.com/Azure/azure-powershell/blob/main/src/RecoveryServices/RecoveryServices/help/Get-AzRecoveryServicesAsrProtectableItem.md

Author

@mikefrobbins

Document Id

bf1c237f-b687-f13f-5ac3-155d291aa343

Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
3d 21h
Merged PRs (30d)
49

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Azure/azure-powershell

All issues in Azure/azure-powershell

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.