diff --git a/internal/services/recoveryservices/site_recovery_vmware_replicated_vm_resource.go b/internal/services/recoveryservices/site_recovery_vmware_replicated_vm_resource.go index a32390c1ae2f..bf3e0b31f39e 100644 --- a/internal/services/recoveryservices/site_recovery_vmware_replicated_vm_resource.go +++ b/internal/services/recoveryservices/site_recovery_vmware_replicated_vm_resource.go @@ -216,11 +216,8 @@ func (s VMWareReplicatedVmResource) Arguments() map[string]*pluginsdk.Schema { "target_network_id": { Type: pluginsdk.TypeString, - Optional: true, + Required: true, ValidateFunc: commonids.ValidateVirtualNetworkID, - RequiredWith: []string{ - "network_interface", - }, }, "test_network_id": { diff --git a/website/docs/r/site_recovery_vmware_replicated_vm.html.markdown b/website/docs/r/site_recovery_vmware_replicated_vm.html.markdown index c2d54542e593..58978f2bff5a 100644 --- a/website/docs/r/site_recovery_vmware_replicated_vm.html.markdown +++ b/website/docs/r/site_recovery_vmware_replicated_vm.html.markdown @@ -114,6 +114,8 @@ The following arguments are supported: * `target_vm_name` - (Required) Name of the VM that should be created when a failover is done. Changing this forces a new resource to be created. +* `target_network_id` - (Required) The ID of network to use when a failover is done. + * `default_log_storage_account_id` - (Optional) The ID of the stroage account that should be used for logging during replication. **Note:** Only standard types of storage accounts are allowed. @@ -150,8 +152,6 @@ The following arguments are supported: * `target_boot_diagnostics_storage_account_id` - (Optional) The ID of the storage account that should be used for boot diagnostics when a failover is done. -* `target_network_id` - (Optional) The ID of network to use when a failover is done. - * `test_network_id` - (Optional) The ID of network to use when a test failover is done. * `target_proximity_placement_group_id` - (Optional) The ID of Proximity Placement Group the new VM should belong to when a failover is done.