I have tried to use the script in the following article:
but I get the followoing error message:
VNETClone.ps1: Cannot validate argument on parameter 'SourceVirtualNetworkName'. The "Get-AzVirtualNetwork -Name ($_)" validation script for the argument with value "myvnet" did not return a result of True. Determine why the validation script failed, and then try the command again.
it seems to work for cloning vnets in the same subscription so I am wondering if this is the issue since the VNET I am trying to clone is in a different region/subscription?