Skip to content

Commit c3386ee

Browse files
authored
Merge pull request #178998 from KrishnaG-MSFT/patch-158
(AzureCXP) MicrosoftDocs/azure-docs#83113
2 parents 4d98e9f + f1e706a commit c3386ee

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

articles/azure-resource-manager/bicep/bicep-functions-string.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,9 @@ guid(resourceGroup().id, deployment().name)
495495

496496
A string containing 36 characters in the format of a globally unique identifier.
497497

498+
> [!NOTE]
499+
> Importance of order: It is not just the same parameters, they need to be in the same order. For example: `guid('hello', 'world') != guid('world', 'hello')`
500+
498501
### Examples
499502

500503
The following example returns results from guid:
@@ -701,7 +704,7 @@ Namespace: [sys](bicep-functions.md#namespaces-for-functions).
701704

702705
You can only use this function within an expression for the default value of a parameter. Using this function anywhere else in a Bicep file returns an error. The function isn't allowed in other parts of the Bicep file because it returns a different value each time it's called. Deploying the same Bicep file with the same parameters wouldn't reliably produce the same results.
703706

704-
The newGuid function differs from the [guid](#guid) function because it doesn't take any parameters. When you call guid with the same parameter, it returns the same identifier each time. Use guid when you need to reliably generate the same GUID for a specific environment. Use newGuid when you need a different identifier each time, such as deploying resources to a test environment.
707+
The newGuid function differs from the [guid](#guid) function because it doesn't take any parameters. When you call guid with the same parameters, it returns the same identifier each time. Use guid when you need to reliably generate the same GUID for a specific environment. Use newGuid when you need a different identifier each time, such as deploying resources to a test environment.
705708

706709
The newGuid function uses the [Guid structure](/dotnet/api/system.guid) in the .NET Framework to generate the globally unique identifier.
707710

0 commit comments

Comments
 (0)