microsoftgraph / microsoftgraph/msgraph-sdk-powershell
adding multi-geo sharepoint site resource to catalog using v1.0 Power Shell commands.
Nessuno ha ancora preso questa issue.
- Lingua principale
- C#
- Stelle
- 898
- Fork
- 230
- Merge medio
- 2g 5h
- PR unite (30g)
- 31
Descrizione
Describe the bug
Hello,
we are using the PowerShell SDK to provision catalog in entitlement management and add a SharePoint Online site as a resource. We found there are a few articles that the entitlement management supports Multi-Geo. Here is the article from Microsoft: Multi-geo add resource to catalog.
When I am using the command New-MgEntitlementManagementResourceRequest and use url parameter as japan region provisioned site, it just fails to add.
$params = @{
requestType = "adminAdd"
resource = @{
displayName = $requestObj.requestTitle
description = $requestObj.requestTitle
originId ="https://companyjpn.sharepoint.com/teams/testjapan"
originSystem = "SharePointOnline"
}
catalog = @{
id = $catalogObj.Id
}
}
New-MgEntitlementManagementResourceRequest -BodyParameter $params | Out-Null -ErrorAction Stop
ERROR:
[RequestFailedInOriginSystem] : "Attempted to perform an unauthorized operation.","details"
New-MgEntitlementManagementResourceRequest_Create: Line | 910 | New-MgEntitlementManagementResourceRequest -BodyParameter $pa … | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | "Attempted to perform an unauthorized operation.","details" Status: 400 (BadRequest) ErrorCode: RequestFailedInOriginSystem Date: 2024-12-26T11:58:25
Anyone please help in adding multi-geo site as a resource in the catalog? Thanks
Expected behavior
HTTP/1.1 201 Created
Content-type: application/json
{
"id": "acc2294e-f37f-42d3-981d-4e83847ed0ce",
"requestType": "adminAdd",
"state": "delivered"
}
How to reproduce
$params = @{
requestType = "adminAdd"
resource = @{
originId = "https://microsoft.sharepoint.com/sites/Example"
originSystem = "SharePointOnline"
}
catalog = @{
id = "beedadfe-01d5-4025-910b-84abb9369997"
}
}
New-MgEntitlementManagementResourceRequest -BodyParameter $params
SDK Version
No response
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
Click to expand log
```</details>
### Configuration
_No response_
### Other information
_No response_
Guida per i contributori
Apri la guida per i contributori
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.
Direzione di ricerca
Inizia con l’articolo di Microsoft sulle risorse SharePoint multi-geo e la riproduzione di New-MgEntitlementManagementResourceRequest, confrontando l’originId della regione Giappone con il sito di esempio. Riproduci la risposta 400 RequestFailedInOriginSystem e determina se la richiesta può restituire lo stato previsto di delivered con 201 Created; l’issue non fornisce alcuna versione dell’SDK né output di debug.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- powershell
- Ambito
- api, cloud
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100