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 "azurerm_images" setting images: Invalid address to set: []string{"images", "0", "os_disk", "0", "disk_encryption_set_id"} #22732

Closed
1 task done
shasondrasvral opened this issue Jul 28, 2023 · 3 comments

Comments

@shasondrasvral
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.3.6 1.4.6 1.5.4

AzureRM Provider Version

3.67.0

Affected Resource(s)/Data Source(s)

azurerm_images

Terraform Configuration Files

provider "azurerm" {
  features {}
  skip_provider_registration = true
}

terraform {
  required_providers {
    azurerm = {
      version = "~> 3.0"
      source  = "hashicorp/azurerm"
    }
  }
}

data "azurerm_images" "images" {
  resource_group_name = "myRG"
}

Debug Output/Panic Output

https://gist.github.com/shasondrasvral/b185247cf3cd6fa1e2243192f745effd

Expected Behaviour

terraform.exe plan
data.azurerm_images.images: Reading...
data.azurerm_images.images: Read complete after 1s [id=resourceGroups/myRG/tags/[]/images]

No changes. Your infrastructure matches the configuration.

Terraform has compared your real infrastructure against your configuration and found no differences, so no changes are
needed.

Actual Behaviour

terraform.exe plan
data.azurerm_images.images: Reading...

Planning failed. Terraform encountered an error while generating this plan.


│ Error: setting images: Invalid address to set: []string{"images", "0", "os_disk", "0", "disk_encryption_set_id"}

│ with data.azurerm_images.images,
│ on main.tf line 15, in data "azurerm_images" "images":
│ 15: data "azurerm_images" "images" {

Steps to Reproduce

terraform init
terraform plan

Important Factoids

No response

References

No response

@rcskosir
Copy link
Contributor

rcskosir commented Aug 3, 2023

Thanks for taking the time to submit this issue. Can you provide us with a more complete TF configuration? It will help with reproducing this issue.
Thanks!

@shasondrasvral
Copy link
Author

Hello,
This issue is due to a bug which have been fixed in the release 3.68.0 of the provider: #22690

The provided configuration is complete to reproduce the issue. But maybe you need azure images in your resource group.

Copy link

github-actions bot commented May 9, 2024

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

2 participants