Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

Get-MgIdentityGovernanceAccessReviewDefinitionInstance returns 500 error

Aberta
#3,540 1 comentário 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 2 dias

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
35/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
powershell
Domínio
api, tooling

Direção de pesquisa

Comece reproduzindo o comando Get-MgIdentityGovernanceAccessReviewDefinitionInstance do issue com a versão 2.35.1 do SDK e, em seguida, compare a resposta dele com a do módulo beta e com a solução alternativa Invoke-MgFilterIdentityGovernanceAccessReviewDefinitionInstanceByCurrentUser. Verifique se a falha está na solicitação do cmdlet ou na resposta do serviço; considera-se concluído quando o comportamento compatível é confirmado e o issue tem uma correção ou resolução documentada.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

Service issue type:bug
Describe the bug

When running this cmdlet

Get-MgIdentityGovernanceAccessReviewDefinitionInstance `
-AccessReviewScheduleDefinitionId $schedule.Id -Filter "Status eq 'InProgress'"

I get a 500 internal server error. When I switched to the Beta module to test, I also got a 500 error, but the error said that this call was deprecated. I switched my script to use the Invoke-MgFilterIdentityGovernanceAccessReviewDefinitionInstanceByCurrentUser cmdlet (as suggested by the API doco) everything started working again.

Should this cmdlet be working or not?

Expected behavior

command executes without error and returns a list of instances

How to reproduce
  1. Execute Get-MgIdentityGovernanceAccessReviewDefinitionInstance -AccessReviewScheduleDefinitionId $schedule.Id -Filter "Status eq 'InProgress'"
  2. See error
Get-MgIdentityGovernanceAccessReviewDefinitionInstance_List: An error has occurred.

Status: 500 (InternalServerError)
ErrorCode:
Date: 2026-02-23T23:56:26

Headers:
Vary                          : Accept-Encoding
Strict-Transport-Security     : max-age=31536000
request-id                    : abcb8795-48c2-4233-8b1e-61685e0a3148
client-request-id             : d1b37d8c-bfdf-4de2-b043-4114373bbe33
x-ms-ags-diagnostic           : {"ServerInfo":{"DataCenter":"Australia East","Slice":"E","Ring":"5","ScaleUnit":"002","RoleInstance":"SY2PEPF0000208C"}}
Date                          : Mon, 23 Feb 2026 23:56:25 GMT


  Recommendation: See service error codes: https://learn.microsoft.com/graph/errors
SDK Version

2.35.1

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output
Click to expand log ```

DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
InternalServerError

Headers:
Vary : Accept-Encoding
Strict-Transport-Security : max-age=31536000
request-id : df8f9e31-2089-46c6-9b24-c2df899edb44
client-request-id : e6f438f5-9be9-496e-9b40-1d46b3b70d70
x-ms-ags-diagnostic : {"ServerInfo":{"DataCenter":"Australia East","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"SY3PEPF0001CBA1"}}
Date : Tue, 24 Feb 2026 00:07:53 GMT

Body:
{
"error": {
"code": "",
"message": "An error has occurred.",
"innerError": {
"date": "2026-02-24T00:07:54",
"request-id": "df8f9e31-2089-46c6-9b24-c2df899edb44",
"client-request-id": "e6f438f5-9be9-496e-9b40-1d46b3b70d70"
}
}
}

</details>


### Configuration

Name                           Value
----                           -----
PSVersion                      7.5.4
PSEdition                      Core
GitCommitId                    7.5.4
OS                             Microsoft Windows 10.0.20348
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

### Other information

_No response_
Linguagem predominante
C#
Estrelas
898
Forks
230
Merge médio
1d 5h
PRs com merge (30d)
23

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de microsoftgraph/msgraph-sdk-powershell

Todas as issues de microsoftgraph/msgraph-sdk-powershell

Issues semelhantes

Mais issues de C#

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.