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 when creating databricks workspace where managed RG Name equals workspace name #11803

Closed
FlagshipApps opened this issue May 20, 2021 · 5 comments · Fixed by #12601
Closed
Assignees
Labels
bug service/databricks upstream/microsoft Indicates that there's an upstream issue blocking this issue/PR v/2.x (legacy)
Milestone

Comments

@FlagshipApps
Copy link

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 (and AzureRM Provider) Version

Terraform v0.15.4
on windows_amd64

  • provider registry.terraform.io/hashicorp/azurerm v2.59.0

Affected Resource(s)

  • azurerm_databricks_workspace

Terraform Configuration Files

terraform {
  required_providers {
    azurerm = {
      source  = "hashicorp/azurerm"
      version = "=2.59.0"
    }
  }
}
# Configure the Microsoft Azure Provider
provider "azurerm" {
  skip_provider_registration = true
  features {
  }
}

resource "azurerm_databricks_workspace" "example" {
  name                        = "databricks-test"
  managed_resource_group_name = "databricks-test"
  resource_group_name         = "some-rg"
  location                    = "westeurope"
  sku                         = "standard"
}

Debug Output

│ Error: creating/updating Workspace: (Name "databricks-test" / Resource Group "bsh-dev"): databricks.WorkspacesClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: Code="InvalidApplicationManagedResourceGroupId" Message="The managed resource group '/subscriptions/f4545903-594c-4add-8e07-298bcab692a5/resourceGroups/databricks-test' cannot be same as the application's resource group."
│
│   with azurerm_databricks_workspace.example,
│   on main.tf line 16, in resource "azurerm_databricks_workspace" "example":
│   16: resource "azurerm_databricks_workspace" "example" {

Expected Behaviour

I expect the workspace to be created with the same name as the managed rg.

Actual Behaviour

The error (see above) occur.

Steps to Reproduce

  1. terraform apply

Important Factoids

The same script worked a few weeks ago.
It works when you change the name of the managed rg, e.g. to "databricks-test-a"

@alexott
Copy link
Contributor

alexott commented Jun 21, 2021

do you have "normal" resource group with the same name?

@FlagshipApps
Copy link
Author

No

@WodansSon
Copy link
Collaborator

WodansSon commented Jul 13, 2021

This is actually a bug in the API, I have contacted the Service team and they believe this has already been fixed. Should be verified as fixed when PR #12601 is merged due to addition of a regression test case.

@github-actions
Copy link

This functionality has been released in v2.68.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions
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 Aug 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug service/databricks upstream/microsoft Indicates that there's an upstream issue blocking this issue/PR v/2.x (legacy)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants