Bug with the error generated from accidentally using the a managed Identity Client ID instead of the Principal ID
@jason-dou がすでに取り組んでいます。
2025年3月6日 から。
評価
この issue はまだ評価されていません。
説明
Bicep version
0.33.93
Resource and API version
Microsoft.Graph/groups - v1.0:0.1.9-preview
Auth flow
signed-in user
Deployment details
Creating a group with an assigned member
Describe the bug
I recently attempted a group deployment using the Client ID of a managed Identity as a member of the group and got the error: An unexpected 'EndOfInput' node was found when reading from the JSON reader. A 'StartObject' node was expected.
Finally, I figured out that this was not the actual error. Obviously, this error must be happening somewhere down the road, but the true error was that I was accidentally passing the Client ID into the members array instead of the Principal ID.
To Reproduce
Steps to reproduce the behavior:
resource updatedGroup 'Microsoft.Graph/[email protected]' = {
uniqueName: <uniqueName>
displayName: <displayName>
mailEnabled: false
mailNickname: <mailNickname>
securityEnabled: true
members: [
<Put a Client ID here>
]
}
Additional context
bicepconfig.json extensions node
"extensions": {
"microsoftGraphV1": "br:mcr.microsoft.com/bicep/extensions/microsoftgraph/v1.0:0.1.9-preview"
}
Here is my full template
@secure()
param managedIdentityId string
var groupArray = loadJsonContent('../azure.json', 'databases')
extension microsoftGraphV1
// Reference existing group and its current members
resource existingGroup 'Microsoft.Graph/[email protected]' existing = [
for (group, i) in groupArray: {
uniqueName: group.permissionsGroup
}
]
// Merge existing members with new members (avoids duplicates)
resource updatedGroup 'Microsoft.Graph/[email protected]' = [
for (group, i) in groupArray: {
uniqueName: group.permissionsGroup
displayName: group.permissionsGroup
mailEnabled: false
mailNickname: group.permissionsGroup
securityEnabled: true
members: [
managedIdentityId
]
dependsOn: [
existingGroup[i]
]
}
]
- 主要言語
- TypeScript
- スター
- 80
- フォーク
- 15
- 平均マージ
- 1時間 21分
- マージ済み PR(30日)
- 3
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoftgraph/msgraph-bicep-types のほかの issue
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
microsoftgraph/msgraph-bicep-types#311 · コメント 3 件 ·
-
enhancement new type
難易度 5/5 1週間以上 初心者へのやさしさ 45/100
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
microsoftgraph/msgraph-bicep-types#304 · コメント 3 件 · リアクション 1 件 ·
-
enhancement new type
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
microsoftgraph/msgraph-bicep-types#296 · リアクション 2 件 ·
-
Issue with servicePrincipals and appRoleAssignedTo in some Entra Tenants再び着手できるかも @eketo-msft が 257 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンbug
microsoftgraph/msgraph-bicep-types#275 · コメント 5 件 · 担当者 1 名 ·
microsoftgraph/msgraph-bicep-types の issue をすべて見る
似ている issue
-
resources
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
railmapgen/rmg-palette#2445 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
danielmiessler/LifeOS#2242 ·
メンテナーはふだん 5 日以内に返信
-
good first issue hacktoberfest help wanted translation
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
callstackincubator/appduct#129 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100