microsoft / microsoft/powerbi-powershell

CopyWorkspaceSampleScript.ps1 should be a function, not a script-function

Open
#128 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C#
Stars
413
Forks
134
Avg merge
33m
Merged PRs (30d)
1

Description

Copying a Workspace is a very standard activity and should be supported by a proper PowerShell Function, not a Script Function.

https://github.com/Microsoft/powerbi-powershell/blob/master/examples/CopyWorkspaceSampleScript.ps1

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.

Research direction

Start with examples/CopyWorkspaceSampleScript.ps1, linked in the issue, and inspect how the workspace-copy operation is currently exposed. Update that sample so it is provided as a proper PowerShell function rather than a script function, then verify the example still supports copying a workspace.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
cli
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.