microsoft / microsoft/AzureTRE

Workspace deployment fails with App Insights Private Link Failure

Open
#3,625 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug terraform tracking
Dominant language
Python
Stars
235
Forks
192
Avg merge
1d 23h
Merged PRs (30d)
13

Description

Occasionally workspace deployment fails with "unexpected new value: Root resource was present, but now absent":

action": "install",
      "message": "de2ecc1f-b993-458c-bc38-39b431961773: Error message: \u001b[31m╷\u001b[0m\u001b[0m \u001b[31m│\u001b[0m \u001b[0m\u001b[1m\u001b[31mError: \u001b[0m\u001b[0m\u001b[1mProvider produced inconsistent result after apply\u001b[0m \u001b[31m│\u001b[0m \u001b[0m \u001b[31m│\u001b[0m \u001b[0m\u001b[0mWhen applying changes to \u001b[31m│\u001b[0m \u001b[0mmodule.azure_monitor.azurerm_monitor_private_link_scope.workspace, provider \u001b[31m│\u001b[0m \u001b[0m\"provider[\\\"registry.terraform.io/hashicorp/azurerm\\\"]\" produced an \u001b[31m│\u001b[0m \u001b[0munexpected new value: Root resource was present, but now absent. \u001b[31m│\u001b[0m \u001b[0m \u001b[31m│\u001b[0m \u001b[0mThis is a bug in the provider, which should be reported in the provider's \u001b[31m│\u001b[0m \u001b[0mown issue tracker

A workaround is to use the AzAPI provider, as per PR #3581

This needs further investigation and an issue creating in the Terraform provider repository.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the failure at module.azure_monitor.azurerm_monitor_private_link_scope.workspace and the AzAPI workaround in PR #3581. Investigate the AzureRM provider behavior, then document the root cause and create an issue in the Terraform provider repository, as requested by the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, terraform
Domain
cloud, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.