Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Install-SfbLabRequirements fails - incorrect function called

オープン
#15 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
powershell
領域
devops

調査の方向性

SfBAutomatedLab.psm1 の314~315行目付近から始め、Install-SfbLabRequirements を通じて失敗を再現します。報告された Get-LabMachine の呼び出しと、それが ComputerName 引数として使用されていることを確認します。報告されたコマンドが見つからないエラーと、それに続いて発生する null 引数エラーが発生しなくなれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Install-SfbLabRequirements fails with multiple message like this one:

Get-LabMachine : The term 'Get-LabMachine' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, 
verify that the path is correct and try again.
At C:\Program Files\WindowsPowerShell\Modules\SfBAutomatedLab\0.6\SfBAutomatedLab.psm1:314 char:17
+     $machines = Get-LabMachine
+                 ~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Get-LabMachine:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
 
Install-LabWindowsFeature : Cannot validate argument on parameter 'ComputerName'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command 
again.
At C:\Program Files\WindowsPowerShell\Modules\SfBAutomatedLab\0.6\SfBAutomatedLab.psm1:315 char:45
+     Install-LabWindowsFeature -ComputerName $machines -FeatureName NE ...
+                                             ~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Install-LabWindowsFeature], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationError,Install-LabWindowsFeature

This is because Get-LabMachineDefinition should be used instead of Get-LabMachine.

主要言語
PowerShell
スター
14
フォーク
4
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

AutomatedLab/SfBAutomatedLab のほかの issue

AutomatedLab/SfBAutomatedLab の issue をすべて見る

似ている issue

DevOps の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。