Unable to create a new Conditional Access authentication context object
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 48/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- powershell
- Domínio
- api
Direção de pesquisa
Comece reproduzindo a resposta 405 com New-MgIdentityConditionalAccessAuthenticationContextClassReference e o exemplo de BodyParameter da documentação vinculada do Microsoft Graph. Compare os cmdlets de produção e beta e suas operações HTTP documentadas. Considera-se concluído quando o fluxo de criação compatível cria com êxito um contexto de autenticação com o id, o nome de exibição e as configurações de disponibilidade fornecidos.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Describe the bug
When trying to create a new authentication context I get an error
New-MgIdentityConditionalAccessAuthenticationContextClassReference_CreateExpanded: Specified method is not allowed. Try GET, PATCH, DELETE
I tried to create it directly and using the BodyParameter.
New-MgIdentityConditionalAccessAuthenticationContextClassReference -DisplayName 'test context' -Id 'c2' -IsAvailable
and using the example in the MS docs link below.
This is an article for the beta module, the prod one doesn't have an example for whatever reason.
Expected behavior
Expected behavior is that the authentication context object gets created with the object id, name displayed.
How to reproduce
Run either of those:
New-MgIdentityConditionalAccessAuthenticationContextClassReference -DisplayName 'test authentication context' -Id 'c2' -IsAvailable
$AuthenticationContextBody = @{
id = 'c2'
displayName = 'test authentication context'
isAvailable = $true
}
New-MgBetaIdentityConditionalAccessAuthenticationContextClassReference -BodyParameter $AuthenticationContextBody
SDK Version
2.33.0
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
Click to expand log
New-MgIdentityConditionalAccessAuthenticationContextClassReference_CreateExpanded: Specified method is not allowed. Try GET, PATCH, DELETE
Status: 405 (MethodNotAllowed)
ErrorCode: MethodNotAllowed
Date: 2025-12-11T09:21:28
Headers:
Cache-Control : no-cache
Vary : Accept-Encoding
Strict-Transport-Security : max-age=31536000
request-id : 8003e512-0000-0000-0000-a800072bd353
client-request-id : 000c793b-0000-0000-0000-a8005b5050b2
x-ms-ags-diagnostic : {"ServerInfo":{"DataCenter":"Sweden Central","Slice":"E","Ring":"3","ScaleUnit":"002","RoleInstance":"GV3PEPF00002BC3"}}
Date : Thu, 11 Dec 2025 09:21:27 GMT
Recommendation: See service error codes: https://learn.microsoft.com/graph/errors
Configuration
PSVersion 7.5.4
PSEdition Core
OS Microsoft Windows 10.0.22631
Other information
No response
- Linguagem predominante
- C#
- Estrelas
- 903
- Forks
- 235
- Merge médio
- 1d 23h
- PRs com merge (30d)
- 22
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de microsoftgraph/msgraph-sdk-powershell
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
microsoftgraph/msgraph-sdk-powershell#3752 ·
Mantenedores costumam responder em até 1 dia
-
status:waiting-for-triage type:bug
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 55/100
microsoftgraph/msgraph-sdk-powershell#3831 ·
Mantenedores costumam responder em até 1 dia
-
status:waiting-for-triage type:feature
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 8/100
microsoftgraph/msgraph-sdk-powershell#3827 ·
Mantenedores costumam responder em até 1 dia
-
status:waiting-for-triage type:bug
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 22/100
microsoftgraph/msgraph-sdk-powershell#3822 ·
Mantenedores costumam responder em até 1 dia
-
Connect-MgGraph on 2.41 crashes when making a connection with cert, fixes when using 2.39 or lowerAbertastatus:waiting-for-triage type:bug
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 48/100
microsoftgraph/msgraph-sdk-powershell#3816 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de microsoftgraph/msgraph-sdk-powershell
Issues semelhantes
-
alerts bug effort:S P2
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
nightscout/nocturne#2511 ·
Mantenedores costumam responder em até 1 dia
-
feature-request
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 77/100
stripe/stripe-dotnet#3484 ·
Mantenedores costumam responder em até 2 dias
-
bug mcp misleading small
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 77/100
Mantenedores costumam responder em até 1 dia
-
accessibility help wanted macos
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
dorlugasigal/annotator#42 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
AvaloniaUI/Avalonia#22568 ·
Mantenedores costumam responder em até 2 dias