Skip to content

How are you identifying the dependencies between objects before deploying? #102

Answered by NowinskiK
prdpsvs asked this question in Q&A
Discussion options

You must be logged in to vote

Dependencies are stored in DependsOn property of each object, which is fulfilling in Import-AdfObjects cmdlet, line 29-32:

        $m = [regex]::matches($txt,'"referenceName":\s*?"(?<r>.+?)",[\n\r\s]+"type":\s*?"(?<t>.+?)"')
        $m | ForEach-Object {
            $o.AddDependant( $_.Groups['r'].Value, $_.Groups['t'].Value ) | Out-Null
        }

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@prdpsvs
Comment options

@prdpsvs
Comment options

@NowinskiK
Comment options

@prdpsvs
Comment options

Answer selected by NowinskiK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants