I'm pretty fresh to using the SDK and I'm running into a perplexing issue when trying to create dependencies. When running this line, it executes successfully and I can see it by querying orion.dependencies in SWIS. However, when I go to the Admin > Manage Dependencies page it is nowhere to be found. If I try to create a dependency in the GUI with the same name & parent/child objects, it gives me the error "A dependency with the same objects already exists. Please change the objects of this dependency." I'm running NPM 2020.2 for reference.
Anyone have insight as to what I'm missing? Thanks in advanced!
New-SwisObject $swis "Orion.Dependencies" @{Name="$Sitename test Dependency";ParentUri="$($ParentGroupUri)";ChildUri="$($ChildGroupUri)";AutoManaged=$false;ParentEntityType="Orion.Groups";ParentNetObjectID="$($ParentGroupUri.split('=')[1])";ChildEntityType="Orion.Nodes";ChildNetObjectID="$($ChildGroupUri.split('=')[1])"}