Partilhar via


BicepFunction Class

Definition

Provides access to standard Bicep functions.

public static class BicepFunction
type BicepFunction = class
Public Class BicepFunction
Inheritance
BicepFunction

Methods

AsString(BicepValue<Object>)

Converts the specified value to a string. Strings are returned as-is. Other types are converted to their equivalent JSON representation. This represents the string Bicep function.

Concat(BicepValue<String>[])

Combines multiple string values values and returns the concatenated string. This represents the concat Bicep function. To improve readability, prefer Interpolate(BicepInterpolatedStringHandler) instead of Concat(BicepValue<String>[]).

CreateGuid(BicepValue<String>[])

Creates a value in the format of a globally unique identifier based on the values provided as parameters. This represents the guid Bicep function.

GetDeployment()

Returns information about the current deployment operation. This represents the deployment Bicep function.

GetResourceGroup()

Returns an object that represents the current resource group. This represents the resourceGroup Bicep function.

GetSubscription()

Returns details about the subscription for the current deployment. This represents the subscription Bicep function.

GetSubscriptionResourceId(BicepValue<String>[])

Returns the unique identifier for a resource deployed at the subscription level. This represents the subscriptionResourceId Bicep function.

GetTenant()

Returns the tenant of the user. This represents the tenant Bicep function.

GetUniqueString(BicepValue<String>[])

Creates a deterministic hash string based on the values provided as parameters. This represents the uniqueString Bicep function.

Interpolate(BicepInterpolatedStringHandler)

Convert a formattable string with literal text, C# expressions, and Bicep expressions into an interpolated Bicep string.

Interpolate(FormattableString)

Convert a formattable string with literal text, C# expressions, and Bicep expressions into an interpolated Bicep string.

ParseJson(BicepValue<Object>)

Converts a valid JSON string into a JSON data type. This represents the json Bicep function.

Take(BicepValue<String>, BicepValue<Int32>)

Returns a string with the specified number of characters from the start of the string. This represents the take Bicep function.

ToLower(BicepValue<Object>)

Converts the specified string to lower case. This represents the toLower Bicep function.

ToUpper(BicepValue<Object>)

Converts the specified string to upper case. This represents the toUpper Bicep function.

Applies to