I’m trying to run Add-AzStorageAccountNetworkRule
in an ADO pipeline, and it’s consistently giving me this error and nothing more even with -Debug
logging:
DEBUG: 9:10:14 PM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning
default value [True].
DEBUG: 9:10:14 PM - AddAzureStorageAccountNetworkRuleCommand begin processing with ParameterSet 'IpRuleString'.
##[error]Windows PowerShell is in NonInteractive mode. Read and Prompt functionality is not available.
##[error]PowerShell exited with code '1'.
I’ve tried several approaches:
-Confirm=$false
-Force
(not recognized)$ConfirmationPreference="None"
just before the actualAdd-AzStorageAccountNetworkRule
line in the same pipeline task$PSDefaultParameterValues = @{ '*:Force' = $true; '*:Confirm' = $false }
just before the actualAdd-AzStorageAccountNetworkRule
line in the same pipeline task
Is there a special flag for this module that I’m missing? Has the syntax updated since the previous SO questions were answered?