Azure / terraform-azurerm-avm-res-network-networksecuritygroup

AVM Terraform Module for Network Security Group
MIT License
11 stars 6 forks source link

[AVM Module Issue]: Diagnostic Settings Metric Export is not supported #39

Open jaredfholgate opened 5 months ago

jaredfholgate commented 5 months ago

Check for previous/existing GitHub issues

Issue Type?

Bug

(Optional) Module Version

No response

(Optional) Correlation Id

No response

Description

When creating diagnostic settings with the default setting you get this error because metric export is not supported on an NSG:

Error: creating Monitor Diagnostics Setting "sendToLogAnalytics" for Resource "/subscriptions/11eb2a49-f2be-48ee-a1b3-113a01d79ffc/resourceGroups/rg-demo-star-husky/providers/Microsoft.Network/networkSecurityGroups/nsg-demo-star-husky": unexpected status 400 (400 Bad Request) with response: {"code":"BadRequest","message":"Metric export is not enabled."}
│
│   with module.network_security_group.azurerm_monitor_diagnostic_setting.this["sendToLogAnalytics"],
│   on .terraform\modules\network_security_group\main.tf line 40, in resource "azurerm_monitor_diagnostic_setting" "this":
│   40: resource "azurerm_monitor_diagnostic_setting" "this" {
│
maheshbenke commented 4 months ago

Investigating

jchancellor-ms commented 2 months ago

@maheshbenke - Is this still under investigation, or were you able to implement a fix?

maheshbenke commented 1 month ago

@maheshbenke - Is this still under investigation, or were you able to implement a fix?

Hi @jchancellor-ms , I tested this, it's due to the Metrics export issue, since NSG diagnostic doesn't support exporting metric it's not working, I will update the resource "azurerm_monitor_diagnostic_setting" to remove the metric for this module. Will submit a PR next week for review.

microsoft-github-policy-service[bot] commented 1 month ago

[!WARNING] Tagging the AVM Core Team (@Azure/avm-core-team-technical-terraform) due to a module owner or contributor having not responded to this issue within 3 business days. The AVM Core Team will attempt to contact the module owners/contributors directly.

[!TIP]

  • To prevent further actions to take effect, the "Status: Response Overdue 🚩" label must be removed, once this issue has been responded to.
  • To avoid this rule being (re)triggered, the ""Needs: Triage :mag:" label must be removed as part of the triage process (when the issue is first responded to)!

[!NOTE] This message was posted as per ITA01TF.

microsoft-github-policy-service[bot] commented 1 month ago

[!CAUTION] This issue requires the AVM Core Team's (@Azure/avm-core-team-technical-terraform) immediate attention as it hasn't been responded to within 6 business days.

[!TIP]

  • To avoid this rule being (re)triggered, the "Needs: Triage :mag:" and "Status: Response Overdue :triangular_flag_on_post:" labels must be removed when the issue is first responded to!
  • Remove the "Needs: Immediate Attention :bangbang:" label once the issue has been responded to.

[!NOTE] This message was posted as per ITA02TF.

microsoft-github-policy-service[bot] commented 4 weeks ago

[!WARNING] Tagging the AVM Core Team (@Azure/avm-core-team-technical-terraform) due to a module owner or contributor having not responded to this issue within 3 business days. The AVM Core Team will attempt to contact the module owners/contributors directly.

[!TIP]

  • To prevent further actions to take effect, the "Status: Response Overdue 🚩" label must be removed, once this issue has been responded to.
  • To avoid this rule being (re)triggered, the ""Needs: Triage :mag:" label must be removed as part of the triage process (when the issue is first responded to)!

[!NOTE] This message was posted as per ITA01TF.

microsoft-github-policy-service[bot] commented 4 weeks ago

[!CAUTION] This issue requires the AVM Core Team's (@Azure/avm-core-team-technical-terraform) immediate attention as it hasn't been responded to within 6 business days.

[!TIP]

  • To avoid this rule being (re)triggered, the "Needs: Triage :mag:" and "Status: Response Overdue :triangular_flag_on_post:" labels must be removed when the issue is first responded to!
  • Remove the "Needs: Immediate Attention :bangbang:" label once the issue has been responded to.

[!NOTE] This message was posted as per ITA02TF.

microsoft-github-policy-service[bot] commented 2 weeks ago

[!WARNING] Tagging the AVM Core Team (@Azure/avm-core-team-technical-terraform) due to a module owner or contributor having not responded to this issue within 3 business days. The AVM Core Team will attempt to contact the module owners/contributors directly.

[!TIP]

  • To prevent further actions to take effect, the "Status: Response Overdue 🚩" label must be removed, once this issue has been responded to.
  • To avoid this rule being (re)triggered, the ""Needs: Triage :mag:" label must be removed as part of the triage process (when the issue is first responded to)!

[!NOTE] This message was posted as per ITA01TF.

microsoft-github-policy-service[bot] commented 2 weeks ago

[!CAUTION] This issue requires the AVM Core Team's (@Azure/avm-core-team-technical-terraform) immediate attention as it hasn't been responded to within 6 business days.

[!TIP]

  • To avoid this rule being (re)triggered, the "Needs: Triage :mag:" and "Status: Response Overdue :triangular_flag_on_post:" labels must be removed when the issue is first responded to!
  • Remove the "Needs: Immediate Attention :bangbang:" label once the issue has been responded to.

[!NOTE] This message was posted as per ITA02TF.