From 8ef2592b2b43b8f229d74626202cf24facc0b30b Mon Sep 17 00:00:00 2001 From: Anthony Martin Date: Fri, 15 Oct 2021 13:37:15 -0400 Subject: [PATCH] Add definitions for `items()`, `tenant()` and `managementGroup()` functions --- assets/ExpressionMetadata.json | 49 ++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/assets/ExpressionMetadata.json b/assets/ExpressionMetadata.json index dff126354..958beb527 100644 --- a/assets/ExpressionMetadata.json +++ b/assets/ExpressionMetadata.json @@ -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)", @@ -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, ...)", @@ -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]...)",