Describe the bug
Similar to this one: #157
but it happens only when one excludes any object from deployment
To Reproduce
$RootFolder = ".\test\BigFactorySample2_vnet"
$DataFactoryName = 'BigFactorySample2-test'
# Deploy ADF without managedVirtualNetwork
$o = New-AdfPublishOption
$o.Excludes.Add('managedVirtualNetwork*.*', '')
Publish-AdfV2FromJson -RootFolder "$RootFolder" -ResourceGroupName "$ResourceGroupName" -DataFactoryName "$DataFactoryName" `
-Location "$Location" -Option $o -DryRun:$true
Expected behaviour
Run without any error.
Screenshots

Version of PowerShell module of:
Describe the bug
Similar to this one: #157
but it happens only when one excludes any object from deployment
To Reproduce
Expected behaviour
Run without any error.
Screenshots

Version of PowerShell module of: