@@ -245,13 +245,13 @@ resource "azapi_resource" "openai_diagnostics" {
245245# Note: VNets and Private Endpoints do not support diagnostic settings.
246246# NSGs support diagnostic settings for security events and rule counters.
247247
248- # Enable diagnostic logging for primary NSG
249- resource "azapi_resource" "primary_nsg_diagnostics " {
248+ # Enable diagnostic logging for Power Platform primary NSG
249+ resource "azapi_resource" "power_platform_primary_nsg_diagnostics " {
250250 count = var. include_log_analytics && ! local. create_network_infrastructure ? 1 : 0
251251
252252 type = " Microsoft.Insights/diagnosticSettings@2021-05-01-preview"
253- name = " primary-nsg-diagnostics"
254- parent_id = azurerm_network_security_group. primary_nsg [0 ]. id
253+ name = " power-platform- primary-nsg-diagnostics"
254+ parent_id = azurerm_network_security_group. power_platform_primary_nsg [0 ]. id
255255
256256 body = {
257257 properties = {
@@ -270,13 +270,13 @@ resource "azapi_resource" "primary_nsg_diagnostics" {
270270 }
271271}
272272
273- # Enable diagnostic logging for failover NSG
274- resource "azapi_resource" "failover_nsg_diagnostics " {
273+ # Enable diagnostic logging for Power Platform failover NSG
274+ resource "azapi_resource" "power_platform_failover_nsg_diagnostics " {
275275 count = var. include_log_analytics && ! local. create_network_infrastructure ? 1 : 0
276276
277277 type = " Microsoft.Insights/diagnosticSettings@2021-05-01-preview"
278- name = " failover-nsg-diagnostics"
279- parent_id = azurerm_network_security_group. failover_nsg [0 ]. id
278+ name = " power-platform- failover-nsg-diagnostics"
279+ parent_id = azurerm_network_security_group. power_platform_failover_nsg [0 ]. id
280280
281281 body = {
282282 properties = {
0 commit comments