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: ID was missing the serverFarms element #24721

Closed
1 task done
hanyang1986 opened this issue Jan 31, 2024 · 3 comments
Closed
1 task done

Error: ID was missing the serverFarms element #24721

hanyang1986 opened this issue Jan 31, 2024 · 3 comments

Comments

@hanyang1986
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 and review the contribution guide to help.

Terraform Version

1.52

AzureRM Provider Version

3.89

Affected Resource(s)/Data Source(s)

azurerm_app_service_managed_certificate

Terraform Configuration Files

resource "azurerm_app_service_managed_certificate" "this" {
  custom_hostname_binding_id = azurerm_app_service_custom_hostname_binding.this.id
}

Debug Output/Panic Output

Error: ID was missing the `serverFarms` element

Expected Behaviour

The error appears after terraform apply.

Actual Behaviour

No response

Steps to Reproduce

No response

Important Factoids

No response

References

No response

@tombuildsstuff
Copy link
Contributor

hey @hanyang1986

Thanks for opening this issue here.

Taking a look through here it appears this is a duplicate of #24662 which has been fixed by #24664 and will ship in this weeks release - as a fix for this has already been merged I'm going to close this issue for the moment, but as this issue has been assigned to the milestone a comment will be posted here once the release is available.

To workaround this in the interim, you should be able to pin to an older version of the Provider (e.g. =3.87.0) using the required_versions block within the terraform block:

terraform {
  required_providers {
    azurerm = {
      source  = "hashicorp/azurerm"
      version = "=3.87.0"
    }
  }
}

Thanks!

@EngZaz
Copy link

EngZaz commented Feb 5, 2024

When I tried using azurerm_app_service_managed_certificate with version 3.90.0 I got this error
Error: creating/updating App Service Managed Certificate "..com" (Resource Group "****"): web.CertificatesClient#CreateOrUpdate: Failure sending request: StatusCode=409 -- Original Error: autorest/azure: Service returned an error. Status=

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 25, 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