Is there a way to reference a parameter value within the same PSD1 file?

Let's say that I have a PSD1 file, with the following code:

@{
    AllNodes = @(
    @{
        NodeName = $env:COMPUTERNAME
        Tags = @{
            Environment = "dev"
            Datacenter = "east 1"
        }
        Data = @{
            ConfigName = [Tags.Environment]-[Tags.Datacenter.replace(" ","-")]
        }
    })
}

See how I am trying to reference the "Tags" section later on in the same file? Is there some way to do that, or do I simply need to do so within a separate PS1 file?



from Recent Questions - Stack Overflow https://ift.tt/3JvDQR5
https://ift.tt/eA8V8J

Comments

Popular posts from this blog

Today Walkin 14th-Sept

Spring Elasticsearch Operations

Hibernate Search - Elasticsearch with JSON manipulation