Невозможно перечислить предупреждения в новом модуле Azure AZ 2.0 Powershell - PullRequest
0 голосов
/ 19 мая 2019

Я развернул метрические (новые) оповещения с несколькими ресурсами для мониторинга ЦП для всех моих виртуальных машин. в настоящее время в моей подписке есть два оповещения монитора (статус: запущен).

alerts fired in portal

Проблема в том, что, когда я пытаюсь получить оповещения об открытии с моего компьютера через модуль Azure AZ, я продолжаю получать одно и то же сообщение, но без вывода (хотя я вижу предупреждения на портале):

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.

Не удалось получить историю предупреждений с помощью командлетов Get-AzAlertHistory:

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. 

Может ли быть проблема с текущим модулем az.monitor?

...