question

MSTechie-7364 avatar image
0 Votes"
MSTechie-7364 asked tbgangav-MSFT answered

The namespace for all the model classes will change from Microsoft.Azure.Management.Monitor.Management.Models


I get the below warning messages while executing the below Azure PowerShell commands. The command executes successfully.

New-AzScheduledQueryRuleSource
New-AzScheduledQueryRuleSchedule
New-AzScheduledQueryRule
New-AzScheduledQueryRuleLogMetricTrigger
New-AzScheduledQueryRuleTriggerCondition

How to fix these warning messages ? Please help


Warning1
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 2
The namespace for output classes will be uniform for all classes in future releases to make it independent of modifications in the model classes.
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 3
The namespace for output classes will be uniform for all classes in future releases to make it independent of modifications in the model classes.





azure-monitor
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

tbgangav-MSFT avatar image
0 Votes"
tbgangav-MSFT answered

Hi @MSTechie-7364,

133517-image.png

As per the warning messages, these would be automatically removed when they are addressed in the future releases of Az.Monitor Azure PowerShell module. However, I am reaching out to our internal product team to confirm the same and also to check on from which Az.Monitor Azure PowerShell module version these warning messages would probably be removed. Will keep you updated as I hear more information.

Until then, as a workaround, if we want to suppress these warning messages then we may use common parameter WarningAction in your command i.e., "-Wa 0" or "-WarningAction SilentlyContinue". Let me know if you have any further queries with regards to it.


image.png (16.6 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.