Skip to content

Commit 34342fc

Browse files
authored
azurerm_palo_alto_next_generation_firewall_virtual_hub_* - fix import by parsing NetworkVirtualApplicance ID insensitively (hashicorp#30597)
1 parent 93c9de5 commit 34342fc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

internal/services/paloalto/schema/network_profile.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,8 @@ func FlattenNetworkProfileVHub(input firewalls.NetworkProfile) (*NetworkProfileV
392392

393393
if v := input.VwanConfiguration; v != nil {
394394
result.VHubID = pointer.From(v.VHub.ResourceId)
395-
applianceID, err := networkvirtualappliances.ParseNetworkVirtualApplianceID(pointer.From(v.NetworkVirtualApplianceId))
395+
// The API may return the static segments lowercased so we'll need to parse it insensitively and set the normalized result into state.
396+
applianceID, err := networkvirtualappliances.ParseNetworkVirtualApplianceIDInsensitively(pointer.From(v.NetworkVirtualApplianceId))
396397
if err != nil {
397398
return nil, err
398399
}

0 commit comments

Comments
 (0)