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

Not able to create application insights with workspace resource mode instead of classic #18707

Open
1 task done
onenessboy opened this issue Oct 12, 2022 · 6 comments
Open
1 task done

Comments

@onenessboy
Copy link

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

Terraform Version

1.2.1

AzureRM Provider Version

3.21.1

Affected Resource(s)/Data Source(s)

azurerm_application_insights

Terraform Configuration Files

resource "azurerm_application_insights" "ai" {
  name                = "ai-insights"
  location            = azurerm_resource_group.rg[0].location
  resource_group_name = azurerm_resource_group.rg[0].name
  application_type    = "web"
  workspace_id        = azurerm_log_analytics_workspace.logws.id
  tags     = local.common_tags
}

Debug Output/Panic Output

It does not create application insights with workspace mode.

Expected Behaviour

Created application insights with workspace mode

Actual Behaviour

It created with classic mode

Steps to Reproduce

terraform apply

Important Factoids

No response

References

#8575 , but in this dont know exactly how to use syntax for creating it in workspace mode

@onenessboy onenessboy added the bug label Oct 12, 2022
@github-actions github-actions bot removed the bug label Oct 12, 2022
@onenessboy
Copy link
Author

Can someone help please ?

@Amier3
Copy link
Contributor

Amier3 commented Oct 13, 2022

Hey @onenessboy

Taking a look at this now to see if I can replicate the issue

@onenessboy
Copy link
Author

Hey @onenessboy

Taking a look at this now to see if I can replicate the issue

@Amier3 do we have any update on this, did you try to replicate issue. please help

@onenessboy
Copy link
Author

Hey @onenessboy
Taking a look at this now to see if I can replicate the issue

@Amier3 do we have any update on this, did you try to replicate issue. please help

@Amier3 do we have any update on this.. Please help

@danielwagn3r
Copy link

Issue still exists with version 4.0.0 of azurerm provider.

Saw an closed issue #13348 which describes a similar problem, which was opened in 2021 already.

@danielwagn3r
Copy link

Additional information on this issue.

In Azure portal application insights resources without linkd log analytics workspace get this warning:
image

(The link leads to a page to configure a linked log analytics workspace and this documentation page Migrate to workspace-based Application Insights resources)

With current azurerm v4.0.1 provider an azurerm_log_analytics_workspace resource doesn't get linked to an azurerm_application_insights resource. However, if using azurerm_log_analytics_workspace data provider in the application insights resource works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants