[B012][Docs][PS] Unquoted numeric operation ID in the deployment-operation example loses its leading zero

オープン 初心者向け
#1,350 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

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

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
90/100
issue の種類
ドキュメント
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
powershell
領域
documentation

調査の方向性

src/PS/Resources/help/Get-AzResourceGroupDeploymentOperation.md を開き、53 行目付近の「Get specific operations by id」の例を読んでください。PowerShell が文字列としてバインドし、先頭のゼロが保持されるように、両方の -OperationIds の値を引用符で囲んでください。ドキュメントの例が、引用符で囲まれた期待どおりのコマンドと一致したら完了です。コードやテストは関係ありません。

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

説明

act-codegen-extensibility-squad bug documentation
Affected surface

Powershell

Describe the bug

The “Get specific operations by id” example passes operation IDs without quotes. Its second ID is entirely numeric and begins with 0.

PowerShell parses that argument as a number before binding it to the string[] parameter. Converting it back to a string removes the leading zero, so the command requests a different operation ID and returns HTTP 404.

Command:

Get-AzResourceGroupDeploymentOperation -ResourceGroupName myrg -DeploymentName scenario-deployment -OperationIds 38241FA9B6B8DAE1, 08584103205698517279
Steps to reproduce

No response

Errors & debug output
The conversion can be demonstrated locally:

[string]08584103205698517279
# 8584103205698517279

[string]'08584103205698517279'
# 08584103205698517279

The live unquoted lookup returns:

HTTP 404 Not Found
Error code: DeploymentNotFound

Deployment '<test-deployment>' operation
'<numeric-operation-id-with-leading-zero-removed>' could not be found.
Expected behavior

Quote the IDs in the documentation example:

Get-AzResourceGroupDeploymentOperation `
    -ResourceGroupName myrg `
    -DeploymentName scenario-deployment `
    -OperationIds '38241FA9B6B8DAE1', '08584103205698517279'
Environment
Preview PowerShell rollup: Az 0.1.7
Preview Resources module: Az.Resources 0.1.5
Release: v0.1.7.20261104T200741Z
Shell: PowerShell 7.6.9 on Windows
OS: Microsoft Windows 10.0.26300
Additional context

No response

主要言語
C#
スター
18
フォーク
10
平均マージ
1日 20時間
マージ済み PR(30日)
157

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

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

Azure/azclips のほかの issue

Azure/azclips の issue をすべて見る

似ている issue

C# の issue をもっと見る

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

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