Unable to create a new Conditional Access authentication context object
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 48/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- powershell
- 領域
- api
研究方向
首先,使用連結的 Microsoft Graph 文件中的 BodyParameter 範例,透過 New-MgIdentityConditionalAccessAuthenticationContextClassReference 重現 405 回應。比較 production 和 beta cmdlet 及其文件中記載的 HTTP 作業。當受支援的建立流程能夠成功建立具有所提供 id、顯示名稱和可用性設定的驗證內容時,即表示完成。
由索引模型根據 Issue 內容生成。
描述
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
- 主要語言
- C#
- 星號
- 904
- 分支
- 235
- 平均合併
- 1 天 23 小時
- 30 天內合併 PR
- 22
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
microsoftgraph/msgraph-sdk-powershell 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 84/100
microsoftgraph/msgraph-sdk-powershell#3752 ·
維護者通常 1 天內回覆
-
status:waiting-for-triage type:bug
難度 4/5 3-5 天 新手友好度 55/100
microsoftgraph/msgraph-sdk-powershell#3831 ·
維護者通常 1 天內回覆
-
status:waiting-for-triage type:feature
難度 5/5 一週以上 新手友好度 8/100
microsoftgraph/msgraph-sdk-powershell#3827 ·
維護者通常 1 天內回覆
-
status:waiting-for-triage type:bug
難度 4/5 3-5 天 新手友好度 22/100
microsoftgraph/msgraph-sdk-powershell#3822 ·
維護者通常 1 天內回覆
-
Connect-MgGraph on 2.41 crashes when making a connection with cert, fixes when using 2.39 or lower未關閉status:waiting-for-triage type:bug
難度 4/5 3-5 天 新手友好度 48/100
microsoftgraph/msgraph-sdk-powershell#3816 ·
維護者通常 1 天內回覆
查看 microsoftgraph/msgraph-sdk-powershell 的全部 Issue
相似的 Issue
-
bug 優先: 低
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 92/100
-
.NET area: storage bug good first issue
難度 2/5 1-3 小時 新手友好度 78/100
Larson-Logan/medal-sync#61 ·
維護者通常 1 天內回覆
-
area-ai bug untriaged
難度 2/5 1-3 小時 新手友好度 67/100
dotnet/extensions#7893 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 72/100