Azure IoT 中心的 Azure Policy 内置定义Azure Policy built-in definitions for Azure IoT Hub

有关演示如何实现常见 IoT 方案的 IoT 中心示例代码,请参阅 IoT 中心快速入门For IoT Hub sample code that shows how to implement common IoT scenarios, see the IoT Hub quickstarts. 有用于多种编程语言(包括 C、Node.js 和 Python)的快速入门。There are quickstarts for multiple programming languages including C, Node.js, and Python.

此页是 Azure IoT 中心的 Azure Policy 内置策略定义的索引。This page is an index of Azure Policy built-in policy definitions for Azure IoT Hub. 有关其他服务的其他 Azure Policy 内置定义,请参阅 Azure Policy 内置定义For additional Azure Policy built-ins for other services, see Azure Policy built-in definitions.

每个内置策略定义链接(指向 Azure 门户中的策略定义)的名称。The name of each built-in policy definition links to the policy definition in the Azure portal. 使用“版本”列中的链接查看 Azure Policy GitHub 存储库上的源。Use the link in the Version column to view the source on the Azure Policy GitHub repo.

Azure IoT 中心Azure IoT Hub

(Azure 门户)(Azure portal)
说明Description 效果Effect(s) 版本Version
应启用 IoT 中心的诊断日志Diagnostic logs in IoT Hub should be enabled 审核是否已启用诊断日志。Audit enabling of diagnostic logs. 这样便可以在发生安全事件或网络受到威胁时重新创建活动线索以用于调查目的This enables you to recreate activity trails to use for investigation purposes; when a security incident occurs or when your network is compromised AuditIfNotExists、DisabledAuditIfNotExists, Disabled

后续步骤Next steps