From 8c0cfaa7787d490fbc3fe3d51f57def2d9819fe3 Mon Sep 17 00:00:00 2001 From: Jesper Fajers Date: Mon, 6 Nov 2023 19:14:51 +0100 Subject: [PATCH 1/2] cpuCoresThrottleLimit --- src/functions/Initialize-AzOpsEnvironment.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions/Initialize-AzOpsEnvironment.ps1 b/src/functions/Initialize-AzOpsEnvironment.ps1 index 94168715..39bc7a65 100644 --- a/src/functions/Initialize-AzOpsEnvironment.ps1 +++ b/src/functions/Initialize-AzOpsEnvironment.ps1 @@ -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 From 07d340247309032127596703d123a43dcccc0027 Mon Sep 17 00:00:00 2001 From: Jesper Fajers Date: Mon, 6 Nov 2023 18:57:00 +0000 Subject: [PATCH 2/2] UpdateDependencies --- src/AzOps.psd1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/AzOps.psd1 b/src/AzOps.psd1 index 8ec9a044..e5411dab 100644 --- a/src/AzOps.psd1 +++ b/src/AzOps.psd1 @@ -3,7 +3,7 @@ # # Generated by: Customer Architecture Team (CAT) # -# Generated on: 08/28/2023 +# Generated on: 11/6/2023 # @{ @@ -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 = @()