使用 ARMTemplate 为存储帐户启用诊断设置

时间:2021-03-04 17:37:11

标签: azure-storage arm-template azure-diagnostics

从 ARMTemplate 部署的存储帐户正在创建禁用的诊断设置。

如何使用 ARMTemplate 或 Powershell 脚本启用诊断状态?

想要自动化部署诊断设置的过程。

enter image description here

2 个答案:

答案 0 :(得分:0)

答案 1 :(得分:0)

部署到 Azure portal 后,您还可以在 Azure portal 中创建诊断设置:

https://docs.microsoft.com/en-us/azure/storage/blobs/monitor-blob-storage?tabs=azure-portal#creating-a-diagnostic-setting

例如:

为 blob 创建 diagnostic setting 后,它将启用:

enter image description here

也可以使用 diagnostic settings 中提到的 ARM Template 创建 Jagrati Modi-AIS