File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ if (-not (Test-Path $ModuleMappingConfigPath)) {
3434 Write-Error " Module mapping file not be found: $ModuleMappingConfigPath ."
3535}
3636$v1Excludes = @ (" WindowsUpdates" )
37+ $betaExcludes = @ (" DeviceManagement.Administration" , " Mail" )
3738$Stopwatch = [system.diagnostics.stopwatch ]::StartNew()
3839[HashTable ] $ModuleMapping = Get-Content $ModuleMappingConfigPath | ConvertFrom-Json - AsHashTable
3940$ModuleMapping.Keys | ForEach-Object - Begin { $RequestCount = 0 } - End { Write-Debug " Requests: $RequestCount " } - Process {
@@ -47,7 +48,7 @@ $ModuleMapping.Keys | ForEach-Object -Begin { $RequestCount = 0 } -End { Write-D
4748
4849 try {
4950 # Omit beta version of DeviceManagement.Administration module for further troubleshooting
50- if (-not ($ModuleName -eq " DeviceManagement.Administration " -and $GraphVersion -eq " beta" )) {
51+ if (-not ($betaExcludes -contains $ModuleName -and $GraphVersion -eq " beta" )) {
5152 # Download OpenAPI document for module.
5253 & $DownloadOpenApiDocPS1 - ModuleName $ModuleName - ModuleRegex $ModuleMapping [$ModuleName ] - OpenApiDocOutput $OpenApiDocOutput - GraphVersion $GraphVersion - ForceRefresh:$ForceRefresh - RequestCount $RequestCount - SingularizeOperationIds
5354 }
You can’t perform that action at this time.
0 commit comments