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

Fail to apply AppInsight using a workspace in AureRM 3.33 #19443

Closed
1 task done
Pumkko opened this issue Nov 25, 2022 · 3 comments
Closed
1 task done

Fail to apply AppInsight using a workspace in AureRM 3.33 #19443

Pumkko opened this issue Nov 25, 2022 · 3 comments

Comments

@Pumkko
Copy link

Pumkko commented Nov 25, 2022

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.3.5

AzureRM Provider Version

3.33

Affected Resource(s)/Data Source(s)

azurerm_application_insights

Terraform Configuration Files

resource "azurerm_application_insights" "kimAppInsight" {
  name                = "kim-${terraform.workspace}-ai"
  location            = var.SERVICE_PLAN_LOCATION
  resource_group_name = azurerm_resource_group.kimResourceGroup.name
  workspace_id        = var.ANALYTIC_WORKSPACE_ID
  application_type    = "web"
}

Debug Output/Panic Output

parsing "/subscriptions/[SubscriptionId]/resourcegroups/monitoring-dev-rg/providers/microsoft.operationalinsights/workspaces/monitoring-dev-log": parsing segment "staticResourceGroups": expected the segment "resourcegroups" to be "resourceGroups"

with azurerm_application_insights.kimAppInsight,
 on appinsights.tf line 6, in resource "azurerm_application_insights" "kimAppInsight":
  workspace_id        = var.ANALYTIC_WORKSPACE_ID

Expected Behaviour

The command terraform apply works well when using azurrm provider v3.32, the id given to workspace is correct i double checked it using azure CLI.

Actual Behaviour

No response

Steps to Reproduce

No response

Important Factoids

No response

References

No response

@Pumkko Pumkko added the bug label Nov 25, 2022
@github-actions github-actions bot removed the bug label Nov 25, 2022
@ms-zhenhua
Copy link
Contributor

Hi @Pumkko, seems there is a change in v3.33 and you could try to replace resourcegroups in var.ANALYTIC_WORKSPACE_ID with resourceGroups to resolve this issue.

@Pumkko
Copy link
Author

Pumkko commented Nov 28, 2022

Hi @Pumkko, seems there is a change in v3.33 and you could try to replace resourcegroups in var.ANALYTIC_WORKSPACE_ID with resourceGroups to resolve this issue.

Thanks for your reply, i did try that but the problem persisted, right now we avoid the issue by using version 3.32

Copy link

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 Apr 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants