Microsoft.Graph.Files Doesn't work in Azure Automation

Aperta
#3,741 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
azure, powershell
Ambito
cli, cloud

Direzione di ricerca

Inizia riproducendo il problema in un runtime Azure Automation PowerShell 7.4 con Microsoft.Graph.Files 2.38.1, usando il runbook fornito e il controllo Get-Command -Module Microsoft.Graph.Files. Confronta il risultato del runtime con il comportamento interattivo del modulo e analizza perché i cmdlet del modulo non vengono rilevati. Il lavoro è completato quando i cmdlet Files, incluso Get-MgDriveItemContent, vengono trovati nel runtime.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

status:waiting-for-triage type:bug
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_
Lingua principale
C#
Stelle
898
Fork
230
Merge medio
2g 5h
PR unite (30g)
31

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoftgraph/msgraph-sdk-powershell

Tutte le issue di microsoftgraph/msgraph-sdk-powershell

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.