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

error listing azure integration: Azure Integration not yet installed. Please install before performing this action #2695

Open
ogusak opened this issue Nov 25, 2024 · 0 comments
Labels

Comments

@ogusak
Copy link

ogusak commented Nov 25, 2024

Datadog Terraform Provider Version

3.48.1

Terraform Version

1.9.8

What resources or data sources are affected?

datadog_integration_azure

Terraform Configuration Files

terraform {
  required_version = ">= 1.0"
  required_providers {
    azurerm = {
      source  = "hashicorp/azurerm"
      version = "~> 4.9.0"
    }
    azuread = {
      source  = "hashicorp/azuread"
      version = "~> 3.0.2"
    }
    datadog = {
      source  = "DataDog/datadog"
      version = "3.48.1"
    }
}

# Create Datadog integration
resource "datadog_integration_azure" "datadog" {
  count         = local.setup_datadog ? 1 : 0
  tenant_name   = data.azurerm_client_config.current.tenant_id
  client_id     = azuread_application.datadog[0].client_id
  client_secret = azuread_service_principal_password.datadog[0].value
}

Relevant debug or panic output

Error: error listing azure integration
with datadog_integration_azure.datadog[0]
on datadog.tf line 33, in resource "datadog_integration_azure" "datadog":
resource "datadog_integration_azure" "datadog" {
400 Bad Request: {"errors":["Azure Integration not yet installed. Please install before performing this action."]}

Expected Behavior

Azure integration should be created.

Actual Behavior

Terraform apply fails with the error above.

Steps to Reproduce

Apply datadog_integration_azure to a datadog account with no existing Azure integration.

Apply works fine when an Azure integration already exist in the Datadog account

Important Factoids

No response

References

No response

@ogusak ogusak added the bug label Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant