azurenoops / terraform-azurerm-overlays-virtual-machine

Terraform module overlay to deploy single or multiple SCCA compliant Virtual Machines of Linux or Windows with optional features to be used with Azure NoOps.
MIT License
1 stars 1 forks source link

Secondary NIC's IPConfig should be Primary not secondary #30

Closed sstjean closed 9 months ago

sstjean commented 9 months ago

Is there an existing issue for this?

Greenfield/Brownfield provisioning

greenfield

Terraform Version

1.5.7

Module Version

2.1.0

AzureRM Provider Version

n/a

Affected Resource(s)/Data Source(s)

secondary NIC

Terraform Configuration Files

n/a

tfvars variables values

n/a

Debug Output/Panic Output

Azure sets the secondary NIC's IPConfiguration to `primary=true` after we deploy it as `primary=false`.  This causes a change to be detected on the IPConfig every time a new plan is run.

Expected Behaviour

No change to teraform plan for the ipconfiguration unless the user defines a change.

Actual Behaviour

A terraform plan will always show a change to the secondary NIC's ipconfiguration.

Steps to Reproduce

No response

Important Factoids

No response

References

No response