Skip to content

Loop dictionary object conditionally #7398

Answered by brwilkinson
mc2cloud asked this question in Q&A
Discussion options

You must be logged in to vote

I would recommend to just use outputs to evaluate the objects or array data that you have.

e,g,

output info array = items(parLocationObject)

provides

[
    {
        "key": "location2",
        "value": {
            "location": "ukwest",
            "vnetAddressPrefix": "10.1.0.0/16",
            "subnets": [
                {
                    "name": "snet-appGateway",
                    "addressPrefix": "10.1.0.0/24",
                    "nsgName": "nsg-appgateway"
                },
                {
                    "name": "snet-apim",
                    "addressPrefix": "10.1.1.0/24",
                    "nsgName": "nsg-apim"
                }
            ]
        }
    },…

Replies: 3 comments 14 replies

Comment options

You must be logged in to vote
2 replies
@mc2cloud
Comment options

@brwilkinson
Comment options

Answer selected by mc2cloud
Comment options

You must be logged in to vote
8 replies
@brwilkinson
Comment options

@mc2cloud
Comment options

@brwilkinson
Comment options

@mc2cloud
Comment options

@brwilkinson
Comment options

Comment options

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

@mc2cloud
Comment options

@brwilkinson
Comment options

@mc2cloud
Comment options

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