From bb19faa0750e150fdb3c77d850e4ae39b743a3a7 Mon Sep 17 00:00:00 2001 From: "Stephen Weatherford (MSFT)" Date: Wed, 27 Nov 2024 11:10:33 -0800 Subject: [PATCH] Fix metadata filename from last PR (#1804) --- assets/ExpressionMetadata.json | 56 ++ assets/ExpressionMetadata.json.txt | 1043 ---------------------------- 2 files changed, 56 insertions(+), 1043 deletions(-) delete mode 100644 assets/ExpressionMetadata.json.txt diff --git a/assets/ExpressionMetadata.json b/assets/ExpressionMetadata.json index a89c0fe60..a7798acee 100644 --- a/assets/ExpressionMetadata.json +++ b/assets/ExpressionMetadata.json @@ -279,6 +279,13 @@ "minimumArguments": 0, "maximumArguments": 0 }, + { + "name": "filter", + "expectedUsage": "filter(inputArray, lambda)", + "description": "Filters an array with a custom filtering function.", + "minimumArguments": 2, + "maximumArguments": 2 + }, { "name": "first", "expectedUsage": "first(arg1)", @@ -314,6 +321,13 @@ "minimumArguments": 2, "maximumArguments": 2 }, + { + "name": "groupBy", + "expectedUsage": "groupBy(inputArray, keySelector)", + "description": "Groups the elements of an array based on a specified key selector function.", + "minimumArguments": 2, + "maximumArguments": 2 + }, { "name": "guid", "expectedUsage": "guid(baseString, ...)", @@ -370,6 +384,13 @@ "minimumArguments": 1, "maximumArguments": 1 }, + { + "name": "lambda", + "expectedUsage": "lambda(, [, ...], )", + "description": "Defines a lambda expression that can be passed as an argument to functions like filter, groupBy, map, mapValues, reduce, sort, and toObject. See https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/template-functions-lambda for information on using lambda functions.", + "minimumArguments": 2, + "maximumArguments": null + }, { "name": "last", "expectedUsage": "last(arg1)", @@ -656,6 +677,20 @@ } ] }, + { + "name": "map", + "expectedUsage": "map(inputArray, transformFunction)", + "description": "Projects each element of an array into a new form based on a transformation function. See https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/template-functions-lambda for information on using lambda functions.", + "minimumArguments": 2, + "maximumArguments": 2 + }, + { + "name": "mapValues", + "expectedUsage": "mapValues(object, transformFunction)", + "description": "Projects each value of an object into a new form based on a transformation function. See https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/template-functions-lambda for information on using lambda functions.", + "minimumArguments": 2, + "maximumArguments": 2 + }, { "name": "max", "expectedUsage": "max(arg1, ...)", @@ -747,6 +782,13 @@ "minimumArguments": 2, "maximumArguments": 2 }, + { + "name": "reduce", + "expectedUsage": "reduce(inputArray, initialValue, accumulatorFunction)", + "description": "Applies a function against an accumulator and each element in the array to reduce it to a single value. See https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/template-functions-lambda for information on using lambda functions.", + "minimumArguments": 3, + "maximumArguments": 3 + }, { "name": "reference", "expectedUsage": "reference(resourceName\/resourceIdentifier, [apiVersion], ['Full'])", @@ -802,6 +844,13 @@ "minimumArguments": 2, "maximumArguments": 2 }, + { + "name": "sort", + "expectedUsage": "sort(inputArray, comparer)", + "description": "Sorts an array with a custom sort function. See https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/template-functions-lambda for information on using lambda functions.", + "minimumArguments": 2, + "maximumArguments": 2 + }, { "name": "split", "expectedUsage": "split(inputString, delimiter)", @@ -913,6 +962,13 @@ "minimumArguments": 1, "maximumArguments": 1 }, + { + "name": "toObject", + "expectedUsage": "toObject(inputArray, lambda function, [lambda function])", + "description": "Converts an array to an object with a custom key function and optional custom value function. See https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/template-functions-object#items about converting an object to an array. See https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/template-functions-lambda for information on using lambda functions.", + "minimumArguments": 2, + "maximumArguments": 3 + }, { "name": "toUpper", "expectedUsage": "toUpper(string)", diff --git a/assets/ExpressionMetadata.json.txt b/assets/ExpressionMetadata.json.txt deleted file mode 100644 index a7798acee..000000000 --- a/assets/ExpressionMetadata.json.txt +++ /dev/null @@ -1,1043 +0,0 @@ -{ - "$schema": "./ExpressionMetadata.schema.json", - "functionSignatures": [ - { - "name": "add", - "expectedUsage": "add(operand1, operand2)", - "description": "Returns the sum of the two provided integers.", - "minimumArguments": 2, - "maximumArguments": 2 - }, - { - "name": "and", - "expectedUsage": "and(arg1, arg2, ...)", - "description": "Checks whether all parameter values are true.", - "minimumArguments": 2, - "maximumArguments": null - }, - { - "name": "array", - "expectedUsage": "array(convertToArray)", - "description": "Converts the value to an array.", - "minimumArguments": 1, - "maximumArguments": 1 - }, - { - "name": "base64", - "expectedUsage": "base64(inputString)", - "description": "Returns the base64 representation of the input string.", - "minimumArguments": 1, - "maximumArguments": 1 - }, - { - "name": "base64ToJson", - "expectedUsage": "base64ToJson(base64Value)", - "description": "Converts a base64 representation to a JSON object.", - "minimumArguments": 1, - "maximumArguments": 1 - }, - { - "name": "base64ToString", - "expectedUsage": "base64ToString(base64Value)", - "description": "Converts a base64 representation to a string.", - "minimumArguments": 1, - "maximumArguments": 1 - }, - { - "name": "bool", - "expectedUsage": "bool(arg1)", - "description": "Converts the parameter to a boolean.", - "minimumArguments": 1, - "maximumArguments": 1 - }, - { - "name": "coalesce", - "expectedUsage": "coalesce(arg1, arg2, arg3, ...)", - "description": "Returns first non-null value from the parameters. Empty strings, empty arrays, and empty objects are not null.", - "minimumArguments": 1, - "maximumArguments": null - }, - { - "name": "concat", - "expectedUsage": "concat(arg1, arg2, arg3, ...)", - "description": "Combines multiple values and returns the concatenated result. This function can take any number of arguments, and can accept either strings or arrays for the parameters. The string comparison is case-sensitive. However, when testing if an object contains a key, the comparison is case-insensitive.", - "minimumArguments": 0, - "maximumArguments": null - }, - { - "name": "contains", - "expectedUsage": "contains(container, itemToFind)", - "description": "Checks whether an array contains a value, an object contains a key, or a string contains a substring.", - "minimumArguments": 2, - "maximumArguments": 2 - }, - { - "name": "parseCidr", - "expectedUsage": "parseCidr(cidrString)", - "description": "Parses an IP address range in CIDR notation to get various properties of the address range. Expects a string in CIDR notation containing an IP address range to be converted.", - "minimumArguments": 1, - "maximumArguments": 1, - "returnValueMembers": [ - { - "name": "network" - }, - { - "name": "netmask" - }, - { - "name": "broadcast" - }, - { - "name": "firstUsable" - }, - { - "name": "lastUsable" - }, - { - "name": "cidr" - } - ] - }, - { - "name": "cidrSubnet", - "expectedUsage": "cidrSubnet(network, newCIDR, subnetIndex)", - "description": "Splits the specified IP address range in CIDR notation into subnets with a new CIDR value and returns the IP address range of the subnet with the specified index. Returns a string of the IP address range of the subnet with the specified index.", - "minimumArguments": 3, - "maximumArguments": 3 - }, - { - "name": "cidrHost", - "expectedUsage": "cidrHost(network, hostIndex)", - "description": "Calculates the usable IP address of the host with the specified index on the specified IP address range in CIDR notation.", - "minimumArguments": 2, - "maximumArguments": 2 - }, - { - "name": "copyIndex", - "expectedUsage": "copyIndex([offset]) or copyIndex(loopName, [offset])", - "description": "Returns the current index of an iteration loop.\nThis function is always used with a copy object.", - "minimumArguments": 0, - "maximumArguments": 2 - }, - { - "name": "createArray", - "expectedUsage": "createArray(arg1, arg2, arg3, ...)", - "description": "Creates an array from the parameters. If no parameters specified, creates an empty array.", - "minimumArguments": 0, - "maximumArguments": null - }, - { - "name": "createObject", - "expectedUsage": "createObject(key1, value1, key2, value2, ...)", - "description": "Creates an object from the keys and values provided in the arguments.", - "minimumArguments": 0, - "maximumArguments": null - }, - { - "name": "dataUri", - "expectedUsage": "dataUri(stringToConvert)", - "description": "Converts a value to a data URI.", - "minimumArguments": 1, - "maximumArguments": 1 - }, - { - "name": "dataUriToString", - "expectedUsage": "dataUriToString(dataUriToConvert)", - "description": "Converts a data URI formatted value to a string.", - "minimumArguments": 1, - "maximumArguments": 1 - }, - { - "name": "dateTimeAdd", - "expectedUsage": "dateTimeAdd(base, duration, [format])", - "description": "Adds a time duration to a base value. ISO 8601 format is expected.", - "minimumArguments": 2, - "maximumArguments": 3 - }, - { - "name": "dateTimeFromEpoch", - "expectedUsage": "dateTimeFromEpoch(epochTime)", - "description": "Converts an epoch time integer value to an ISO8601 dateTime string value.", - "minimumArguments": 1, - "maximumArguments": 1 - }, - { - "name": "dateTimeToEpoch", - "expectedUsage": "dateTimeToEpoch(dateTime)", - "description": "Converts an ISO8601 dateTime string to an epoch time integer value.", - "minimumArguments": 1, - "maximumArguments": 1 - }, - { - "name": "deployment", - "expectedUsage": "deployment()", - "description": "Returns information about the current deployment operation. This function returns the object that is passed during deployment. The properties in the returned object will differ based on whether the deployment object is passed as a link or as an in-line object.", - "minimumArguments": 0, - "maximumArguments": 0, - "returnValueMembers": [ - { - "name": "name" - }, - { - "name": "properties" - }, - { - "name": "location" - } - ] - }, - { - "name": "div", - "expectedUsage": "div(operand1, operand2)", - "description": "Returns the integer division of the two provided integers.", - "minimumArguments": 2, - "maximumArguments": 2 - }, - { - "name": "empty", - "expectedUsage": "empty(itemToTest)", - "description": "Determines if an array, object, or string is empty.", - "minimumArguments": 1, - "maximumArguments": 1 - }, - { - "name": "endsWith", - "expectedUsage": "endsWith(stringToSearch, stringToFind)", - "description": "Determines whether a string ends with a value. The comparison is case-insensitive.", - "minimumArguments": 2, - "maximumArguments": 2 - }, - { - "name": "environment", - "expectedUsage": "environment()", - "description": "Returns information about the current cloud environment. The function returns an object that contains endpoints and other information specific to the cloud used for the deployment. The properties in the returned object may differ based on the capabilities of the cloud.", - "minimumArguments": 0, - "maximumArguments": 0, - "returnValueMembers": [ - { - "name": "name" - }, - { - "name": "gallery" - }, - { - "name": "graph" - }, - { - "name": "portal" - }, - { - "name": "graphAudience" - }, - { - "name": "activeDirectoryDataLake" - }, - { - "name": "batch" - }, - { - "name": "media" - }, - { - "name": "sqlManagement" - }, - { - "name": "vmImageAliasDoc" - }, - { - "name": "resourceManager" - }, - { - "name": "authentication" - }, - { - "name": "suffixes" - } - ] - }, - { - "name": "equals", - "expectedUsage": "equals(arg1, arg2)", - "description": "Checks whether two values equal each other.", - "minimumArguments": 2, - "maximumArguments": 2 - }, - { - "name": "extensionResourceId", - "expectedUsage": "extensionResourceId(resourceId, resourceType, resourceName1, [resourceName2]...)", - "description": "Returns the unique resource identifier of an extension resource. The resourceId parameter may be a resourceId of any scope or resourceId function. You use this function to create a resourceId for a given resource as required by a property value.", - "minimumArguments": 3, - "maximumArguments": null, - "behaviors": [ - "usesResourceIdCompletions" - ] - }, - { - "name": "false", - "expectedUsage": "false()", - "description": "Returns a boolean value that is always false.", - "minimumArguments": 0, - "maximumArguments": 0 - }, - { - "name": "filter", - "expectedUsage": "filter(inputArray, lambda)", - "description": "Filters an array with a custom filtering function.", - "minimumArguments": 2, - "maximumArguments": 2 - }, - { - "name": "first", - "expectedUsage": "first(arg1)", - "description": "Returns the first element of the array, or first character of the string.", - "minimumArguments": 1, - "maximumArguments": 1 - }, - { - "name": "float", - "expectedUsage": "float(arg1)", - "description": "Converts the value to a floating point number. You only use this function when passing custom parameters to an application, such as a Logic App.", - "minimumArguments": 1, - "maximumArguments": 1 - }, - { - "name": "format", - "expectedUsage": "format(formatString, arg1, arg2, ...)", - "description": "Creates a formatted string from input values. It uses the same formatting options as the System.String.Format method in .NET.", - "minimumArguments": 1, - "maximumArguments": null - }, - { - "name": "greater", - "expectedUsage": "greater(arg1, arg2)", - "description": "Checks whether the first value is greater than the second value.", - "minimumArguments": 2, - "maximumArguments": 2 - }, - { - "name": "greaterOrEquals", - "expectedUsage": "greaterOrEquals(arg1, arg2)", - "description": "Checks whether the first value is greater than or equal to the second value.", - "minimumArguments": 2, - "maximumArguments": 2 - }, - { - "name": "groupBy", - "expectedUsage": "groupBy(inputArray, keySelector)", - "description": "Groups the elements of an array based on a specified key selector function.", - "minimumArguments": 2, - "maximumArguments": 2 - }, - { - "name": "guid", - "expectedUsage": "guid(baseString, ...)", - "description": "This function is helpful when you need to create a value in the format of a globally unique identifier. You provide parameter values that limit the scope of uniqueness for the result. You can specify whether the name is unique down to subscription, resource group, or deployment. The returned value is not a random string, but rather the result of a hash function. The returned value is 36 characters long. It is not globally unique.", - "minimumArguments": 1, - "maximumArguments": null - }, - { - "name": "if", - "expectedUsage": "if(condition, trueValue, falseValue)", - "description": "Returns a value based on whether a condition is true or false.", - "minimumArguments": 3, - "maximumArguments": 3 - }, - { - "name": "indexOf", - "expectedUsage": "indexOf(stringToSearch, stringToFind)", - "description": "Returns the first position of a value within a string. The comparison is case-insensitive.", - "minimumArguments": 2, - "maximumArguments": 2 - }, - { - "name": "int", - "expectedUsage": "int(valueToConvert)", - "description": "Converts the specified value to Integer.", - "minimumArguments": 1, - "maximumArguments": 1 - }, - { - "name": "intersection", - "expectedUsage": "intersection(arg1, arg2, arg3, ...)", - "description": "Returns a single array or object with the common elements from the parameters.", - "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": "join", - "expectedUsage": "join(inputArray, delimiter)", - "description": "Joins multiple strings into a single string, separated using a delimiter.", - "minimumArguments": 2, - "maximumArguments": 2 - }, - { - "name": "json", - "expectedUsage": "json(arg1)", - "description": "Returns a JSON object from the specified string, or an empty object when null is specified ", - "minimumArguments": 1, - "maximumArguments": 1 - }, - { - "name": "lambda", - "expectedUsage": "lambda(, [, ...], )", - "description": "Defines a lambda expression that can be passed as an argument to functions like filter, groupBy, map, mapValues, reduce, sort, and toObject. See https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/template-functions-lambda for information on using lambda functions.", - "minimumArguments": 2, - "maximumArguments": null - }, - { - "name": "last", - "expectedUsage": "last(arg1)", - "description": "Returns the last element of the array, or last character of the string.", - "minimumArguments": 1, - "maximumArguments": 1 - }, - { - "name": "lastIndexOf", - "expectedUsage": "lastIndexOf(stringToSearch, stringToFind)", - "description": "Returns the last position of a value within a string. The comparison is case-insensitive.", - "minimumArguments": 2, - "maximumArguments": 2 - }, - { - "name": "length", - "expectedUsage": "length(array\/string)", - "description": "Returns the number of elements in an array or the number of characters in a string. You can use this function with an array to specify the number of iterations when creating resources.", - "minimumArguments": 1, - "maximumArguments": 1 - }, - { - "name": "less", - "expectedUsage": "less(arg1, arg2)", - "description": "Checks whether the first value is less than the second value.", - "minimumArguments": 2, - "maximumArguments": 2 - }, - { - "name": "lessOrEquals", - "expectedUsage": "lessOrEquals(arg1, arg2)", - "description": "Checks whether the first value is less than or equal to the second value.", - "minimumArguments": 2, - "maximumArguments": 2 - }, - { - "name": "list", - "expectedUsage": "list(resourceName\/resourceIdentifier, apiVersion)", - "description": "Performs a GET call to a REST API on the given resource. The function arguments and the returned data depend on the resource type. See https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/template-functions-resource#valid-uses.", - "minimumArguments": 2, - "maximumArguments": null - }, - { - "name": "listAccountSas", - "expectedUsage": "listAccountSas(resourceName\/resourceIdentifier, apiVersion, requestContent)", - "description": "Creates and returns a SAS token with the specified permissions and expiry from the requestContent. The requestContent object must contain the signedServices, signedResourceTypes, signedPermission and signedExpiry properties.", - "minimumArguments": 3, - "maximumArguments": 3, - "returnValueMembers": [ - { - "name": "accountSasToken" - } - ] - }, - { - "name": "listAdminKeys", - "expectedUsage": "listAdminKeys(resourceName\/resourceIdentifier, apiVersion)", - "description": "Gets the primary and secondary admin API keys for the specified Azure Search service. The resourceId can be specified by using the resourceId function or by using the format providerNamespace/resourceType/resourceName. You can use the function to get the primaryKey and secondaryKey.", - "minimumArguments": 2, - "maximumArguments": 2, - "returnValueMembers": [ - { - "name": "primaryKey" - }, - { - "name": "secondaryKey" - } - ] - }, - { - "name": "listAuthKeys", - "expectedUsage": "listAuthKeys(resourceName\/resourceIdentifier, apiVersion)", - "description": "Retrieves the authentication keys for a DataFactory Integration Runtime. The resourceId can be specified by using the resourceId function or by using the format providerNamespace/resourceType/resourceName. You can use the function to get the available authkeys.", - "minimumArguments": 2, - "maximumArguments": 2, - "returnValueMembers": [ - { - "name": "authKey1" - }, - { - "name": "authKey2" - } - ] - }, - { - "name": "listCallbackUrl", - "expectedUsage": "listCallbackUrl(resourceName\/resourceIdentifier, apiVersion)", - "description": "Get callback URL for a trigger of a workflow version. The resourceId can be specified by using the resourceId function or by using the format providerNamespace/resourceType/resourceName. See https://docs.microsoft.com/en-us/rest/api/logic/WorkflowVersions/ListCallbackUrl#workflowtriggercallbackurl for more information.", - "minimumArguments": 2, - "maximumArguments": 2, - "returnValueMembers": [ - { - "name": "value" - }, - { - "name": "method" - }, - { - "name": "basePath" - }, - { - "name": "queries" - }, - { - "name": "relativePath" - }, - { - "name": "relativePathParameters" - } - ] - }, - { - "name": "listChannelWithKeys", - "expectedUsage": "listChannelWithKeys(resourceName\/resourceIdentifier, apiVersion)", - "description": "Lists a Channel registration for a Bot Service including secrets. The resourceId can be specified by using the resourceId function or by using the format providerNamespace/resourceType/resourceName. Example: [listChannelWithKeys(resourceId('Microsoft.BotService/botServices/channels', parameters('botId'), 'DirectLineChannel'), '2018-07-12').properties.properties.sites[0].key]", - "minimumArguments": 2, - "maximumArguments": 2, - "returnValueMembers": [ - { - "name": "resource" - }, - { - "name": "setting" - }, - { - "name": "id" - }, - { - "name": "location" - }, - { - "name": "properties" - }, - { - "name": "provisioningState" - }, - { - "name": "entityTag" - }, - { - "name": "changedTime" - } - ] - }, - { - "name": "listClusterAdminCredential", - "expectedUsage": "listClusterAdminCredential(resourceName\/resourceIdentifier, apiVersion)", - "description": "Gets cluster admin credential of a managed cluster. Returns an array of objects with a 'name' and 'value' property. The resourceId can be specified by using the resourceId function or by using the format providerNamespace/resourceType/resourceName.", - "minimumArguments": 2, - "maximumArguments": 2, - "returnValueMembers": [ - { - "name": "kubeconfigs" - } - ] - }, - { - "name": "listConnectionStrings", - "expectedUsage": "listConnectionStrings(resourceName\/resourceIdentifier, apiVersion)", - "description": "Lists the connection strings for the specified Azure Cosmos DB database account. The resourceId can be specified by using the resourceId function or by using the format providerNamespace/resourceType/resourceName.", - "minimumArguments": 2, - "maximumArguments": 2, - "returnValueMembers": [ - { - "name": "connectionStrings" - } - ] - }, - { - "name": "listCredentials", - "expectedUsage": "listCredentials(resourceName\/resourceIdentifier, apiVersion)", - "description": "Lists the login credentials for the specified container registry. The resourceId can be specified by using the resourceId function or by using the format providerNamespace/resourceType/resourceName.", - "minimumArguments": 2, - "maximumArguments": 2, - "returnValueMembers": [ - { - "name": "username" - }, - { - "name": "passwords" - } - ] - }, - { - "name": "listCredential", - "expectedUsage": "listCredential(resourceName\/resourceIdentifier, apiVersion)", - "description": "Gets the accessProfile for the specified role for a managed cluster. The properties object contains a 'kubeConfig' property. The resourceId can be specified by using the resourceId function or by using the format providerNamespace/resourceType/resourceName.", - "minimumArguments": 2, - "maximumArguments": 2, - "returnValueMembers": [ - { - "name": "properties" - } - ] - }, - { - "name": "listKeys", - "expectedUsage": "listKeys(resourceName\/resourceIdentifier, apiVersion)", - "description": "Returns the keys of a storage account. The resourceId can be specified by using the resourceId function or by using the format providerNamespace/resourceType/resourceName. You can use the function to get the primary (key[0]) and secondary key (key[1]).", - "minimumArguments": 2, - "maximumArguments": 2, - "$comment": "There are more than 20 possible return members, depending on the RP that's being queried. This causes incorrect Intellisense and false positives for validation (in VS), so turning this off by not specifying returnValueMembers at all. VSCode doesn't show the same validation errors, but intelisense still won't show correct values, and it's easier to keep vscode and vs in sync, so doing it there, too." - }, - { - "name": "listKeyValue", - "expectedUsage": "listKeyValue(resourceName\/resourceIdentifier, apiVersion, KeyLabelObject)", - "description": "Returns a value from the App Config store with Key/Label specified in the request. The KeyLabelObject parameter is a JSON object with the two properties: \"key\" and \"label\" as required by the values in the store.", - "minimumArguments": 3, - "maximumArguments": 3, - "returnValueMembers": [ - { - "name": "value" - } - ] - }, - { - "name": "listPackage", - "expectedUsage": "listPackage(resourceName\/resourceIdentifier, apiVersion)", - "description": "Lists the virtual network gateway package. The resourceId can be specified by using the resourceId function or by using the format providerNamespace/resourceType/resourceName.", - "minimumArguments": 2, - "maximumArguments": 2 - }, - { - "name": "listQueryKeys", - "expectedUsage": "listQueryKeys(resourceName\/resourceIdentifier, apiVersion)", - "description": "Returns the list of query API keys for the given Azure Search service. The resourceId can be specified by using the resourceId function or by using the format providerNamespace/resourceType/resourceName. The function returns an object array with a 'name' and 'key' property for each member.", - "minimumArguments": 2, - "maximumArguments": 2, - "returnValueMembers": [ - { - "name": "value" - } - ] - }, - { - "name": "listSecrets", - "expectedUsage": "listSecrets(resourceName\/resourceIdentifier, apiVersion)", - "description": "List the secrets of a key vault. The resourceId can be specified by using the resourceId function or by using the format providerNamespace/resourceType/resourceName.", - "minimumArguments": 2, - "maximumArguments": 2 - }, - { - "name": "listServiceSas", - "expectedUsage": "listServiceSas(resourceName\/resourceIdentifier, apiVersion, requestContent)", - "description": "Creates and returns a SAS token for the specific resource with the specified permissions and expiry from the requestContent. The requestContent object must contain the signedServices, signedResourceTypes, signedPermission and signedExpiry properties.", - "minimumArguments": 3, - "maximumArguments": 3, - "returnValueMembers": [ - { - "name": "serviceSasToken" - } - ] - }, - { - "name": "listSyncFunctionTriggerStatus", - "expectedUsage": "listSyncFunctionTriggerStatus(resourceName\/resourceIdentifier, apiVersion)", - "description": "Returns the status of a function trigger. The resourceId can be specified by using the resourceId function or by using the format providerNamespace/resourceType/resourceName.", - "minimumArguments": 2, - "maximumArguments": 2, - "returnValueMembers": [ - { - "name": "status" - } - ] - }, - { - "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": "map", - "expectedUsage": "map(inputArray, transformFunction)", - "description": "Projects each element of an array into a new form based on a transformation function. See https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/template-functions-lambda for information on using lambda functions.", - "minimumArguments": 2, - "maximumArguments": 2 - }, - { - "name": "mapValues", - "expectedUsage": "mapValues(object, transformFunction)", - "description": "Projects each value of an object into a new form based on a transformation function. See https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/template-functions-lambda for information on using lambda functions.", - "minimumArguments": 2, - "maximumArguments": 2 - }, - { - "name": "max", - "expectedUsage": "max(arg1, ...)", - "description": "Returns the maximum value from an array of integers or a comma-separated list of integers.", - "minimumArguments": 1, - "maximumArguments": null - }, - { - "name": "min", - "expectedUsage": "min(arg1, ...)", - "description": "Returns the minimum value from an array of integers or a comma-separated list of integers.", - "minimumArguments": 1, - "maximumArguments": null - }, - { - "name": "mod", - "expectedUsage": "mod(operand1, operand2)", - "description": "Returns the remainder of the integer division using the two provided integers.", - "minimumArguments": 2, - "maximumArguments": 2 - }, - { - "name": "mul", - "expectedUsage": "mul(operand1, operand2)", - "description": "Returns the multiplication of the two provided integers.", - "minimumArguments": 2, - "maximumArguments": 2 - }, - { - "name": "newGuid", - "expectedUsage": "newGuid()", - "description": "Returns a globally unique identifier (GUID). This function may only be used as a defaultValue on a parameter.", - "minimumArguments": 0, - "maximumArguments": 0 - }, - { - "name": "not", - "expectedUsage": "not(arg1)", - "description": "Converts boolean value to its opposite value.", - "minimumArguments": 1, - "maximumArguments": 1 - }, - { - "name": "null", - "expectedUsage": "null()", - "description": "Returns a value that is always null, equivalent to json('null').", - "minimumArguments": 0, - "maximumArguments": 0 - }, - { - "name": "or", - "expectedUsage": "or(arg1, arg2, ...)", - "description": "Checks whether any parameter value is true.", - "minimumArguments": 2, - "maximumArguments": null - }, - { - "name": "padLeft", - "expectedUsage": "padLeft(stringToPad, totalLength, paddingCharacter)", - "description": "Returns a right-aligned string by adding characters to the left until reaching the total specified length.", - "minimumArguments": 3, - "maximumArguments": 3 - }, - { - "name": "parameters", - "expectedUsage": "parameters(parameterName)", - "description": "Returns a parameter value. The specified parameter name must be defined in the parameters section of the template.", - "minimumArguments": 1, - "maximumArguments": 1 - }, - { - "name": "pickZones", - "expectedUsage": "pickZones(providerNamespace, resourceType, location, [numberOfZones], [offset])", - "description": "Determines whether a resource type supports zones for a region.", - "minimumArguments": 3, - "maximumArguments": 5 - }, - { - "name": "providers", - "expectedUsage": "providers(providerNamespace, [resourceType])", - "description": "The providers function has been deprecated. We no longer recommend using it. If you used this function to get an API version for the resource provider, we recommend that you provide a specific API version in your template. Using a dynamically returned API version can break your template if the properties change between versions.", - "minimumArguments": 1, - "maximumArguments": 2 - }, - { - "name": "range", - "expectedUsage": "range(startingInteger, numberOfElements)", - "description": "Creates an array of integers from a starting integer and containing a number of items.", - "minimumArguments": 2, - "maximumArguments": 2 - }, - { - "name": "reduce", - "expectedUsage": "reduce(inputArray, initialValue, accumulatorFunction)", - "description": "Applies a function against an accumulator and each element in the array to reduce it to a single value. See https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/template-functions-lambda for information on using lambda functions.", - "minimumArguments": 3, - "maximumArguments": 3 - }, - { - "name": "reference", - "expectedUsage": "reference(resourceName\/resourceIdentifier, [apiVersion], ['Full'])", - "description": "Enables an expression to derive its value from another resource's runtime state.", - "minimumArguments": 1, - "maximumArguments": 3 - }, - { - "name": "replace", - "expectedUsage": "replace(originalString, oldCharacter, newCharacter)", - "description": "Returns a new string with all instances of one character in the specified string replaced by another character.", - "minimumArguments": 3, - "maximumArguments": 3 - }, - { - "name": "resourceGroup", - "expectedUsage": "resourceGroup()", - "description": "Returns a structured object that represents the current resource group.", - "minimumArguments": 0, - "maximumArguments": 0, - "returnValueMembers": [ - { - "name": "id" - }, - { - "name": "name" - }, - { - "name": "location" - }, - { - "name": "tags" - }, - { - "name": "properties" - } - ] - }, - { - "name": "resourceId", - "expectedUsage": "resourceId([subscriptionId], [resourceGroupName], resourceType, resourceName1, [resourceName2]...)", - "description": "Returns the unique resource identifier of a resource group scoped resource. You use this function to create a resourceId for a given resource as required by a property value.", - "minimumArguments": 2, - "maximumArguments": null, - "behaviors": [ - "usesResourceIdCompletions" - ] - }, - { - "name": "skip", - "expectedUsage": "skip(originalValue, numberToSkip)", - "description": "Returns an array or string with all of the elements or characters after the specified number in the array or string.", - "minimumArguments": 2, - "maximumArguments": 2 - }, - { - "name": "sort", - "expectedUsage": "sort(inputArray, comparer)", - "description": "Sorts an array with a custom sort function. See https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/template-functions-lambda for information on using lambda functions.", - "minimumArguments": 2, - "maximumArguments": 2 - }, - { - "name": "split", - "expectedUsage": "split(inputString, delimiter)", - "description": "Returns an array of strings that contains the substrings of the input string that are delimited by the sent delimiters.", - "minimumArguments": 2, - "maximumArguments": 2 - }, - { - "name": "startsWith", - "expectedUsage": "startsWith(stringToSEarch, stringToFind)", - "description": "Determines whether a string starts with a value. The comparison is case-insensitive.", - "minimumArguments": 2, - "maximumArguments": 2 - }, - { - "name": "string", - "expectedUsage": "string(valueToConvert)", - "description": "Converts the specified value to String.", - "minimumArguments": 1, - "maximumArguments": 1 - }, - { - "name": "sub", - "expectedUsage": "sub(operand1, operand2)", - "description": "Returns the subtraction of the two provided integers.", - "minimumArguments": 2, - "maximumArguments": 2 - }, - { - "name": "subscription", - "expectedUsage": "subscription()", - "description": "Returns details about the subscription.", - "minimumArguments": 0, - "maximumArguments": 0, - "returnValueMembers": [ - { - "name": "displayName" - }, - { - "name": "id" - }, - { - "name": "subscriptionId" - }, - { - "name": "tenantId" - } - ] - }, - { - "name": "subscriptionResourceId", - "expectedUsage": "subscriptionResourceId([subscriptionId], resourceType, resourceName1, [resourceName2]...)", - "description": "Returns the unique resource identifier of a subscription scoped resource. You use this function to create a resourceId for a given resource as required by a property value.", - "minimumArguments": 2, - "maximumArguments": null, - "behaviors": [ - "usesResourceIdCompletions" - ] - }, - { - "name": "substring", - "expectedUsage": "substring(stringToParse, startIndex, length)", - "description": "Returns a substring that starts at the specified character position and contains the specified number of characters.", - "minimumArguments": 1, - "maximumArguments": 3 - }, - { - "name": "take", - "expectedUsage": "take(originalValue, numberToTake)", - "description": "Returns an array or string with the specified number of elements or characters from the start of the array or string.", - "minimumArguments": 2, - "maximumArguments": 2 - }, - { - "name": "tenant", - "expectedUsage": "tenant()", - "description": "Returns a structured object that represents the current tenant.", - "minimumArguments": 0, - "maximumArguments": 0, - "returnValueMembers": [ - { - "name": "countryCode" - }, - { - "name": "displayName" - }, - { - "name": "id" - }, - { - "name": "tenantId" - } - ] - }, - { - "name": "tenantResourceId", - "expectedUsage": "tenantResourceId(resourceType, resourceName1, [resourceName2]...)", - "description": "Returns the unique resource identifier of a tenant scoped resource. You use this function to create a resourceId for a given resource as required by a property value.", - "minimumArguments": 2, - "maximumArguments": null, - "behaviors": [ - "usesResourceIdCompletions" - ] - }, - { - "name": "toLower", - "expectedUsage": "toLower(string)", - "description": "Converts the specified string to lower case.", - "minimumArguments": 1, - "maximumArguments": 1 - }, - { - "name": "toObject", - "expectedUsage": "toObject(inputArray, lambda function, [lambda function])", - "description": "Converts an array to an object with a custom key function and optional custom value function. See https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/template-functions-object#items about converting an object to an array. See https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/template-functions-lambda for information on using lambda functions.", - "minimumArguments": 2, - "maximumArguments": 3 - }, - { - "name": "toUpper", - "expectedUsage": "toUpper(string)", - "description": "Converts the specified string to upper case.", - "minimumArguments": 1, - "maximumArguments": 1 - }, - { - "name": "trim", - "expectedUsage": "trim(stringToTrim)", - "description": "Removes all leading and trailing white-space characters from the specified string.", - "minimumArguments": 1, - "maximumArguments": 1 - }, - { - "name": "true", - "expectedUsage": "true()", - "description": "Returns a boolean value that is always true.", - "minimumArguments": 0, - "maximumArguments": 0 - }, - { - "name": "union", - "expectedUsage": "union(arg1, arg2, arg3, ...)", - "description": "Returns a single array or object with all elements from the parameters. Duplicate values or keys are only included once.", - "minimumArguments": 2, - "maximumArguments": null - }, - { - "name": "uniqueString", - "expectedUsage": "uniqueString(baseString, ...)", - "description": "Creates a deterministic hash string of length 13 based on the values provided as parameters.\n### Remarks\nThis function is helpful when you need to create a unique name for a resource. You provide parameter values that represent the level of uniqueness for the result. You can specify whether the name is unique for your subscription, resource group, or deployment.\nThe returned value isn't a random string, but rather the result of a hash function. The returned value is 13 characters long. It isn't globally unique. You may want to combine the value with a prefix from your naming convention to create a name that is meaningful.\n### Example\n`[concat('storage', uniqueString(resourceGroup().id))]`", - "minimumArguments": 1, - "maximumArguments": null - }, - { - "name": "uri", - "expectedUsage": "uri(baseUri, relativeUri)", - "description": "Creates an absolute URI by combining the baseUri and the relativeUri string.", - "minimumArguments": 2, - "maximumArguments": 2 - }, - { - "name": "uriComponent", - "expectedUsage": "uriComponent(stringToEncode)", - "description": "Encodes a URI.", - "minimumArguments": 1, - "maximumArguments": 1 - }, - { - "name": "uriComponentToString", - "expectedUsage": "uriComponentToString(uriEncodedString)", - "description": "Returns a string of a URI encoded value.", - "minimumArguments": 1, - "maximumArguments": 1 - }, - { - "name": "utcNow", - "expectedUsage": "utcNow([format])", - "description": "Returns the current (UTC) datetime value in the format provided. If no format is provided the ISO 8601 (yyyyMMddTHH:mm:ssZ) format will be used. This function may only be used as a defaultValue on a parameter.", - "minimumArguments": 0, - "maximumArguments": 1 - }, - { - "name": "variables", - "expectedUsage": "variables(variableName)", - "description": "Returns the value of variable. The specified variable name must be defined in the variables section of the template.", - "minimumArguments": 1, - "maximumArguments": 1 - } - ] -}