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

azurerm_redis_cache no patch schedules found for redis cache #20489

Closed
1 task done
jhernandez-vendavo opened this issue Feb 15, 2023 · 3 comments · Fixed by #20516
Closed
1 task done

azurerm_redis_cache no patch schedules found for redis cache #20489

jhernandez-vendavo opened this issue Feb 15, 2023 · 3 comments · Fixed by #20516
Labels
Milestone

Comments

@jhernandez-vendavo
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

Terraform Version

1.3.7

AzureRM Provider Version

v3.43.0

Affected Resource(s)/Data Source(s)

azurerm_redis_cache

Terraform Configuration Files

data "azurerm_redis_cache" "rediscache" {
  name                = "RedisTestInstance"
  resource_group_name = "OrgXXX"
}

Debug Output/Panic Output

│ Error: obtaining patch schedules for Redi (Subscription: "6712b72e-9733-4fdf-958f-0a1dc2ee8149"
│ Resource Group Name: "OrgXXX"
│ Redis Name: "RedisTestInstance"): patchschedules.PatchSchedulesClient#Get: Failure responding to request: StatusCode=404 -- Original Error: autorest/azure: Service returned an error. Status=404 Code="ResourceNotFound" Message="There are no patch schedules found for redis cache 'RedisTestInstance'.\r\nRequestID=6acd18d4-860X-4fXX-9378-XXXXXXX"
│
│   with module.main.data.azurerm_redis_cache.rediscache,
│   on ../../../module_cpq/datasources.tf line 26, in data "azurerm_redis_cache" "rediscache":
│   26: data "azurerm_redis_cache" "rediscache" {

Expected Behaviour

Run Terraform Plan or Terraform Apply with no error warnings.

Actual Behaviour

The error message indicates that there are no patch schedules found for the Redis cache 'RedisTestInstance', and the error code returned is "404-ResourceNotFound".

However, according to the provider documentation, the patch_schedule is optional. As a result, it's unclear why I am receiving this error, and it seems to contradict what the documentation suggests.

I'm able to resolve the issue by downgrading to azure provider version '3.42.0'

Steps to Reproduce

terraform plan and terraform plan

Important Factoids

No response

References

#20313

@sinbai
Copy link
Contributor

sinbai commented Feb 17, 2023

@jhernandez-vendavo thanks for opening this issue. PR has been submitted to fix it. Could you keep track of it for more updates?

@github-actions
Copy link

This functionality has been released in v3.45.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 Mar 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
4 participants