Skip to content

The property 'name' cannot be found on this object when excluding ManagedVNET object #171

Description

@NowinskiK

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
image

Version of PowerShell module of:

  • ver. 0.95

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions