Microsoft.Graph/[email protected] fails to PATCH a group
Nessuno ha ancora preso questa issue.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Bicep version
az bicep version
Bicep CLI version 0.29.47 (132ade51bc)
Resource and API version
Microsoft.Graph/[email protected]
Auth flow
Interactive, az cli credentials.
Deployment details
Start time: 9/3/2024, 2:49:11 PM
Correlation ID: f07c3c47-2b07-43d0-8f1c-cee3379419a9
Graph client request id: 79e9a036-7856-485a-be8e-c0c5eb19f282
Graph request timestamp: 2024-09-03T11:49:11Z
Describe the bug
Graph api call the resource provider in question fails with status code 400. Graph documentation states that this means the generated request is malformed. The same request used to work 8/30/2024, 12:57:43.709 PM. See attached picture. The bicep code responsible for generating the request is attached below.
"details":[
{
"code":"",
"message":"{\"error\":{\"code\":\"BadRequest\",\"target\":\"/resources/adminGroup\",\"message\":\"Unexpected segment DynamicPathSegment. Expected property/$value. Graph client request id: 79e9a036-7856-485a-be8e-c0c5eb19f282. Graph request timestamp: 2024-09-03T11:49:11Z.\"}}"
}
]
Failing bicep resource definition:
var adminUniqueName = 'my-fake-group-name'
resource adminGroup 'Microsoft.Graph/[email protected]' = {
description: 'Administrators of the ${organisation} ${environment} database'
displayName: '${organisation} ${environment} Database Admins'
isAssignableToRole: false
securityEnabled: true
uniqueName: adminUniqueName
mailEnabled: false
mailNickname: adminUniqueName
members: [
applicationIdentityId
'93a2f6e5-3f48-476d-a685-e9136a5e6cd2'
]
}
Generated ARM:
"adminGroup": {
"import": "microsoftGraph",
"type": "Microsoft.Graph/[email protected]",
"properties": {
"description": "[format('Administrators of the {0} {1} database', parameters('organisation'), parameters('environment'))]",
"displayName": "[format('{0} {1} Database Admins', parameters('organisation'), parameters('environment'))]",
"isAssignableToRole": false,
"securityEnabled": true,
"uniqueName": "[variables('adminUniqueName')]",
"mailEnabled": false,
"mailNickname": "[variables('adminUniqueName')]",
"members": [
"[parameters('applicationIdentityId')]",
"93a2f6e5-3f48-476d-a685-e9136a5e6cd2"
]
}
}
To Reproduce
Deploy a group several times several times (might work on first deploy, it's a graph PATCH that fails.
Additional context
Azure Portal deployments UI cannot handle this situation. It fails to load any child resources for the failed deployment. Crash happens in react, there is no failed network calls.
- Lingua principale
- TypeScript
- Stelle
- 80
- Fork
- 15
- Merge medio
- 3g 8h
- PR unite (30g)
- 7
Preparare l'ambiente
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di microsoftgraph/msgraph-bicep-types
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
microsoftgraph/msgraph-bicep-types#311 · 3 commenti ·
-
enhancement new type
Difficoltà 5/5 Più di una settimana Idoneità per principianti 45/100
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
microsoftgraph/msgraph-bicep-types#304 · 3 commenti · 1 reazione ·
-
enhancement new type
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
microsoftgraph/msgraph-bicep-types#296 · 2 reazioni ·
-
Issue with servicePrincipals and appRoleAssignedTo in some Entra TenantsForse di nuovo libera @eketo-msft l’ha presa 257 giorni fa e non c’è nessuna pull request aperta. Apertabug
microsoftgraph/msgraph-bicep-types#275 · 5 commenti · 1 assegnatario ·
Tutte le issue di microsoftgraph/msgraph-bicep-types
Issue simili
-
Add: Digi World (Romania) SDApertacheck:passed streams:add
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
Fission-AI/OpenSpec#1986 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
nestjs/docs.nestjs.com#3554 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
publicodes/publicodes#868 ·
-
namespace operations
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
EclipseFdn/open-vsx.org#13488 ·
I maintainer di solito rispondono entro 2 giorni