Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

azurerm_monitor_action_group webhook_receiver.0.aad_auth.0.identifier_uri expects "api" scheme #22887

Closed
1 task done
smokedlinq opened this issue Aug 10, 2023 · 1 comment · Fixed by #22888
Closed
1 task done

Comments

@smokedlinq
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.

Terraform Version

1.5.5

AzureRM Provider Version

3.68.0

Affected Resource(s)/Data Source(s)

azurerm_monitor_action_group

Terraform Configuration Files

resource "azurerm_monitor_action_group" "this" {
  resource_group_name = "rg"
  name                = "test"
  short_name          = "test"
  enabled             = true

  webhook_receiver {
      name                    = "webhook"
      use_common_alert_schema = true
      service_uri             = "https://webhook.site.io/azure-alerts"
      aad_auth {
        object_id      = "REDACTED"
        tenant_id      = "REDACTED"
        identifier_uri = "https://webhook.site.io"
      }
    }
  }
}

Debug Output/Panic Output

2023-08-09T22:47:55.679-0400 [ERROR] provider.terraform-provider-azurerm_v3.68.0_x5.exe: Response contains error diagnostic: diagnostic_attribute=AttributeName("webhook_receiver").ElementKeyInt(0).AttributeName("aad_auth").ElementKeyInt(0).AttributeName("identifier_uri") diagnostic_summary="expected "webhook_receiver.0.aad_auth.0.identifier_uri" to have a url with schema of: "api", got https://webhook.site.io" tf_proto_version=5.3 tf_resource_type=azurerm_monitor_action_group @module=sdk.proto diagnostic_detail= tf_req_id=89bcffcd-6ca1-a501-9a02-89f70885ee64 tf_rpc=ValidateResourceTypeConfig diagnostic_severity=ERROR tf_provider_addr=provider @caller=github.com/hashicorp/terraform-plugin-go@v0.14.3/tfprotov5/internal/diag/diagnostics.go:55 timestamp=2023-08-09T22:47:55.679-0400

Expected Behaviour

The identifier uri should be allowed as it is valid for our AAD tenant.

Actual Behaviour

Error: expected "webhook_receiver.0.aad_auth.0.identifier_uri" to have a url with schema of: "api", got https://webhooks.site.io

Steps to Reproduce

terraform plan

Important Factoids

No response

References

No response

@smokedlinq smokedlinq changed the title azurerm_monitor_action_group webhook_receiver aad_auth identifier_uri expects api scheme azurerm_monitor_action_group webhook_receiver.0.aad_auth.0.identifier_uri expects "api" scheme Aug 10, 2023
stephybun pushed a commit that referenced this issue Aug 10, 2023
@github-actions github-actions bot added this to the v3.69.0 milestone Aug 10, 2023
Copy link

github-actions bot commented May 8, 2024

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant