BicepFunction.GetUniqueString(BicepValue<String>[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a deterministic hash string based on the values
provided as parameters. This represents the uniqueString
Bicep
function.
public static Azure.Provisioning.BicepValue<string> GetUniqueString (params Azure.Provisioning.BicepValue<string>[] values);
static member GetUniqueString : Azure.Provisioning.BicepValue<string>[] -> Azure.Provisioning.BicepValue<string>
Public Shared Function GetUniqueString (ParamArray values As BicepValue(Of String)()) As BicepValue(Of String)
Parameters
- values
- BicepValue<String>[]
The value used in the hash function to create a unique string. At least one value is required.
Returns
A string containing 13 characters.
Remarks
This function is helpful when you need to create a unique name for a resource. 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 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.
See the Bicep Functions Reference for more.