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

MS Techie 2,681 Reputation points
2021-09-20T03:22:15.98+00:00

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
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,832 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. tbgangav-MSFT 10,386 Reputation points
    2021-09-20T08:10:39.45+00:00

    Hi @MS Techie ,

    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.


  2. Sanjeevi Subramani 1 Reputation point
    2024-02-01T07:06:20.54+00:00

    As per the update in this GitHub issue, this is outdated message and will be removed soon.

    https://github.com/Azure/azure-powershell/issues/24033#issuecomment-1913816395
    https://github.com/Azure/azure-powershell/issues/24033

    0 comments No comments