Cannot deploy groups using bicep

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

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

評価

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

調査の方向性

The report isolates the failure to deploying a Microsoft.Graph/[email protected] resource with groupTypes set to ['DynamicMembership'] and a membershipRule. Start by locating the group resource type definition and related tests in the repository, then compare its handling of dynamic membership with the working example that omits membershipRule. Done means identifying why the dynamic group deployment fails and confirming the behavior with a focused test or deployment check.

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

説明

bug

Bicep version
Bicep CLI version 0.44.1 (28275db947)

Resource and API version
This resource Microsoft.Graph/[email protected]

Auth flow
Interactive deployment

Deployment details
This is the error: Resource 'c122c328-1351-4a1a-b2f4-9f4900033622' does not exist or one of its queried reference-property objects are not present.

Describe the bug
Short. It worked yesterday, no it doesn't. I have done a short troubleshooting and managed to identity that when adding membershipRule, the error occurs.
Example, works.
resource exampleGroup 'Microsoft.Graph/[email protected]' = {
displayName: 'My example group'
description: 'Test'
mailEnabled: false
mailNickname: 'c122c328-1351-4a1a-b2f4-9f4900033622'
securityEnabled: true
uniqueName: 'c122c328-1351-4a1a-b2f4-9f4900033622'
groupTypes: []
}
Doesn't work.
resource exampleGroup 'Microsoft.Graph/[email protected]' = {
displayName: 'My example group'
description: 'Test'
mailEnabled: false
mailNickname: 'c122c328-1351-4a1a-b2f4-9f4900033622'
securityEnabled: true
uniqueName: 'c122c328-1351-4a1a-b2f4-9f4900033622'
groupTypes: ['DynamicMembership']
membershipRule: '(user.accountEnabled -eq true)'
}

To Reproduce
Just try to deploy the non second resource.

Additional context
Some analysis and background. We have been deploying groups to Entra (both static and dynamic) for over a year. Yesterday I could deploy groups without any issues, but not today.
First I thought it had something to do with us setting mailNickname and uniqueName as a guid. But i tested using display with same issue.

主要言語
TypeScript
スター
82
フォーク
15
平均マージ
5時間 12分
マージ済み PR(30日)
5

環境構築

はじめの一歩

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

microsoftgraph/msgraph-bicep-types のほかの issue

microsoftgraph/msgraph-bicep-types の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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