Cannot deploy groups using bicep

Offen
#334 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
48/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
azure, typescript
Bereich
cloud

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
TypeScript
Sterne
82
Forks
15
Ø Merge
5 Std. 12 Min.
Gemergte PRs (30 T.)
5

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus microsoftgraph/msgraph-bicep-types

Alle Issues in microsoftgraph/msgraph-bicep-types

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.