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

data azure_redis_cache returns 404 for patch schedule #20488

Closed
1 task done
joshvito opened this issue Feb 15, 2023 · 4 comments
Closed
1 task done

data azure_redis_cache returns 404 for patch schedule #20488

joshvito opened this issue Feb 15, 2023 · 4 comments

Comments

@joshvito
Copy link
Contributor

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.1.9

AzureRM Provider Version

3.43.0

Affected Resource(s)/Data Source(s)

azurerm_redis_cache

Terraform Configuration Files

data "azurerm_redis_cache" "this" {
  name                = "redis-dev"
  resource_group_name = "rg-dev"
}

Debug Output/Panic Output

╷
│ Error: obtaining patch schedules for Redi (Subscription: "<GUID>"
│ Resource Group Name: "rg-dev"
│ Redis Name: "redis-dev"): 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 'redis-dev'.\r\nRequestID=<GUID>"
│ 
│   with module.redis_connection.data.azurerm_redis_cache.this,
│   on .terraform/modules/redis_connection/main.tf line 60, in data "azurerm_redis_cache" "this":
│   60: data "azurerm_redis_cache" "this" {
│ 
╵

Expected Behaviour

I expect the data.azurerm_redis_cache to be returned without error.
This works in provider version 3.42.0

Actual Behaviour

Plan command throws the 404 error supplied

Steps to Reproduce

Create an azurerm_redis_cache resource with no patch schedule.
Try to access the data.azurerm_redis_cache in another terraform file.
The reported error will throw on Plan command.

Important Factoids

No response

References

not at the time of report

@joshvito joshvito added the bug label Feb 15, 2023
@github-actions github-actions bot removed the bug label Feb 15, 2023
@dave0783
Copy link

We too are experiencing this issue.

@jhernandez-vendavo
Copy link

I have the same issue. It appears a PR has been submitted to fix it.

@rcskosir
Copy link
Contributor

Thanks for taking the time to submit this issue. It looks like this has been resolved as of #20516 As such, I am going to mark this issue as closed.

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 May 19, 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

6 participants