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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQL Managed Instance fails to create with "properties.dnsZonePartner is invalid" message #26514

Open
1 task done
tysimo opened this issue Jul 1, 2024 · 3 comments
Open
1 task done

Comments

@tysimo
Copy link

tysimo commented Jul 1, 2024

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 comments along the lines of "+1", "me too" or "any updates", 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 and review the contribution guide to help.

Terraform Version

1.7.5

AzureRM Provider Version

3.110.0

Affected Resource(s)/Data Source(s)

azurerm_mssql_managed_instance

Terraform Configuration Files

resource "azurerm_mssql_managed_instance" "sqlmi" {
  name                         = var.name
  resource_group_name          = var.resource_group
  location                     = var.location
  administrator_login          = var.admin_user
  administrator_login_password = var.admin_password
  license_type                 = var.license_type
  subnet_id                    = var.subnet_id
  sku_name                     = var.sku
  vcores                       = var.vcores
  storage_size_in_gb           = var.storage_size

  identity {
    type = "SystemAssigned"
  }
  
  tags = var.tags

  lifecycle {
    ignore_changes = [
      tags["CreatedOn"],
      tags["CreatedBy"],
      storage_size_in_gb,
      sku_name 
      ]
  }

  timeouts {
    create = "12h"
    delete = "12h"
    update = "4h"
  }
}

Debug Output/Panic Output

https://gist.githubusercontent.com/tysimo/ef3b541513ed56564ddfa8ba6e73b1e8/raw/fbc698f856abf7e1ed800f972826bb867b826cf6/gistfile1.txt

Expected Behaviour

SQL Managed Instance creates successfully.

Actual Behaviour

SQL Managed Instance fails to create with below error.

sql.ManagedInstancesClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="LinkedInvalidPropertyId" Message="Property id '' at path 'properties.dnsZonePartner' is invalid. Expect fully qualified resource Id that start with '/subscriptions/{subscriptionId}' or '/providers/{resourceProviderNamespace}/'."

Steps to Reproduce

Plan runs successfully.

Apply fails with below error. Failover Group is not configured for this SQL MI (dns_zone_partner_id is null).

sql.ManagedInstancesClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="LinkedInvalidPropertyId" Message="Property id '' at path 'properties.dnsZonePartner' is invalid. Expect fully qualified resource Id that start with '/subscriptions/{subscriptionId}' or '/providers/{resourceProviderNamespace}/'."

Important Factoids

Azure Commercial - East US

References

No response

@tysimo
Copy link
Author

tysimo commented Jul 1, 2024

I actually get the same message when trying to create a SQL Managed Instance in East US from the Azure Portal. This could be a Azure platform issue.

@sinbai
Copy link
Contributor

sinbai commented Jul 2, 2024

I actually get the same message when trying to create a SQL Managed Instance in East US from the Azure Portal. This could be a Azure platform issue.

Hi @tysimo thanks for this information. It is recommended contacting Microsoft Support for further help with this issue. So can we close this issue?

@juanantoniofornericc
Copy link

I was experiencing similar issue yesterday, today issue is gone, I did not apply any terraform code changes so it looks like it was an Azure platform issue.

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

3 participants