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

Azure Container Registry - unsupported attribute "virtual_network" #18241

Closed
1 task done
cpressland opened this issue Sep 2, 2022 · 2 comments
Closed
1 task done

Azure Container Registry - unsupported attribute "virtual_network" #18241

cpressland opened this issue Sep 2, 2022 · 2 comments

Comments

@cpressland
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.2.8

AzureRM Provider Version

3.21.0

Affected Resource(s)/Data Source(s)

resource.azurerm_container_registry

Terraform Configuration Files

resource "azurerm_resource_group" "rg" {
    name = "uksouth-core"
    location = "uksouth"
}

resource "azurerm_container_registry" "binkcore" {
    name = "binkcore"
    resource_group_name = azurerm_resource_group.rg.name
    location = azurerm_resource_group.rg.location
    sku = "Premium"
    admin_enabled = true
    georeplications {
        location = "ukwest"
    }
}

Debug Output/Panic Output

│ Error: Failed to decode resource from state
│ 
│ Error decoding "module.uksouth-storage.azurerm_container_registry.binkops" from previous state: unsupported attribute "virtual_network"


### Expected Behaviour

Resource is refreshed correctly

### Actual Behaviour

Resource is not refreshed correctly

### Steps to Reproduce

1. `terraform plan -out=out -target="module.uksouth-core.azurerm_container_registry.binkcore"`

All of our existing Container Registries fail this way, so this should be fairly easily to pick up on any `plan`, note: resources were originally created on the 1.x providers and have been migrated all the way through.

### Important Factoids

_No response_

### References

#17926 - Appears to remove many references to `virtual_network`'s.
@tombuildsstuff
Copy link
Contributor

hey @cpressland

Thanks for opening this issue / apologies for this regression.

Taking a look through here this appears to be a duplicate of #18232 which is an (unintentional) regression - the fix for which will be shipping in a patch release (v3.21.1) shortly.

Since this issue is a duplicate of #18232 which has since been fixed by #18239 which is shipping shortly, I'm going to close this issue for the moment - but as mentioned above this'll be released in a hotfix shortly.

Thanks!

@github-actions
Copy link

github-actions bot commented Oct 5, 2022

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 Oct 5, 2022
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