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

False Positive Error returned for multiple subnets with virtual network #428

Open
mschuchard opened this issue Jun 19, 2024 · 0 comments
Open
Labels

Comments

@mschuchard
Copy link

Overview of the Issue

AzureRM Builder plugin package

If a virtual_network_name value is assigned with multiple subnets associated with that vnet, then an error is correctly returned. If additionally the specific virtual_network_subnet_name value is assigned, then the same error is incorrectly returned. The error is no longer returned when the virtual_network_resource_group_name is assigned a value, which should not occur because the subnet is explicitly specified, and the error string even states that the resource group is correctly determined. I am unsure what is triggering the false positive on the error return, but adding an extraneous parameter with the same value that the plugin states it is correctly determining prevents the false positive error return.

Reproduction Steps

Assign values for virtual_network_name and virtual_network_subnet_name, but not virtual_network_resource_group_name.
packer build <dir>

Plugin and Packer version

Packer 1.10.3
Plugin 2.1.6

Simplified Packer Buildfile

See reproduction steps section.

Operating system and Environment details

N/A

Log Fragments and crash.log files

See Overview section.

@mschuchard mschuchard added the bug label Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant