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

[BUG]EventHub logger with managed identity connection failing to publish

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
38/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
azure, csharp
領域
api, cloud, devops

調査の方向性

issue で説明されている抽出およびパブリッシャーのフローから始め、managed-identity Event Hub logger を再現し、その credentials JSON を connection-string 形式と比較してください。400 を返す PUT リクエストを追跡し、managed-identity credentials が Named Value display name を使用する場合にパブリッシングが成功することを確認してください。

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

説明

Release version

v6.0.1

Describe the bug

When you extract an event hub logger that has a managed identity connection, the JSON is slightly different than using a connection string. It appears that the actual Named Value name is saved with it instead of the Named Value display name as it is with the connection string. Here is an example of the difference in the credentials property:

EH MI:

  "credentials": {
      "endpointAddress": "<endpoint address>",
      "identityClientId": "{{XXXXXXXXXXXXXXXXXXXXXXXX}}",
      "name": "myeventhub"
    }

EH ConnectionString:

  "credentials": {
    "instrumentationKey": "{{Logger-Credentials--XXXXXXXXXXXXXXXXXXXXXXXX}}"
  }
Expected behavior

The publisher would lookup the Named Value name instead of the display name if the credentials property contains the identityClientId and use that when it creates/updates the resource.

Actual behavior

I get a 400 as a response code to the PUT request. Here is an example error:

Content: {"error":{"code":"ValidationError","message":"One or more fields contain incorrect values:","details":[{"code":"ValidationError","target":"One or more Properties ['{0}'] specified are missing.","message":"XXXXXXXXXXXXXXXXXXXXXXX"}]}}
crit: publisher[0]
Reproduction Steps
  • Create an event hub logger with a managed identity connection
  • extract the configuration
  • run the publisher
主要言語
C#
スター
448
フォーク
247
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

Azure/apiops のほかの issue

Azure/apiops の issue をすべて見る

似ている issue

C# の issue をもっと見る

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

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