你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Get-AzEventCategory
获取活动日志服务中支持的可用事件类别列表。 当前列表包括:管理员istrative、Security、ServiceHealth、Alert、Recommendation、Policy。
语法
Get-AzEventCategory
[-DefaultProfile <PSObject>]
[<CommonParameters>]
说明
获取活动日志服务中支持的可用事件类别列表。 当前列表包括:管理员istrative、Security、ServiceHealth、Alert、Recommendation、Policy。
示例
示例 1:列出事件类别
Get-AzEventCategory
LocalizedValue Value
-------------- -----
Administrative Administrative
Security Security
Service Health ServiceHealth
Alert Alert
Recommendation Recommendation
Policy Policy
Autoscale Autoscale
Resource Health ResourceHealth
列出事件类别,这些类别也支持订阅的诊断设置类别
参数
-DefaultProfile
DefaultProfile 参数不起作用。 如果对其他订阅执行 cmdlet,请使用 SubscriptionId 参数。
Type: | PSObject |
Aliases: | AzureRMContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
输出
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈