I have deployed a multi-resource metric (new) alerts for CPU monitoring for all my VMs. currently i have two open Monitor alerts in my subscription (Status: Fired).
Problem is, that when i try to retrive the the opend alerts from my PC via Azure AZ Module, i keep getting the same message, but without any output (although i can see the alerts in the portal):
WARNING: 5:01:06 PM - *** 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: 5:01:06 PM - *** 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-AzAlertHistory] Parameter deprecation: The DetailedOutput parameter will be deprecated in a future
breaking change release.
I couldn't retrieve the alerts history using any of the Get-AzAlertHistory cmdlets:
PS C:\Users\Administrator> Get-AzAlertHistory
WARNING: 5:15:08 PM - *** 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: 5:15:08 PM - *** 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-AzAlertHistory] Parameter deprecation: The DetailedOutput parameter will be deprecated in a future
breaking change release.
PS C:\Users\Administrator> Get-AzAlertHistory -Caller Microsoft.Insights/alertRules
WARNING: 5:15:38 PM - *** 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: 5:15:38 PM - *** 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-AzAlertHistory] Parameter deprecation: The DetailedOutput parameter will be deprecated in a future
breaking change release.
PS C:\Users\Administrator> Get-AzAlertHistory -Status Fired
WARNING: 5:16:04 PM - *** 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: 5:16:04 PM - *** 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-AzAlertHistory] Parameter deprecation: The DetailedOutput parameter will be deprecated in a future
breaking change release.
Could it be that there is a problem with the current az.monitor module?