Skip to content

Commit

Permalink
Bump Dependencies (#827)
Browse files Browse the repository at this point in the history
* cpuCoresThrottleLimit

* UpdateDependencies
  • Loading branch information
Jefajers authored Nov 7, 2023
1 parent ee791f3 commit e1b4db3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/AzOps.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Generated by: Customer Architecture Team (CAT)
#
# Generated on: 08/28/2023
# Generated on: 11/6/2023
#

@{
Expand Down Expand Up @@ -51,11 +51,11 @@ PowerShellVersion = '7.2'
# ProcessorArchitecture = ''

# Modules that must be imported into the global environment prior to importing this module
RequiredModules = @(@{ModuleName = 'PSFramework'; RequiredVersion = '1.8.291'; },
@{ModuleName = 'Az.Accounts'; RequiredVersion = '2.12.5'; },
RequiredModules = @(@{ModuleName = 'PSFramework'; RequiredVersion = '1.9.310'; },
@{ModuleName = 'Az.Accounts'; RequiredVersion = '2.13.1'; },
@{ModuleName = 'Az.Billing'; RequiredVersion = '2.0.3'; },
@{ModuleName = 'Az.ResourceGraph'; RequiredVersion = '0.13.0'; },
@{ModuleName = 'Az.Resources'; RequiredVersion = '6.9.1'; })
@{ModuleName = 'Az.Resources'; RequiredVersion = '6.11.2'; })

# Assemblies that must be loaded prior to importing this module
# RequiredAssemblies = @()
Expand Down
2 changes: 1 addition & 1 deletion src/functions/Initialize-AzOpsEnvironment.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
}

# Adjust ThrottleLimit from previously default 10 to 5 if system has less than 2 cores
$cpuCores = if ($IsWindows) { $env:NUMBER_OF_PROCESSORS } else { Invoke-AzOpsNativeCommand -ScriptBlock { nproc --all } -IgnoreExitcode }
[int]$cpuCores = if ($IsWindows) { $env:NUMBER_OF_PROCESSORS } else { Invoke-AzOpsNativeCommand -ScriptBlock { nproc --all } -IgnoreExitcode }
$throttleLimit = (Get-PSFConfig -Module AzOps -Name Core.ThrottleLimit).Value
if (-not[string]::IsNullOrEmpty($cpuCores) -and $cpuCores -le 2 -and $throttleLimit -gt 5) {
Write-PSFMessage -Level Warning -String 'Initialize-AzOpsEnvironment.ThrottleLimit.Adjustment' -StringValues $throttleLimit, $cpuCores
Expand Down

0 comments on commit e1b4db3

Please sign in to comment.