Microsoft.Graph.Files Doesn't work in Azure Automation
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện sự cố trong runtime Azure Automation PowerShell 7.4 với Microsoft.Graph.Files 2.38.1, sử dụng runbook được cung cấp và kiểm tra Get-Command -Module Microsoft.Graph.Files. So sánh kết quả trong runtime với hành vi của module khi tương tác và điều tra lý do các cmdlet của module không được phát hiện. Hoàn tất khi các cmdlet Files, bao gồm Get-MgDriveItemContent, được tìm thấy trong runtime.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the bug
This is the same as the closed bug in https://github.com/microsoftgraph/msgraph-sdk-powershell/issues/2756
load the Microsoft.Graph.Files module into a runtime environment and attempt to use it. All attempts fail because cmdlets like Get-MgDriveItemContent cannot be found.
Expected behavior
The cmdlets should be found.
How to reproduce
Make sure that the runtime environment includes Microsoft.Graph.Files
Create a runbook to connect to the Graph with a managed identity (or any other way you like)
Run this code:
$FilesCmdlets = Get-Command -Module Microsoft.Graph.Files
If ($FilesCmdlets) {
Write-Output "Here's what I found for Files cmdlets"
$FilesCmdlets | Format-Table Name, Version
Write-Output ("{0} cmdlets found" -f $FilesCmdlets.count)
}
No cmdlets are found, but there are 1,252 in the module (the result when reported interactively). I guess some resource issue is being met.
SDK Version
2.38.1
Latest version known to work for scenario above?
The previous reports of the bug go back to 2.19
Known Workarounds
Only workaround is to use the Graph API requests
Debug output
Click to expand log
```</details>
### Configuration
Azure Automation
PowerShell 7.4 runtime environment
Microsoft.Graph.Files 2.38.1 module
### Other information
_No response_
- Ngôn ngữ chính
- C#
- Star
- 898
- Fork
- 230
- Merge trung bình
- 2 ngày 5 giờ
- Pull request đã merge (30 ngày)
- 31
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoftgraph/msgraph-sdk-powershell
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
-
status:waiting-for-triage type:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
status:waiting-for-triage type:bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
-
status:waiting-for-triage type:bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
Tất cả issue của microsoftgraph/msgraph-sdk-powershell
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
-
:watch: Not Triaged 11.0 fundamentals/subsvc
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 92/100
dotnet/AspNetCore.Docs#37699 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
SubtitleEdit/subtitleedit#15108 · 1 bình luận ·
-
area/docs-content Bug pulumi/docs
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 94/100
-
agentic-workflows untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100