Closed
Description
Description
Seems Test-AzResourceGroupDeployment
outputs an empty warning when it finds no errors.
Tried with -Debug
. Right after it says no errors were found the warning is outputted.
Issue script & Debug output
See previous.
Environment data
Windows 11 24H2 x64
PowerShell v7.5.1 x64
Module versions
Az.Accounts v5.0.2
Az.Resources v8.0.0
Activity
isra-fel commentedon Jun 10, 2025
azure-powershell/src/Resources/ResourceManager/Implementation/CmdletBase/TestDeploymentCmdletBase.cs
Line 46 in b35ee5b
This seems to be related to empty diagnostics results. Should be suppressed by
-SuppressDiagnostics
.Possible fix: add
&& validationInfo.Diagnostics.Count > 0
toazure-powershell/src/Resources/ResourceManager/Implementation/CmdletBase/TestDeploymentCmdletBase.cs
Line 38 in b35ee5b