Skip to content

Commit

Permalink
Add definitions for items(), tenant() and managementGroup() fun…
Browse files Browse the repository at this point in the history
…ctions (#1397)
  • Loading branch information
anthony-c-martin authored Oct 15, 2021
1 parent 7bc38ce commit 7d65428
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions assets/ExpressionMetadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,13 @@
"minimumArguments": 2,
"maximumArguments": null
},
{
"name": "items",
"expectedUsage": "items(obj)",
"description": "Returns an array of keys and values for an object. Elements are consistently ordered alphabetically by key.",
"minimumArguments": 1,
"maximumArguments": 1
},
{
"name": "json",
"expectedUsage": "json(arg1)",
Expand Down Expand Up @@ -566,6 +573,27 @@
}
]
},
{
"name": "managementGroup",
"expectedUsage": "managementGroup()",
"description": "Returns a structured object that represents the current management group. This function is only valid in templates that are deployed at management group scope",
"minimumArguments": 0,
"maximumArguments": 0,
"returnValueMembers": [
{
"name": "id"
},
{
"name": "name"
},
{
"name": "type"
},
{
"name": "properties"
}
]
},
{
"name": "max",
"expectedUsage": "max(arg1, ...)",
Expand Down Expand Up @@ -785,6 +813,27 @@
"minimumArguments": 2,
"maximumArguments": 2
},
{
"name": "tenant",
"expectedUsage": "tenant()",
"description": "Returns a structured object that represents the current tenant.",
"minimumArguments": 0,
"maximumArguments": 0,
"returnValueMembers": [
{
"name": "country"
},
{
"name": "countryCode"
},
{
"name": "displayName"
},
{
"name": "tenantId"
}
]
},
{
"name": "tenantResourceId",
"expectedUsage": "tenantResourceId(resourceType, resourceName1, [resourceName2]...)",
Expand Down

0 comments on commit 7d65428

Please sign in to comment.