When using either the Get-AzLog or Get-AzActivityLog cmdlet every invocation is prefixed by the following warning messages that aren't able to be suppressed:
WARNING: 9:57:01 AM - The namespace for all the model classes will change from Microsoft.Azure.Management.Monitor.Management.Models to Microsoft.Azure.Management.Monitor.Models in future releases.
WARNING: 9:57:01 AM - The namespace for output classes will be uniform for all classes in future releases to make it independent of modifications in the model classes.
WARNING: [Get-AzActivityLog] Parameter deprecation: The DetailedOutput parameter will be deprecated in a future breaking change release.
No combination of WarningAction, WarningVariable or WarningPreference had an effect. Even Out-Null didn't remove the messages, though that would be undesired anyway as the standard output is what I am interested in.
Using something like the following has no effect (retrieved from here):
Description
When using either the
Get-AzLog
orGet-AzActivityLog
cmdlet every invocation is prefixed by the following warning messages that aren't able to be suppressed:No combination of
WarningAction
,WarningVariable
orWarningPreference
had an effect. EvenOut-Null
didn't remove the messages, though that would be undesired anyway as the standard output is what I am interested in.Using something like the following has no effect (retrieved from here):
When the same code runs in an Azure Automation runbook, then the same warning messages are shown in the Warnings section.
Steps to reproduce
or
Environment data
Module versions
Debug output
Setting
Set $DebugPreference='Continue'
had no effect on the output.Error output