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

[Bug] citrix_image_version.network_mapping is mandatory in v1.0.10 #195

Open
AlanCitrix opened this issue Feb 4, 2025 · 0 comments
Open
Labels
bug Something isn't working 🔧

Comments

@AlanCitrix
Copy link
Collaborator

AlanCitrix commented Feb 4, 2025

Describe the bug

v1.0.10 had a breaking change moving the citrix_image_version.azure_image_specs.network_mapping to citrix_image_version.azure_image_specs: https://github.com/citrix/terraform-provider-citrix/releases/tag/v1.0.10

This change also switching the network_mapping to be mandatory now, but before it was optional.

Versions

citrix/citrix provider: v1.0.10

Terraform configuration files

resource "citrix_image_version" "test-image-version" {
    image_definition = citrix_image_definition.test-image-definition.id
    hypervisor        = citrix_azure_hypervisor.hyp.id
    hypervisor_resource_pool = citrix_azure_hypervisor_resource_pool.pool.id
    description = "test-image-version=1"

    azure_image_specs = {
        gallery_image = {
            definition = "-img"
            gallery = "imggallery"
            version = "0.0.1"
        }
        resource_group = "vdas"
        service_offering = "Standard_B2als_v2"
        storage_type = "StandardSSD_LRS"
    }
}

Terraform console output

│ Error: Missing required argument
│
│   on ndj.tf line 37, in resource "citrix_image_version" "test-image-version":
│   37: resource "citrix_image_version" "test-image-version" {
│
│ The argument "network_mapping" is required, but no definition was found.

Workaround

A network_mapping can be specified to continue:

    network_mapping = [
        {
            network = "<subnet name>"
            network_device  = "0"
        }
    ]

CitrixIssueId: 60798

@AlanCitrix AlanCitrix added bug Something isn't working 🔧 labels Feb 4, 2025
@AlanCitrix AlanCitrix changed the title [Bug] citrix_image_version.network_mapping is mandatory in v1.0.11 [Bug] citrix_image_version.network_mapping is mandatory in v1.0.10 Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 🔧
Projects
None yet
Development

No branches or pull requests

1 participant