Skip to content

Graph request failed with status code '429 (429)'. Error details: TooManyRequests #203

@alexhass

Description

@alexhass

I'm massivly using the tool to package all our applications. I can't live without it.

Yesterday I have hit a MS throttling limit and I guess this is an issue of the tool here as it does not handle the TooManyRequests status code and retrys automatically, what caused failures.

Is it possible that tooo many settings send with Add-IntuneWin32App may cause several background requests that may cause such throtteling? I'm just running one command and do not know why it throttles... I feel blind and do not think i'm doing something wrong. The size of the intune package file cannot be the reason as I packaged 3 times larger packages in past without issues.

Any idea what to do here? I retried 15 times again and again, until it worked once... highly annoying and I have no clue why it worked than and not before.

Example:

...

$RequirementRule = New-IntuneWin32AppRequirementRule -Architecture "x64" -MinimumSupportedWindowsRelease "W10_21H2" -MinimumFreeDiskSpaceInMB 5000 -MinimumMemoryInMB 8192

$AdditionalRequirementRules = @()
$AdditionalRequirementRules += New-IntuneWin32AppRequirementRuleRegistry -Existence -KeyPath "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\PPRO_23_4" -DetectionType 'doesNotExist' -Check32BitOn64System $true
$AdditionalRequirementRules += New-IntuneWin32AppRequirementRuleRegistry -Existence -KeyPath "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{760DB16E-91BE-444B-B9EA-DA3371F62CFA}" -DetectionType 'doesNotExist' -Check32BitOn64System $false
$AdditionalRequirementRules += New-IntuneWin32AppRequirementRuleRegistry -Existence -KeyPath "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ILST_29_2" -DetectionType 'doesNotExist' -Check32BitOn64System $true
$AdditionalRequirementRules += New-IntuneWin32AppRequirementRuleRegistry -Existence -KeyPath "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\IDSN_20_0_1" -DetectionType 'doesNotExist' -Check32BitOn64System $true
$AdditionalRequirementRules += New-IntuneWin32AppRequirementRuleRegistry -Existence -KeyPath "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\KBRG_15_0_2" -DetectionType 'doesNotExist' -Check32BitOn64System $true
$AdditionalRequirementRules += New-IntuneWin32AppRequirementRuleRegistry -Existence -KeyPath "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\PPRO_25_5" -DetectionType 'doesNotExist' -Check32BitOn64System $true

$DetectionRules = @()
$DetectionRules += New-IntuneWin32AppDetectionRuleRegistry -StringComparison -KeyPath "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$UninstallAppSKU" -ValueName "DisplayVersion" -StringComparisonOperator "equal" -StringComparisonValue $AppVersion -Check32BitOn64System $true

$ReturnCode = New-IntuneWin32AppReturnCode -ReturnCode 1337 -Type "retry"
$Icon = New-IntuneWin32AppIcon -FilePath $ImageFile

$customInstallCommandLine = '%SystemRoot%\System32\WindowsPowerShell\v1.0\PowerShell.exe -ExecutionPolicy Bypass -NoProfile -File Invoke-AppDeployToolkit.ps1 -DeploymentType Install'
$customUninstallCommandLine = '%SystemRoot%\System32\WindowsPowerShell\v1.0\PowerShell.exe -ExecutionPolicy Bypass -NoProfile -File Invoke-AppDeployToolkit.ps1 -DeploymentType Uninstall'
$Win32App = Add-IntuneWin32App -FilePath $IntuneWinFile -DisplayName $DisplayName -Description "Install $ApplicationName application" -Publisher $Publisher -InstallExperience "system" -RestartBehavior "basedOnReturnCode" -DetectionRule $DetectionRules -RequirementRule $RequirementRule -AdditionalRequirementRule $AdditionalRequirementRules -ReturnCode $ReturnCode -Icon $Icon -AppVersion $AppVersion -CategoryName $CategoryName -Verbose -installCommandLine $customInstallCommandLine -uninstallCommandLine $customUninstallCommandLine

...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions